The basic structure of our projects
Each of our projects follows a similar overall structure, intending to follow our philosophy for projects:
- A
package.json
which defines the basic entry pointscripts
to run the project in local development - this is used by thedotrun
app, or can be used directly withyarn run {command}
. It should define the following commands:serve
: Get the site runningstart
: Get the site running and watchingtest
: Run any tests or linters associated with the projectbuild
: Run any build steps needed ready for packaging up the project for releasewatch
: Run watchers to dynamically build any files as they change, for use in local developmentclean
: Return the project to its basic state by deleting any built or temporary files
- HTML files or templates for the website, either in the root of the project or in a
templates
directory - A directory of
scss
files, to be built intocss
files onbuild
orwatch
, for styling our websites - A dependency on vanilla-framework, our
scss
library for styling our websites
Last updated 9 months ago.