A simple boilerplate to start off prototyping.
-
Install NodeJS.
-
Run
npm install
at the root project folder.This will read the package.json file and pull in all required node modules and put into a directory called node_modules.
-
Use
npm
to build:npm run build
will create a debug/test version of the sitenpm run production
will create a production version of the site (i.e. JavaScript and CSS concatenated and minified)npm start
will create the debug/test version of the site, then create a simple testing servernpm run deploy
will deploy the production version to the gh-pages branch.