-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpackage.json
119 lines (119 loc) · 6.07 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"name": "augur-ui-react-components",
"version": "3.6.43",
"description": "Augur UI React Components",
"author": "Augur Project",
"license": "AAL",
"engines": {
"node": ">= 4.2.x"
},
"main": "./build/components.jsx",
"repository": {
"type": "git",
"url": "https://github.com/AugurProject/augur-ui-react-components.git"
},
"scripts": {
"*** top-level runnable scripts ***": "",
"start": "augur-ui-webserver -d './demo'",
"watch": "clear; echo \"* NPM UPDATE *\"; npm update; echo \"* CLEAN * HTML * ASSETS * CSS * WATCHIFY *\"; NODE_ENV=development; npm run -s watch:all",
"build": "clear; echo \"* NPM UPDATE *\"; npm update; echo \"* * * * BUILD * * * *\"; NODE_ENV=production npm run -s build:all",
"lint": "clear; echo Linting... && eslint --ext .jsx,.js src && stylelint '**/*.less' && echo Linting Complete!",
"lint:watch": "npm run lint -- --watch",
"test": "NODE_ENV=test NODE_PATH=./src mocha",
"publish_to_npm": "clear; echo \"* * * * PUBLISH * * * *\"; NODE_ENV=development npm run -s build:all && git add --all && git commit -m 'build for publish' && npm version patch && git push --follow-tags && npm publish",
"deploy:demo": "firebase deploy -f augur-ui",
"coverage": "NODE_ENV=test NODE_PATH=./src istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec --compilers js:babel-register && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
"______": "",
"build:all": "npm run -s clean:build && npm run -s clean:lib && (npm run -s build:css & npm run -s build:assets & npm run -s build:assertions & npm run -s build:js) && npm run -s build:finish",
"build:assets": "cp -R ./src/assets/. ./build/assets && echo ---------ASSETS---------`date +%r`",
"build:css": "lessc --glob $npm_package_config_less_entry_file | postcss --use autoprefixer | cleancss --s0 > ./build/styles.css | sed -e 's~less~css~' && echo ---------CSS------------`date +%r`",
"build:js": "npm run -s build:js:browserify | npm run -s partial:uglify > ./build/components.jsx && echo ---------JS-------------`date +%r`",
"build:js:browserify": "browserify $npm_package_config_js_entry_file_build --extension=.js --extension=.jsx --detectGlobals false --standalone augur-react-components -t [ babelify --presets [ es2015 stage-0 react ] ] -t [envify purge] | derequire",
"build:assertions": "npm run -s build:assertions:do > ./lib/assertions.js && echo ---------ASSERTIONS-----`date +%r`",
"build:assertions:do": "browserify \"./src/assertions.js\" --exclude chai --extension=.js --extension=.jsx --detectGlobals false --standalone augur-react-components -t [ babelify --presets [ es2015 stage-0 react ] ] -t [envify purge] | derequire",
"build:finish": "echo ---------FINISHED-------`date +%r`",
"_______": "On change create build",
"watch:all": "npm run -s clean:demo && (npm run -s watch:css & npm run -s watch:assets & npm run -s watch:js & npm run -s watch:html)",
"watch:assets": "onchange './src/assets/**' -i -- npm run -s watch:assets:do",
"watch:assets:do": "cp -R ./src/assets/. ./demo/assets && echo ---------ASSETS---------`date +%r`",
"watch:css": "onchange './src/**/*.less' -i -- npm run -s watch:css:do",
"watch:css:do": "lessc --glob $npm_package_config_less_entry_file | postcss --use autoprefixer > ./demo/styles.css && echo ---------CSS------------`date +%r`",
"watch:js": "watchify $npm_package_config_js_entry_file_demo --extension=.js --extension=.jsx -t [ babelify --presets [ es2015 stage-0 react ] ] -t [envify purge] --debug -o 'exorcist ./demo/build.js.map > ./demo/build.js && echo ---------WATCHIFY--------`date +%r`'",
"watch:html": "onchange './src/index.html' -i -- npm run -s watch:html:do",
"watch:html:do": "cat ./src/index.html > ./demo/index.html && echo ---------HTML-----------`date +%r`",
"_________": "",
"clean:demo": "rm -rf ./demo/* && mkdir -p ./demo && echo ---------CLEAN----------",
"clean:build": "rm -rf ./build/* && mkdir -p ./build && echo ---------CLEAN----------`date +%r`",
"clean:lib": "rm -rf ./lib/* && mkdir -p ./lib && echo ---------CLEAN:lib------`date +%r`",
"__________": "",
"partial:uglify": "[ $NODE_ENV = production ] && uglifyjs --compress drop_console,unused=true --mangle --screw-ie8 || cat"
},
"dependencies": {
"classnames": "2.2.5",
"moment": "2.14.1",
"rc-progress": "2.0.1",
"react": "15.2.1",
"react-datetime": "2.3.2",
"react-dom": "15.2.1",
"react-hammerjs": "^0.5.0",
"react-highcharts": "9.0.0",
"react-tooltip": "3.2.1"
},
"devDependencies": {
"aliasify": "2.0.0",
"augur-ui-webserver": "1.1.0",
"autoprefixer": "6.4.1",
"babel-eslint": "6.1.2",
"babel-preset-es2015": "6.9.0",
"babel-preset-react": "6.11.1",
"babel-preset-stage-0": "6.5.0",
"babel-register": "6.11.6",
"babelify": "7.3.0",
"browserify": "13.1.0",
"chai": "3.5.0",
"clean-css": "3.4.19",
"coveralls": "2.11.12",
"derequire": "2.0.3",
"envify": "3.4.1",
"eslint": "3.8.1",
"eslint-config-airbnb": "12.0.0",
"eslint-import-resolver-node": "^0.2.3",
"eslint-plugin-import": "1.16.0",
"eslint-plugin-jsx-a11y": "2.2.2",
"eslint-plugin-react": "6.3.0",
"exorcist": "0.4.0",
"firebase-tools": "3.0.8",
"inline-source-cli": "1.1.1",
"istanbul": "1.0.0-alpha.2",
"less": "2.7.1",
"less-plugin-glob": "1.1.1",
"mocha": "3.0.0",
"mocha-lcov-reporter": "1.2.0",
"normalize.css": "5.0.0",
"onchange": "2.5.0",
"postcss-cli": "2.6.0",
"shared-git-hooks": "1.2.1",
"stylelint": "7.3.1",
"stylelint-config-standard": "13.0.0",
"uglify-js": "2.7.0",
"watchify": "3.7.0"
},
"config": {
"js_entry_file_build": "./src/components.jsx",
"js_entry_file_demo": "./src/index.js",
"less_entry_file": "./src/styles.less"
},
"browserify": {
"transform": [
"aliasify"
]
},
"aliasify": {
"aliases": {
"assets": "./src/assets",
"modules": "./src/modules",
"selectors": "./src/selectors",
"utils": "./src/utils"
}
}
}