-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
52 lines (52 loc) · 2.35 KB
/
Copy pathpackage.json
File metadata and controls
52 lines (52 loc) · 2.35 KB
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
48
49
50
51
52
{
"name": "eioh",
"private": true,
"main": "index.js",
"devDependencies": {
"babel-cli": "^6.6.5",
"babel-eslint": "^6.0.2",
"babel-plugin-transform-runtime": "^6.3.13",
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"babel-preset-stage-1": "^6.3.13",
"babelify": "^7.2.0",
"budo": "^8.0.0",
"cssnext": "^1.8.4",
"eslint": "^1.9.0",
"eslint-plugin-react": "^3.8.0",
"garnish": "^5.0.1",
"uglify-js": "^2.6.2",
"watchy": "^0.6.5"
},
"scripts": {
"lint": "eslint --ext .jsx .",
"css": "cssnext -U src.css served/style.css",
"watch-css": "watchy -s -w src.css -- npm -s run css &",
"check-usage": "[ -n \"$npm_config_ui\" ] || (echo 'Usage: npm run [command] --ui=[basic-ui|segments-ui|flow-ui]' && exit 1)",
"predevelop": "npm -s run check-usage && npm -s run lint",
"develop": "npm -s run watch-css && budo $npm_config_ui/index.js:bundle.js --dir $npm_config_ui --dir served --live -- -t [ babelify ] --extension=.jsx",
"preserve": "npm -s run predevelop",
"serve": "npm -s run css && budo $npm_config_ui/index.js:bundle.js --dir $npm_config_ui --dir served -- -t [ babelify ] --extension=.jsx",
"pretranspile": "npm -s run lint",
"transpile": "babel -d lib --ignore lib,dist,node_modules .",
"predist-ui": "npm -s run check-usage && npm -s run transpile",
"dist-ui": "mkdir -p dist/$npm_config_ui && browserify lib/$npm_config_ui/index.js | uglifyjs -c > dist/$npm_config_ui/bundle.js && cp $npm_config_ui/index.html dist/$npm_config_ui/ && cp $npm_config_ui/*.css dist/$npm_config_ui/ || :",
"predist": "npm -s run css && rm -rf dist/fonts && cp -R served/ dist/ && rm -f dist/fonts && cp -R node_modules/font-awesome/fonts dist/ && cp dist-index.html dist/index.html",
"dist": "for ui in *-ui; do npm -s run dist-ui --ui=$ui; done",
"predeploy": "npm -s run dist",
"deploy": "rm -f dist.zip && zip -r dist.zip dist && scp dist.zip aeshin.org: && ssh aeshin.org 'unzip dist.zip && rm -rf eioh && mv dist eioh'"
},
"dependencies": {
"babel-runtime": "^6.3.19",
"basscss": "^7.1.0",
"colorbrewer": "^1.0.0",
"d3": "^3.5.15",
"d3-svg-legend": "^1.8.0",
"font-awesome": "^4.5.0",
"react": "^0.14.5",
"react-dom": "^0.14.5",
"react-transcript-player": "^1.4.0",
"whatwg-fetch": "^0.10.1"
},
"version": "1.0.0"
}