Skip to content

TheoChevalier/darjeeling

 
 

Repository files navigation

darjeeling

An offline app store.

Installation

We use grunt:

npm install grunt-cli -g

Then install our dependencies:

npm install

Copy over default settings (both are necessary):

cp settings_local.js.dist settings_local.js
cp src/lite/media/js/settings_local.js.dist src/lite/media/js/settings_local.js

Development

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:

find src -name '*.min.*' -delete

About

an offline app store

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 94.4%
  • CSS 5.5%
  • Shell 0.1%