-
Notifications
You must be signed in to change notification settings - Fork 25
/
package.json
117 lines (117 loc) · 4.11 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
{
"name": "disciple.ding-blog",
"title": "Disciple Ding Blog",
"version": "3.0.3",
"homepage": "https://github.com/DiscipleD/blog",
"author": "Discipe.Ding",
"license": "MIT",
"devDependencies": {
"prettier": "^1.12.1",
"memory-fs": "^0.3.0",
"stream": "0.0.2",
"webpack-dev-middleware": "^1.12.2",
"webpack-hot-middleware": "^2.21.0"
},
"dependencies": {
"@types/graphql": "^0.10.2",
"@types/koa": "^2.0.43",
"@types/koa-router": "^7.0.27",
"@types/koa-static": "^3.0.2",
"@types/lodash": "^4.14.95",
"@types/marked": "^0.3.0",
"@types/node": "^8.5.9",
"autoprefixer": "^6.7.7",
"awesome-typescript-loader": "^3.4.1",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-eslint": "^6.0.2",
"babel-loader": "^6.4.1",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-3": "^6.24.1",
"clean-webpack-plugin": "^0.1.17",
"co-body": "^5.1.1",
"copy-webpack-plugin": "^4.3.1",
"css-loader": "^0.23.1",
"es6-promise": "^4.2.4",
"eslint": "^2.8.0",
"eslint-friendly-formatter": "^2.0.7",
"eslint-loader": "^1.8.0",
"eslint-plugin-standard": "^1.3.2",
"extract-text-webpack-plugin": "^2.1.2",
"file-loader": "^0.8.5",
"graphql": "^0.6.2",
"html-loader": "^0.4.5",
"html-webpack-plugin": "^2.29.0",
"husky": "^0.14.3",
"image-webpack-loader": "^1.7.0",
"jsdom": "^9.12.0",
"koa": "^2.4.1",
"koa-compress": "^2.0.0",
"koa-convert": "^1.2.0",
"koa-graphql": "^0.5.6",
"koa-mount": "^2.0.0",
"koa-router": "^7.3.0",
"koa-static": "^2.1.0",
"lint-staged": "^7.0.4",
"lodash": "^4.17.4",
"lru-cache": "^4.1.1",
"marked": "^0.3.12",
"node-fetch": "^1.7.3",
"node-sass": "^4.7.2",
"nodemon": "^1.14.11",
"pm2": "^2.9.3",
"postcss-loader": "^1.3.3",
"sass-loader": "^6.0.6",
"serialize-javascript": "^1.3.0",
"source-map-loader": "^0.2.3",
"style-loader": "^0.13.2",
"tslint": "^5.9.1",
"tslint-loader": "^3.5.3",
"typescript": "~2.4.1",
"url-loader": "^0.5.9",
"vue": "~2.3.4",
"vue-class-component": "^5.0.2",
"vue-loader": "^9.9.5",
"vue-router": "^2.8.1",
"vue-server-renderer": "~2.3.4",
"vuex": "^2.5.0",
"vuex-router-sync": "^4.3.2",
"web-push": "^3.2.5",
"webpack": "^3.10.0",
"whatwg-fetch": "^1.1.0"
},
"repository": {
"type": "git",
"url": "https://github.com/DiscipleD/blog.git"
},
"scripts": {
"clean": "rm -rf build",
"createDir": "mkdir build && mkdir build/server && mkdir build/server/data && mkdir build/server/data/posts",
"copy": "npm run copy:posts && npm run copy:404",
"copy:posts": "cp src/server/data/posts/*.md build/server/data/posts/",
"copy:404": "cp src/404.html build/",
"ready": "npm run clean && npm run createDir && npm run copy",
"watch":
"tsc -w -p tsconfig-server.json & babel src/server -w -d build/server --no-babelrc --presets=es2015,stage-3",
"start": "npm run ready && npm run watch & nodemon --watch build/server --delay 2 build/server/server.js",
"build": "npm run ready && NODE_ENV=production npm run build:server && NODE_ENV=production npm run build:client",
"build:client":
"webpack --config config/webpack/client.js --display-optimization-bailout && webpack --config config/webpack/server.js",
"build:clientDll": "webpack --config config/webpack/dll.js",
"build:server":
"tsc -p tsconfig-server.json && babel src/server -d build/server --no-babelrc --presets=es2015,stage-3",
"start:server":
"NODE_ENV=production pm2 start build/server/server.js --name blog -i 2 --output /var/log/node/out.log --error /var/log/node/error.log --no-daemon",
"stop:server": "pm2 stop blog",
"precommit": "lint-staged",
"log": "pm2 logs"
},
"lint-staged": {
"*.{json,scss,css}": ["prettier --write", "git add"]
}
}