Skip to content

Commit fc4a6c2

Browse files
committed
Merge branch 'master' of github.com:vuejs/cn.vuejs.org into attr-prop
2 parents 52d85f7 + aa1acd3 commit fc4a6c2

File tree

3 files changed

+994
-612
lines changed

3 files changed

+994
-612
lines changed

.circleci/config.yml

Lines changed: 31 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,34 @@
44
#
55
version: 2
66
jobs:
7-
build:
8-
branches:
9-
only: master
10-
7+
lint:
8+
working_directory: ~/repo
119
docker:
12-
# specify the version you desire here
1310
- image: circleci/node:12
14-
15-
# Specify service dependencies here if necessary
16-
# CircleCI maintains a library of pre-built images
17-
# documented at https://circleci.com/docs/2.0/circleci-images/
18-
# - image: circleci/mongo:3.4.4
19-
11+
steps:
12+
- checkout
13+
- restore_cache:
14+
key: dependencies-cache-{{ checksum "package.json" }}
15+
- run: yarn install
16+
- save_cache:
17+
key: dependencies-cache-{{ checksum "package.json" }}
18+
paths:
19+
- node_modules
20+
- run: yarn lint
21+
build:
2022
working_directory: ~/repo
21-
23+
docker:
24+
- image: circleci/node:12
2225
steps:
2326
- checkout
24-
25-
# Download and cache dependencies
2627
- restore_cache:
27-
keys:
28-
- v1-dependencies-{{ checksum "package.json" }}
29-
# fallback to using the latest cache if no exact match is found
30-
- v1-dependencies-
31-
28+
key: dependencies-cache-{{ checksum "package.json" }}
3229
- run: yarn install
33-
3430
- save_cache:
31+
key: dependencies-cache-{{ checksum "package.json" }}
3532
paths:
3633
- node_modules
37-
key: v1-dependencies-{{ checksum "package.json" }}
38-
39-
# run tests!
4034
- run: yarn build
41-
# - run: yarn deploy
4235
- run:
4336
name: deploy
4437
command: |
@@ -51,39 +44,18 @@ jobs:
5144
git add .
5245
git commit -m "generated docs"
5346
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
8247
83-
- save_cache:
84-
paths:
85-
- node_modules
86-
key: v1-dependencies-{{ checksum "package.json" }}
87-
88-
# run tests!
89-
- run: yarn lint
48+
workflows:
49+
version: 2
50+
lint_and_build:
51+
jobs:
52+
- lint:
53+
filters:
54+
branches:
55+
ignore:
56+
- master
57+
- gh-pages
58+
- build:
59+
filters:
60+
branches:
61+
only: master

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
"hexo-server": "^0.3.1",
3030
"hoek": "^6.1.2",
3131
"request": "^2.85.0",
32-
"zhlint": "git+https://github.com/Jinjiang/zhlint.git"
32+
"zhlint": "^0.2.2"
3333
}
3434
}

0 commit comments

Comments
 (0)