added more commands and implemented build dir for minify
This commit is contained in:
parent
12242373bb
commit
a8f59d9f31
1 changed files with 12 additions and 15 deletions
27
package.json
27
package.json
|
@ -4,16 +4,15 @@
|
||||||
"description": "Use hipchat emoticons on other sites",
|
"description": "Use hipchat emoticons on other sites",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"create-dirs": "mkdir -p build/assets build/lib",
|
"create-dirs": "mkdir -p firefox/data chrome/data build/",
|
||||||
"build-extensions": "",
|
"build-extensions": "npm run build-firefox && npm run build-chrome",
|
||||||
"build-firefox": "cd firefox/ && jpm xpi && cd -",
|
"build-firefox": "cd firefox/ && jpm xpi && cd -",
|
||||||
"build-chrome": "chromium-browser --pack-extension=chrome/ --pack-extension-key=key.pem",
|
"build-chrome": "crx pack chrome -o hipchat-emoticons-for-all.crx -p chrome/key.pem",
|
||||||
"build-js": "browserify -t reactify src/index.js -o build/index.js",
|
"build-js": "uglifyjs-folder src -eo build && cp src/*.json build/",
|
||||||
"build-data": "python firefox/build-package.py && python chrome/build-manifest.py",
|
"build-data-files": "python firefox/build-package.py && python chrome/build-manifest.py",
|
||||||
"copy-firefox": "cp src/* firefox/data/",
|
"distribute": "cp build/* firefox/data/ && cp build/* chrome/data/",
|
||||||
"copy-chrome": "cp src/* 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",
|
||||||
"build": "ulimit -n 512 && npm run create-dirs && npm install && npm run build-js && npm run copy-firefox && npm run copy-chrome",
|
"clean": "rm -rf firefox/data && rm -rf chrome/data",
|
||||||
"clean": "rm -rf build/ && rm -rf firefox/data && rm -rf chrome/data",
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -30,15 +29,13 @@
|
||||||
},
|
},
|
||||||
"homepage": "https://bitbucket.org/theorangeone/hipchat-emoticons-for-all",
|
"homepage": "https://bitbucket.org/theorangeone/hipchat-emoticons-for-all",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"browserify": "=9.0.3",
|
|
||||||
"ionic-sdk": "=1.0.0",
|
"ionic-sdk": "=1.0.0",
|
||||||
"less": "=2.4.0",
|
"less": "=2.4.0",
|
||||||
"react": "=0.13.2",
|
"jquery": "=2.1.4",
|
||||||
"react-tools": "=0.13.2",
|
|
||||||
"reactify": "=1.1.1"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"jquery": "=2.1.4",
|
"jpm":"=1.0.1",
|
||||||
"jpm":"=1.0.1"
|
"uglifyjs-folder":"=0.2.1",
|
||||||
|
"crx": "=3.0.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue