npm install
npm run dev
webpack --config ./webpack/prod.js && npm start
- server.js
- /webpack
- base.js
- dev.js
- prod.js
- /src
- app.js | project entrypoint
- router.js
- /styles
- styles.scss | root for all sass @imports
- /utils
- /views
- <page-name>.dust | page entry points
- /partials
- index.js | import manifest to register partials with webpack
- <partial-name>.dust
- to add a page
- Add a new root template in ./src/views
- Register the route in ./src/router.js
- to add a new partial
- Add a new partial in ./src/views/partials
- Import the partial file into ./src/views/partials/index.js
- Require it in any dust template by the file name
- to add styles
- Add a file in the appropriate place under ./styles
- Make sure the file is required somewhere in the dependency chain from ./src/styles.scss
- add static assets to ./static and reference them by path