-
Notifications
You must be signed in to change notification settings - Fork 9
/
package.json
47 lines (47 loc) · 2.44 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
"name": "extract-to-react",
"version": "1.0.2",
"description": "Chrome/Chromium extension for easy HTML to React conversion.",
"main": "",
"scripts": {
"build": "npm run build-prep && npm run build-static && npm run build-js",
"build-prod": "npm run build-prep && npm run build-static && npm run build-js-prod && npm run build-zip",
"build-zip": "(cd lib; zip -r ../`node -e \"var pJson = require('../package.json'); console.log(pJson.name + '-' + pJson.version)\"`.zip ./*)",
"build-prep": "mkdir -p lib/js",
"build-gfx": "(cd src; tar -cf - $(find ./gfx -name \"*.png\")) | tar -C lib -xf - && (cp src/gfx/icon_128.png lib/ || true)",
"build-css": "(cd src; tar -cf - $(find ./css -name \"*.css\")) | tar -C lib -xf -",
"build-html": "(cd src; tar -cf - $(find ./html -name \"*.html\")) | tar -C lib -xf - && cp src/devtools.html lib/devtools.html",
"build-manifest": "node -e \"var manifest = require('./src/manifest.json'); manifest.version = require('./package.json').version; console.log(JSON.stringify(manifest, null, 2));\" > lib/manifest.json",
"build-static": "npm run build-gfx && npm run build-css && npm run build-html && npm run build-manifest",
"build-js": "find ./src/js -maxdepth 1 -name '*.js' -exec bash -c 'browserify \"$0\" --debug -t [ babelify --presets [ es2015 react ] ] -g [ envify --NO_WRITE_FS --NODE_ENV=\"development\" ] -g uglifyify --ignore npm-run -o \"${0/src/lib}\"' {} \\;",
"build-js-prod": "find ./src/js -maxdepth 1 -name '*.js' -exec bash -c 'browserify \"$0\" --debug -t [ babelify --presets [ es2015 react ] ] -g [ envify --NO_WRITE_FS --GA_TRACKING_ID=\"UA-73151166-1\" --NODE_ENV=\"production\" ] -g uglifyify --ignore npm-run | uglifyjs -cm --screw-ie8 -o \"${0/src/lib}\"' {} \\;"
},
"repository": {
"type": "git",
"url": ""
},
"author": "Jess Telford <[email protected]> (http://jes.st)",
"license": "GPL",
"bugs": {
"url": "https://github.com/jesstelford/extract-to-react/issues"
},
"homepage": "",
"dependencies": {
"babelify": "^7.2.0",
"html-to-react-components": "^1.4.0",
"lodash": "^4.6.1",
"react": "^0.14.7",
"react-dom": "^0.14.7",
"react-tree-menu": "^1.5.0",
"titlecase": "^1.1.2"
},
"devDependencies": {
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.5.0",
"browserify": "^13.0.0",
"envify": "^3.4.0",
"reactify": "^1.1.1",
"uglify-js": "^2.6.1",
"uglifyify": "^3.0.1"
}
}