-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
78 lines (78 loc) · 2.74 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
{
"name": "my_github",
"version": "0.1.0",
"description": "My github page",
"author": "shenqihui <shenqihui0920@gmail.com>",
"license": "MIT",
"scripts": {
"clean": "rm -f dist/{css/*,js/*,img/*}",
"autoprefixer": "postcss -u autoprefixer -r dist/css/*",
"less": "for file in src/less/*.less; do lessc --strict-imports $file dist/css/`basename -s .less $file`.css ; done",
"lint": "eslint src/js",
"jsxhint": "jsxhint src/js",
"react": "mkdir -p dist/js/ && browserify -t [ babelify --presets [ react es2015 ] ] src/js/app.js -o dist/js/app.js && browserify -t [ babelify --presets [ react es2015 ] ] src/js/es6.app.jsx -o dist/js/es6.app.js",
"uglify": "mkdir -p dist/js && rm -rf dist/js/app.min.js && uglifyjs dist/js/*.js -m -c -o dist/js/app.min.js",
"imagemin": "imagemin src/img dist/img -p",
"icons": "svgo -f src/img/icons && mkdir -p dist/img && svg-sprite-generate -d src/img/icons -o dist/img/icons.svg",
"serve": "browser-sync start --reload-delay 200 --server --files 'dist/css/**/*.css, dist/js/**/*.js, **/*.html, !node_modules/**/*.html'",
"build:less": "npm run less && npm run autoprefixer",
"build:js": "npm run react",
"build:img": "npm run imagemin && npm run icons",
"build:all": "npm run build:less && npm run build:js && npm run build:img",
"watch:less": "onchange 'src/less/**/*.less' -v -- npm run build:less",
"watch:js": "onchange 'src/js/**/*.*' -- npm run build:js",
"watch:img": "onchange 'src/img/**/*.*' -- npm run build:img",
"watch:all": "npm-run-all -p build:all watch:less watch:js watch:img serve",
"postinstall": "npm run watch:all"
},
"browser": {
"react": "react"
},
"browserify": {
"transform": [
[
"babelify",
{
"presets": [
"react",
"es2015"
]
}
]
]
},
"browserify-shim": {
"react": "global:React",
"react-dom": "global:ReactDOM",
"jquery": "global:$"
},
"devDependencies": {
"autoprefixer": "^6.3.1",
"babel-preset-es2015": "^6.5.0",
"babel-preset-react": "^6.5.0",
"babelify": "^7.2.0",
"browser-sync": "^2.11.1",
"browserify": "~6.0.3",
"debowerify": "^0.8.2",
"eslint": "^1.10.3",
"eslint-config-standard": "^4.4.0",
"eslint-plugin-standard": "^1.3.1",
"imagemin-cli": "^2.1.0",
"jsxhint": "^0.15.1",
"less": "^2.6.0",
"npm-run-all": "^1.5.1",
"onchange": "^2.0.0",
"parallelshell": "^2.0.0",
"postcss-cli": "^2.4.0",
"react": "^0.13.3",
"react-dom": "^0.14.7",
"svg-sprite-generator": "0.0.7",
"svgo": "^0.6.1",
"uglify-js": "^2.6.1",
"vinyl-source-stream": "~1.0.0"
},
"dependencies": {
"react": "~0.13.2",
"react-flip-move": "^1.1.1"
}
}