mirror of
https://github.com/thelounge/thelounge.git
synced 2026-03-14 14:35:50 +01:00
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:
parent
fc4f98fd3c
commit
fe6da75854
6 changed files with 13 additions and 247 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue