-
Notifications
You must be signed in to change notification settings - Fork 7
Folders
The assets folder is used to store client side source code. This code is
compiled during a build process handled by Webpack to .build/
which is
served by the express app.
JavaScript source code written using ES2015 syntax and compiled to ES5 using Babel.
Sass source code compiled to CSS during build process.
JavaScript modules shared between both client and server.
App wide configuration as well as library specific configuration like nujucks.
Documentation to support product development and maintenance.
Files that are served directly by the server. Files in public do not go through any kind of build step. Normally for third-party libraries or assets that will rarely change.
Assets referenced in CSS should not be placed here as Webpack will rewrite paths during the build process.
Server-side source code for the Express application.
Collection of Express sub-apps with self-contained logic.
For more information on how these are structured see the sub-app structure documentation.
Server-side only modules.
Application-level middleware that is loaded in server.js.
Contains layouts, includes, macros and components that are used throughout the views.
Components snippets of template with specific context that are rendered using a custom Nunjucks tag.
They resemble macros but do not have to be imported where they are needed.
Unit and acceptance test files.
Acceptance tests written using the Nightwatch framework to drive the browser through each scenario.
Isolated unit tests for controllers, middleware, libraries. Uses the Mocha testing framework.