Skip to content

Commit a8645b3

Browse files
authored
Add circle, prep for node 8 transition, switch to jest (#12)
1 parent 8355819 commit a8645b3

File tree

7 files changed

+6350
-27
lines changed

7 files changed

+6350
-27
lines changed

.circleci/config.yml

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/node:8
6+
steps:
7+
- checkout
8+
- run: npm install
9+
- run: npm run lint
10+
- persist_to_workspace:
11+
root: ~/
12+
paths:
13+
- project
14+
test-node8:
15+
docker:
16+
- image: circleci/node:8
17+
steps:
18+
- attach_workspace:
19+
at: ~/
20+
- run: npm run test:ci
21+
test-node9:
22+
docker:
23+
- image: circleci/node:9
24+
steps:
25+
- attach_workspace:
26+
at: ~/
27+
- run: npm run test:ci
28+
test-node10:
29+
docker:
30+
- image: circleci/node:10
31+
steps:
32+
- attach_workspace:
33+
at: ~/
34+
- run: npm run test:ci
35+
test-node11:
36+
docker:
37+
- image: circleci/node:11
38+
steps:
39+
- attach_workspace:
40+
at: ~/
41+
- run: npm run test:ci
42+
test-node12:
43+
docker:
44+
- image: circleci/node:12
45+
steps:
46+
- attach_workspace:
47+
at: ~/
48+
- run: npm run test:ci
49+
publish-beta:
50+
docker:
51+
- image: circleci/node:10
52+
steps:
53+
- attach_workspace:
54+
at: ~/
55+
- run:
56+
name: Authenticate with registry
57+
command: echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" >> ~/.npmrc
58+
- run:
59+
name: Publish to beta channel
60+
command: npm publish --tag beta
61+
publish-stable:
62+
docker:
63+
- image: circleci/node:10
64+
steps:
65+
- attach_workspace:
66+
at: ~/
67+
- run:
68+
name: Authenticate with registry
69+
command: echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" >> ~/.npmrc
70+
- run:
71+
name: Publish to stable channel
72+
command: npm publish --tag latest
73+
74+
workflows:
75+
version: 2
76+
build-test-and-publish:
77+
jobs:
78+
- build:
79+
filters:
80+
tags:
81+
only: /.*/
82+
- test-node8:
83+
requires:
84+
- build
85+
filters:
86+
tags:
87+
only: /.*/
88+
- test-node9:
89+
requires:
90+
- build
91+
filters:
92+
tags:
93+
only: /.*/
94+
- test-node10:
95+
requires:
96+
- build
97+
filters:
98+
tags:
99+
only: /.*/
100+
- test-node11:
101+
requires:
102+
- build
103+
filters:
104+
tags:
105+
only: /.*/
106+
- test-node12:
107+
requires:
108+
- build
109+
filters:
110+
tags:
111+
only: /.*/
112+
- publish-beta:
113+
requires:
114+
- test-node8
115+
- test-node9
116+
- test-node10
117+
- test-node11
118+
- test-node12
119+
filters:
120+
tags:
121+
only: /^v\d*\.\d*\.\d*-beta\.\d*$/
122+
branches:
123+
ignore: /.*/
124+
- hold:
125+
type: approval
126+
requires:
127+
- test-node8
128+
- test-node9
129+
- test-node10
130+
- test-node11
131+
- test-node12
132+
filters:
133+
tags:
134+
only: /^v\d*\.\d*\.\d*$/
135+
branches:
136+
ignore: /.*/
137+
- publish-stable:
138+
requires:
139+
- hold
140+
filters:
141+
tags:
142+
only: /^v\d*\.\d*\.\d*$/
143+
branches:
144+
ignore: /.*/

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1111

1212
### Removed
1313

14+
## [2.2.0] - 2019-07-13
15+
- Adjust [valid-values-engines](https://github.com/tclindner/npm-package-json-lint/wiki/valid-values-engines) rule to include v8 for transition to drop node 6.
1416

1517
## [2.1.0] - 2018-06-02
1618
- Added [valid-values-engines](https://github.com/tclindner/npm-package-json-lint/wiki/valid-values-engines)

CONTRIBUTING.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,9 @@ This installs dependencies from `package.json`.
2323

2424
### JavaScript
2525

26-
npm-package-json-lint-config-tc utilizes both ESLint and JSCS to enforce JavaScript standards. Please see the `.eslintrc.json` file for ESLint config and `.jscsrc` for JSCS config.
26+
npm-package-json-lint-config-tc utilizes ESLint to enforce JavaScript standards. Please see the `.eslintrc.json` file for more details.
2727

2828
* [eslint](https://github.com/eslint/eslint)
29-
* [jscs](https://github.com/jscs-dev/node-jscs)
30-
31-
#### JSON
32-
33-
npm-package-json-lint-config-tc utilizes JSON Lint to ensure JSON files are valid.
34-
35-
* [jsonlint](https://github.com/zaach/jsonlint)
3629

3730
#### package.json
3831

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ const config = {
3434
{
3535
node: '>=6.0.0',
3636
npm: '>=3.0.0'
37+
},
38+
{
39+
node: '>=8.0.0',
40+
npm: '>=6.0.0'
3741
}
3842
]],
3943
'valid-values-private': ['error', [false]],

0 commit comments

Comments
 (0)