Remove compiled assets and generate them at prepublish time

- Remove minified libs and compiled templates
- Add a `prepublish` script to build assets, that run on `npm install`
  and right before publishing
  See https://docs.npmjs.com/misc/scripts
- Include these compiled assets to the `.gitignore` file
- Add an empty .npmignore to make sure the compiled assets are not
  ignored when publishing
  https://docs.npmjs.com/misc/developers#keeping-files-out-of-your-package
- Update the README to reflect changes in development

Note that the Travis CI configuration does not need any tweaking
because it cleans up all extra and changed files, up to publishing on
npm. That is, right before `prepublish` gets run.
See https://docs.travis-ci.com/user/deployment/npm#Releasing-build-artifacts
This commit is contained in:
Jérémie Astori 2016-02-18 06:01:37 +00:00
commit fe6da75854
6 changed files with 13 additions and 247 deletions

5
.gitignore vendored
View file

@ -1,2 +1,7 @@
node_modules/
npm-debug.log
# Built assets created at npm install/prepublish time
# See https://docs.npmjs.com/misc/scripts
client/js/libs.min.js
client/js/lounge.templates.js