To watch nunjucks templates and compile them on the fly:
grunt
To minify the assets for the production-ready prod.html:
grunt minify
To run the dev server:
node app.js
To load settings.js and then override those settings with those defined
in settings_local.js:
node app.js --settings=settings_local
To load settings.js and then override those settings with those defined
in settings_prod.js:
node app.js --settings=settings_prod
By default if the --settings flag is omitted, we default to loading
settings_local. If you specify a setting other than settings_local,
then settings_local will not get loaded and instead only that new setting
file will get loaded.
When testing things locally, you may want to remove minified files:
darjeeling
An offline app store.
Installation
We use grunt:
Then install our dependencies:
Copy over default settings (both are necessary):
Development
To watch nunjucks templates and compile them on the fly:
To minify the assets for the production-ready
prod.html:To run the dev server:
To load
settings.jsand then override those settings with those defined insettings_local.js:To load
settings.jsand then override those settings with those defined insettings_prod.js:By default if the
--settingsflag is omitted, we default to loadingsettings_local. If you specify a setting other thansettings_local, thensettings_localwill not get loaded and instead only that new setting file will get loaded.When testing things locally, you may want to remove minified files: