npm install
For development:
npm run dev
# webpack
open http://localhost:8082
# server
open http://localhost:8080
For dev prod:
npm run prod
Build:
npm run build
Start:
npm run start
open http://localhost:8050
Deploy:
now
- we run
npm run build
- this creates the
dist
directory (and so that we can copy things fromsrc
, andpublic
, those sub directories) - we copy the code, and run babel on
src
=>dist/src
(this is done also when we runnow-build
using zeit now static build, configured in the now.json dist/src/server.js
is run with node
Node 8+
- Inferno - What this website is all about
- Project structure based on Inferno-starter
- Typescript project setup with ts-transform-inferno can be found here.
- should not transpile the server in the same way
- can use ts + babel...
- precompile the markdown