File tree Expand file tree Collapse file tree 3 files changed +43
-5
lines changed Expand file tree Collapse file tree 3 files changed +43
-5
lines changed Original file line number Diff line number Diff line change 10
10
11
11
docker :
12
12
# specify the version you desire here
13
- - image : circleci/node:8
13
+ - image : circleci/node:12
14
14
15
15
# Specify service dependencies here if necessary
16
16
# CircleCI maintains a library of pre-built images
51
51
git add .
52
52
git commit -m "generated docs"
53
53
git push origin HEAD:gh-pages --force
54
+ lint :
55
+ branches :
56
+ ignore :
57
+ - master
58
+ - gh-pages
59
+
60
+ docker :
61
+ # specify the version you desire here
62
+ - image : circleci/node:12
63
+
64
+ # Specify service dependencies here if necessary
65
+ # CircleCI maintains a library of pre-built images
66
+ # documented at https://circleci.com/docs/2.0/circleci-images/
67
+ # - image: circleci/mongo:3.4.4
68
+
69
+ working_directory : ~/repo
70
+
71
+ steps :
72
+ - checkout
73
+
74
+ # Download and cache dependencies
75
+ - restore_cache :
76
+ keys :
77
+ - v1-dependencies-{{ checksum "package.json" }}
78
+ # fallback to using the latest cache if no exact match is found
79
+ - v1-dependencies-
80
+
81
+ - run : yarn install
82
+
83
+ - save_cache :
84
+ paths :
85
+ - node_modules
86
+ key : v1-dependencies-{{ checksum "package.json" }}
87
+
88
+ # run tests!
89
+ - run : yarn lint
Original file line number Diff line number Diff line change 1
- v8.9.4
1
+ v12
Original file line number Diff line number Diff line change 6
6
},
7
7
"scripts" : {
8
8
"start" : " hexo server" ,
9
+ "lint" : " zhlint 'src/v2/{guide,api,style-guide}/*.md'" ,
9
10
"build" : " node pre-deploy.js && hexo clean && hexo generate" ,
10
11
"deploy" : " npm run build && hexo deploy"
11
12
},
12
13
"engines" : {
13
- "node" : " >=8.9 .0"
14
+ "node" : " >=12.0 .0"
14
15
},
15
16
"dependencies" : {
16
17
"hexo" : " ^3.6.0" ,
27
28
"hexo-renderer-stylus" : " ^0.3.3" ,
28
29
"hexo-server" : " ^0.3.1" ,
29
30
"hoek" : " ^6.1.2" ,
30
- "request" : " ^2.85.0"
31
+ "request" : " ^2.85.0" ,
32
+ "zhlint" : " git+https://github.com/Jinjiang/zhlint.git"
31
33
}
32
- }
34
+ }
You can’t perform that action at this time.
0 commit comments