Commit graph

6 commits

Author SHA1 Message Date
Pavel Djundik
58b2d8c788 Ignore all dotfiles in npmignore 2017-06-29 12:49:07 +03:00
Jérémie Astori
0b9c8a3432 Add nyc and Webpack config files to the files ignored when releasing
Comparing https://unpkg.com/thelounge@2.1.0/ and https://unpkg.com/thelounge@2.2.0/, these have slipped in.
2017-01-31 21:20:35 -05:00
Pavel Djundik
fb87bd3a58 Webpack 2016-12-27 19:15:30 +02:00
Jérémie Astori
f9c7255d0b Ignore unnecessary files at release time
- `client/views/` contains templates whose built version is provided
  with each releases
- `.gitignore` doesn't appear in our releases, but I'm not sure if this
  comes from npm itself or Travis CI publishing for us. Adding it here
  for completeness.
- Surprisingly, `.npmignore` itself is not ignored...
- All other files and directories are for development purposes only
2016-07-13 23:57:56 -04:00
Jérémie Astori
053e8a0e36 Add code coverage 2016-06-19 13:07:42 -04:00
Jérémie Astori
fe6da75854 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
2016-02-18 06:01:37 +00:00