Moved hacky script out to seperate file
This commit is contained in:
parent
9f3270e1a5
commit
e1d030db0e
2 changed files with 8 additions and 1 deletions
7
build-js.sh
Normal file
7
build-js.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
#~!/usr/bin/bash
|
||||
|
||||
cp -r src/* build/
|
||||
rm -rf build/injections/*
|
||||
mkdir -p build/src/injections
|
||||
for f in src/injections/*; do uglifyjs $f --compress --mangle -o build/$f; done
|
||||
cp build/src/injections/* build/injections/ && rm -rf build/src
|
|
@ -8,7 +8,7 @@
|
|||
"build-extensions": "npm run build-firefox && npm run build-chrome",
|
||||
"build-firefox": "cd firefox/ && jpm xpi && cd -",
|
||||
"build-chrome": "crx pack chrome -o hipchat-emoticons-for-all.crx -p chrome/key.pem",
|
||||
"build-js": "cp -r src/* build/ && rm -rf build/injections && mkdir -p build/src/injections && for f in src/injections/*; do uglifyjs $f --compress --mangle -o build/$f; done && cp build/src/injections/* build/injections/ && rm -rf build/src",
|
||||
"build-js": "bash build-js.sh",
|
||||
"build-data-files": "python firefox/build-package.py && python chrome/build-manifest.py",
|
||||
"distribute": "cp build/* firefox/data/ && cp build/* chrome/data/",
|
||||
"build": "npm run clean && npm run create-dirs && npm install && npm run build-js && npm run distribute && npm run build-data-files && npm run build-extensions",
|
||||
|
|
Reference in a new issue