Skip to content

Commit 9497c0b

Browse files
committed
2 parents 7a5e6b6 + 9857677 commit 9497c0b

File tree

3 files changed

+2548
-1726
lines changed

3 files changed

+2548
-1726
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 && cross-env BABEL_ENV=production 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",
@@ -28,14 +26,13 @@
2826
"husky": {
2927
"hooks": {
3028
"pre-commit": "lint-staged && npm run lint && flow",
31-
"commit-msg": "commitlint -e $GIT_PARAMS",
29+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
3230
"pre-push": "npm test"
3331
}
3432
},
3533
"lint-staged": {
3634
"*.{js,json,css,md}": [
37-
"prettier --write",
38-
"git add"
35+
"prettier --write"
3936
]
4037
},
4138
"commitlint": {
@@ -80,7 +77,7 @@
8077
},
8178
"homepage": "https://github.com/jedwards1211/react-library-skeleton#readme",
8279
"devDependencies": {
83-
"@babel/cli": "^7.1.5",
80+
"@babel/cli": "^7.8.4",
8481
"@babel/core": "^7.1.6",
8582
"@babel/plugin-proposal-class-properties": "^7.1.0",
8683
"@babel/plugin-proposal-export-default-from": "^7.0.0",
@@ -92,17 +89,17 @@
9289
"@babel/preset-flow": "^7.0.0",
9390
"@babel/preset-react": "^7.0.0",
9491
"@babel/register": "^7.0.0",
95-
"@commitlint/cli": "^6.0.2",
96-
"@commitlint/config-conventional": "^6.0.2",
97-
"@jedwards1211/commitlint-config": "^1.0.0",
92+
"@commitlint/cli": "^11.0.0",
93+
"@commitlint/config-conventional": "^11.0.0",
94+
"@jedwards1211/commitlint-config": "^1.0.1",
9895
"@jedwards1211/eslint-config": "^2.0.0",
9996
"@jedwards1211/eslint-config-flow": "^2.0.0",
10097
"@jedwards1211/eslint-config-react": "^4.0.0",
10198
"babel-eslint": "^10.0.1",
10299
"babel-plugin-flow-react-proptypes": "^24.1.2",
103100
"babel-plugin-istanbul": "^5.1.0",
104101
"chai": "^4.2.0",
105-
"codecov": "^3.1.0",
102+
"codecov": "^3.8.0",
106103
"copy": "^0.3.2",
107104
"cross-env": "^5.2.0",
108105
"enzyme": "^3.8.0",
@@ -111,11 +108,9 @@
111108
"eslint-config-prettier": "^3.3.0",
112109
"eslint-plugin-flowtype": "^3.2.0",
113110
"eslint-plugin-react": "^7.11.1",
114-
"eslint-watch": "^4.0.2",
115111
"flow-bin": "^0.92.0",
116-
"flow-copy-source": "^2.0.2",
117-
"flow-watch": "^1.1.4",
118-
"husky": "^1.1.4",
112+
"flow-copy-source": "https://github.com/jedwards1211/flow-copy-source#no-watch",
113+
"husky": "^4.3.0",
119114
"istanbul": "^0.4.5",
120115
"jsdom": "^11.5.1",
121116
"jsdom-global": "^3.0.2",
@@ -127,7 +122,7 @@
127122
"react": "^16.6.3",
128123
"react-dom": "^16.6.3",
129124
"rimraf": "^2.6.0",
130-
"semantic-release": "^15.1.4"
125+
"semantic-release": "^17.1.2"
131126
},
132127
"dependencies": {
133128
"@babel/runtime": "^7.1.5",

0 commit comments

Comments
 (0)