Skip to content

Commit 9857677

Browse files
committed
chore: upgrade build tools and config
1 parent 7d69a3e commit 9857677

File tree

3 files changed

+2529
-1727
lines changed

3 files changed

+2529
-1727
lines changed

.circleci/config.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,26 @@ version: 2
22
jobs:
33
build:
44
docker:
5-
- image: circleci/node:8
5+
- image: circleci/node:12.16
66

77
steps:
88
- checkout
9-
- restore_cache:
10-
name: Restore Yarn Package Cache
11-
keys:
12-
- v1-yarn-packages-{{ checksum "yarn.lock" }}
139

1410
- run:
1511
name: Setup NPM Token
1612
command: |
17-
yarn config set registry "https://registry.npmjs.org/"
18-
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
19-
echo "registry=https://registry.npmjs.org/" >> .npmrc
13+
yarn config set registry "https://registry.npmjs.org/"
14+
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
15+
echo "registry=https://registry.npmjs.org/" >> .npmrc
2016
2117
# https://github.com/atlassian/react-beautiful-dnd/issues/1007#issuecomment-446415426
2218
- run:
23-
name: Workaround for Flow crashing
24-
command: echo "server.max_workers=1" >> .flowconfig
19+
name: Workaround for Flow crashing
20+
command: echo "server.max_workers=1" >> .flowconfig
2521

2622
- run:
2723
name: Install Dependencies
2824
command: yarn install --frozen-lockfile
29-
- save_cache:
30-
name: Save Yarn Package Cache
31-
key: v1-yarn-packages-{{ checksum "yarn.lock" }}
32-
paths:
33-
- ~/.cache/yarn
3425

3526
- run:
3627
name: build

package.json

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
"scripts": {
88
"lint": "eslint src test --cache",
99
"lint:fix": "eslint --fix src test --cache",
10-
"lint:watch": "esw --watch src test --cache",
1110
"prettier": "prettier --write *.json *.md *.js '{src,test}/**/*.js'",
1211
"prettier:check": "prettier --list-different *.json *.md *.js '{src,test}/**/*.js'",
1312
"flow": "flow",
1413
"flow:coverage": "for file in src/**.js test/**.js; do echo $file; flow coverage $file; done",
15-
"flow:watch": "flow-watch -e js,js.flow,flowconfig --ignore es/ --ignore node_modules/ --watch .flowconfig --watch src/ --watch test/",
1614
"clean": "rimraf es lib $(cd src; ls) *.js.flow",
1715
"build": "npm run clean && babel src --out-dir es && flow-copy-source -v src/ es && cross-env BABEL_ENV=es5 babel src --out-dir . && flow-copy-source -v src/ .",
1816
"test": "cross-env NODE_ENV=test BABEL_ENV=es5 mocha $npm_package_config_mocha && cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=lcov --reporter=text mocha $npm_package_config_mocha",
@@ -26,14 +24,13 @@
2624
"husky": {
2725
"hooks": {
2826
"pre-commit": "lint-staged && npm run lint && flow",
29-
"commit-msg": "commitlint -e $GIT_PARAMS",
27+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
3028
"pre-push": "npm test"
3129
}
3230
},
3331
"lint-staged": {
3432
"*.{js,json,css,md}": [
35-
"prettier --write",
36-
"git add"
33+
"prettier --write"
3734
]
3835
},
3936
"commitlint": {
@@ -76,7 +73,7 @@
7673
},
7774
"homepage": "https://github.com/jedwards1211/es2015-library-skeleton#readme",
7875
"devDependencies": {
79-
"@babel/cli": "^7.1.5",
76+
"@babel/cli": "^7.8.4",
8077
"@babel/core": "^7.1.6",
8178
"@babel/plugin-proposal-class-properties": "^7.1.0",
8279
"@babel/plugin-proposal-export-default-from": "^7.0.0",
@@ -87,33 +84,31 @@
8784
"@babel/preset-env": "^7.1.6",
8885
"@babel/preset-flow": "^7.0.0",
8986
"@babel/register": "^7.0.0",
90-
"@commitlint/cli": "^6.0.2",
91-
"@commitlint/config-conventional": "^6.0.2",
92-
"@jedwards1211/commitlint-config": "^1.0.0",
87+
"@commitlint/cli": "^11.0.0",
88+
"@commitlint/config-conventional": "^11.0.0",
89+
"@jedwards1211/commitlint-config": "^1.0.1",
9390
"@jedwards1211/eslint-config": "^2.0.0",
9491
"@jedwards1211/eslint-config-flow": "^2.0.0",
9592
"babel-eslint": "^10.0.1",
9693
"babel-plugin-istanbul": "^5.1.0",
9794
"chai": "^4.2.0",
98-
"codecov": "^3.1.0",
95+
"codecov": "^3.8.0",
9996
"copy": "^0.3.2",
10097
"cross-env": "^5.2.0",
10198
"eslint": "^5.9.0",
10299
"eslint-config-prettier": "^3.3.0",
103100
"eslint-plugin-flowtype": "^3.2.0",
104-
"eslint-watch": "^4.0.2",
105101
"flow-bin": "^0.92.0",
106-
"flow-copy-source": "^2.0.2",
107-
"flow-watch": "^1.1.4",
108-
"husky": "^1.1.4",
102+
"flow-copy-source": "https://github.com/jedwards1211/flow-copy-source#no-watch",
103+
"husky": "^4.3.0",
109104
"istanbul": "^0.4.5",
110105
"lint-staged": "^8.0.4",
111106
"mocha": "^6.2.1",
112107
"nyc": "^13.1.0",
113108
"prettier": "^1.15.2",
114109
"prettier-eslint": "^8.8.2",
115110
"rimraf": "^2.6.0",
116-
"semantic-release": "^15.1.4"
111+
"semantic-release": "^17.1.2"
117112
},
118113
"dependencies": {
119114
"@babel/runtime": "^7.1.5"

0 commit comments

Comments
 (0)