-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
79 lines (79 loc) · 3.05 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
{
"name": "state-driven-routing",
"version": "1.0.0",
"description": "Implement routing without special dependencies or libraries.",
"license": "MIT",
"author": "Baz <baz@thinkloop.com>",
"homepage": "https://github.com/thinkloop/state-driven-routing#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/thinkloop/state-driven-routing.git"
},
"bugs": {
"url": "https://github.com/thinkloop/state-driven-routing/issues"
},
"keywords": [
"routing",
"react-router",
"spa",
"redux",
"react",
"selectors"
],
"main": "./build/state-driven-routing.js",
"scripts": {
"************": "",
"start": "spa-webserver -d $npm_package_config_build_folder",
"watch": "clear; echo '* YARN UPDATE *'; yarn upgrade; echo '* CLEAN * HTML * WATCHIFY *'; NODE_ENV=development npm run -s watch:all",
"test": "clear; echo '**** TESTS ****'; jest",
"***********": "",
"watch:all": "npm run -s clean && (npm run -s watch:js & npm run -s watch:html)",
"watch:js": "watchify $npm_package_config_js_entry_file --extension=.js --extension=.jsx -t [ babelify ] --debug -o 'exorcist $npm_package_config_build_folder/$npm_package_version/build.js.map > $npm_package_config_build_folder/$npm_package_version/build.js && echo ---------WATCHIFY--------`date +%r`'",
"watch:html": "onchange $npm_package_config_html_entry_file -i -- npm run -s watch:html:do",
"watch:html:do": "cat $npm_package_config_html_entry_file | npm run -s partial:replaceBuildFolderString > $npm_package_config_build_folder/index.html && echo ---------HTML-----------`date +%r`",
"*********": "",
"clean": "rimraf $npm_package_config_build_folder/* && mkdir -p $npm_package_config_build_folder && mkdir -p $npm_package_config_build_folder/$npm_package_version && echo ---------CLEAN----------`date +%r`",
"partial:uglify": "[ $NODE_ENV = production ] && uglifyjs --compress drop_console,unused=true --mangle --screw-ie8 || cat",
"partial:replaceBuildFolderString": "sed 's~${build_folder}~'$npm_package_version'~g'"
},
"dependencies": {
"browserify-shim": "^3.8.12",
"classnames": "2.2.5",
"combine-selectors": "thinkloop/combine-selectors",
"link-react": "thinkloop/link-react",
"memoizerific": "^1.8.4",
"redux": "^3.6.0",
"redux-thunk": "^2.1.0"
},
"devDependencies": {
"babel-jest": "^16.0.0",
"babel-preset-es2015": "^6.16.0",
"babel-preset-react": "6.16.0",
"babel-preset-stage-0": "6.16.0",
"babelify": "^7.3.0",
"browserify": "13.1.0",
"derequire": "^2.0.3",
"exorcist": "^0.4.0",
"jest": "^16.0.0",
"onchange": "^3.0.2",
"redux-mock-store": "^1.2.1",
"rimraf": "^2.5.4",
"spa-webserver": "^1.0.5",
"uglifyjs": "^2.4.10",
"watchify": "^3.7.0"
},
"browserify": {
"transform": [
"browserify-shim"
]
},
"browserify-shim": {
"react": "global:React",
"react-dom": "global:ReactDOM"
},
"config": {
"js_entry_file": "./src/index.js",
"html_entry_file": "./src/index.html",
"build_folder": "./build"
}
}