Created
September 29, 2015 09:47
-
-
Save anshulguleria/0c244aa6f9311fc3128a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "jslibcors", | |
"version": "0.0.1", | |
"description": "Cors implementation for js library for viralmint", | |
"main": "index.js", | |
"config": { | |
"browserifyEntries": "src/js/init/config-dev.js src/js/init/main.js", | |
"browserifyOutput": "build/client/bundle.js", | |
"targetHtmlPath": "build/client/", | |
"servePort": 8080 | |
}, | |
"browserify": { | |
"transform": [ | |
[ | |
"babelify", | |
{ | |
"sourceMapRelative": "$PWD/src/js" | |
} | |
], | |
[ | |
"uglifyify" | |
] | |
] | |
}, | |
"scripts": { | |
"clean": "rimraf build/* && mkdir build/client && mkdir build/prod", | |
"postinstall": "npm run clean", | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"lint": "eslint src/js", | |
"prebuild": "npm run clean -s", | |
"build:dev": "npm run build:js-debug -s && npm run build:html -s", | |
"build:prod": "npm run build:js-prod -s && npm run build:html -s --jslibcors:targetHtmlPath=build/prod", | |
"build:js": "browserify $npm_package_config_browserifyEntries --outfile $npm_package_config_browserifyOutput", | |
"build:js-debug": "npm run build:js -- --debug", | |
"prebuild:js-prod": "npm run clean -s", | |
"build:js-prod": "npm run build:js --jslibcors:browserifyEntries=src/js/init/config-prod.js src/js/init/main.js --jslibcors:browserifyOutput=build/prod/bundle.js && npm run closure-cmd -- --js build/prod/bundle.js --js_output_file build/prod/post-closure.js && gzip -c build/prod/post-closure.js > build/prod/post-closure-zip.js", | |
"closure-cmd": "java -jar node_modules/google-closure-compiler/compiler.jar", | |
"build:html": "cp src/html/* $npm_package_config_targetHtmlPath", | |
"watch:js": "watch 'npm run build:js-debug' src/js", | |
"watch:html": "watch 'npm run build:html' src/html", | |
"watch": "parallelshell 'npm run watch:js' 'npm run watch:html'", | |
"serve": "http-server -p $npm_package_config_servePort build/client", | |
"dev": "parallelshell 'npm run serve' 'npm run watch'", | |
"prod": "npm run build:prod" | |
}, | |
"repository": { | |
"type": "git", | |
"url": "git@codebasehq.com:socialwebfactory/viralmint-20/jscors.git" | |
}, | |
"keywords": [ | |
"viralmint", | |
"jslibrary" | |
], | |
"pre-commit": [ | |
"lint" | |
], | |
"author": "viralmint", | |
"license": "ISC", | |
"devDependencies": { | |
"babel-eslint": "^4.1.3", | |
"babelify": "^6.3.0", | |
"browserify": "^11.1.0", | |
"eslint": "^1.5.0", | |
"google-closure-compiler": "^20150920.0.0", | |
"http-server": "^0.8.4", | |
"parallelshell": "^2.0.0", | |
"pre-commit": "^1.1.1", | |
"rimraf": "^2.4.3", | |
"uglifyify": "^3.0.1", | |
"watch": "^0.16.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment