-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
63 lines (63 loc) · 2.73 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
{
"version": "1.0.0",
"name": "todo-app",
"description": "Example todo app of extreme decoupling of react, redux and selectors",
"author": "Baz <baz@thinkloop.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/thinkloop/todo-app.git"
},
"homepage": "https://github.com/thinkloop/todo-app#readme",
"bugs": {
"url": "https://github.com/thinkloop/todo-app/issues"
},
"keywords": [
"todo",
"mvc",
"todomvc",
"redux"
],
"main": "./build/index.html",
"scripts": {
"************": "",
"start": "spa-webserver -d $npm_package_config_build_folder",
"watch": "clear; echo '* NPM UPDATE *'; npm update; echo '* CLEAN * HTML * WATCHIFY *'; NODE_ENV=development npm run -s watch:all",
"test": "clear; echo '* NPM UPDATE *'; npm update; 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": {
"combine-selectors": "thinkloop/combine-selectors",
"memoizerific": "^1.8.4",
"todo-react-components": "thinkloop/todo-react-components",
"todo-redux-state": "thinkloop/todo-redux-state"
},
"devDependencies": {
"babel-jest": "^16.0.0",
"babel-preset-es2015": "^6.16.0",
"babel-preset-stage-0": "6.16.0",
"babelify": "^7.3.0",
"browserify": "13.1.0",
"exorcist": "^0.4.0",
"jest": "^16.0.0",
"npm-check-updates": "^2.8.2",
"onchange": "^3.0.2",
"rimraf": "^2.5.4",
"spa-webserver": "^1.0.5",
"uglifyjs": "^2.4.10",
"watchify": "^3.7.0"
},
"config": {
"js_entry_file": "./src/index.js",
"html_entry_file": "./src/index.html",
"build_folder": "./build"
}
}