-
Notifications
You must be signed in to change notification settings - Fork 140
/
package.json
60 lines (60 loc) · 2.85 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
{
"name": "spring-mvc-documentation",
"version": "1.0.0",
"description": "一份比较完整的Spring MVC中文翻译文档。译文力求清楚自然,风格简明清新",
"main": "index.html",
"dependencies": {
"fs-extra": "^0.30.0",
"gitbook": "^3.1.1",
"gitbook-cli": "^2.3.0",
"glob": "^7.0.5",
"marked": "^0.3.6",
"stylus": "^0.54.5"
},
"devDependencies": {
"crypto-js": "^3.1.6",
"html-minifier": "^3.0.2",
"qiniu": "^6.1.11"
},
"scripts": {
"images": "mkdir -p dist/app/images && cp -R app/images dist/app && node build/official/copy-documentation-images.js",
"stylus": "mkdir -p dist/app/css && stylus app/css/stylus/*.styl --compress --out dist/app/css",
"404:official": "html-minifier 404.html --collapse-whitespace --minify-css --output dist/errno-404",
"404:gitbook": "html-minifier 404.html --collapse-whitespace --minify-css --output _book/errno-404",
"resources:official": "npm run 404:official && cp favicon.ico dist",
"preprocess": "node build/official/markdown-preprocess.js",
"markdown2html": "node build/official/markdown-to-html.js",
"markdown": "npm run preprocess && npm run markdown2html",
"html-interpolation": "node build/official/docs-html-interpolation.js",
"htmlmin": "html-minifier index.html --collapse-whitespace --output dist/index.html",
"build:gitbook": "gitbook build && npm run 404:gitbook",
"build:official": "npm run images && npm run stylus && npm run resources:official && npm run markdown && npm run html-interpolation && npm run htmlmin",
"qiniusync:gitbook": "node ./build/gitbook/sync-book-to-qiniu.js $ACCESS_KEY $SECRET_KEY",
"qiniusync:official": "node ./build/official/sync-book-to-qiniu.js $ACCESS_KEY $SECRET_KEY",
"qiniuclean": "node ./build/clear-bucket-before-uploading.js $ACCESS_KEY $SECRET_KEY",
"stylus:dev": "npm run stylus -- --watch",
"cleanindex:dev": "node build/clean-index-html.js",
"gitbook:dev": "gitbook serve --port 8087 --lrport 45093",
"build:dev": "npm run build:official && npm run cleanindex:dev",
"deploy:gitbook": "npm run qiniuclean && npm run build:gitbook && npm run qiniusync:gitbook",
"deploy:official": "npm run qiniuclean && npm run build:official && npm run qiniusync:official"
},
"repository": {
"type": "git",
"url": "git+https://github.com/linesh-simplicity/translation-spring-mvc-4-documentation.git"
},
"keywords": [
"spring",
"mvc",
"documentation",
"文档",
"中文",
"翻译"
],
"author": "Linesh (林从羽)",
"license": "MIT",
"bugs": {
"url": "https://github.com/linesh-simplicity/translation-spring-mvc-4-documentation/issues"
},
"homepage": "https://github.com/linesh-simplicity/translation-spring-mvc-4-documentation#readme"
}