Skip to content

Commit ada9f90

Browse files
chore: improve dx (#74)
1 parent b39a596 commit ada9f90

File tree

3 files changed

+207
-409
lines changed

3 files changed

+207
-409
lines changed

.travis.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,4 @@ node_js:
55
- "12"
66
- "14"
77

8-
script: yarn ci
9-
10-
after_success:
11-
- cat ./coverage/lcov.info | node_modules/.bin/coveralls --verbose
12-
- cat ./coverage/coverage.json | node_modules/codecov.io/bin/codecov.io.js
13-
- rm -rf ./coverage
8+
script: yarn test && coveralls < coverage/lcov.info

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@
1313
"prettier": "prettier -l --ignore-path .gitignore . \"!test/test-cases\"",
1414
"eslint": "eslint --ignore-path .gitignore .",
1515
"lint": "yarn eslint && yarn prettier",
16-
"pretest": "yarn lint",
17-
"test": "jest --coverage",
1816
"test:only": "jest",
19-
"autotest": "jest --coverage --watch",
20-
"cover": "jest --coverage",
21-
"ci": "yarn pretest && yarn cover",
17+
"test:watch": "jest --watch",
18+
"test:coverage": "jest --coverage --collectCoverageFrom=\"src/**/*\"",
19+
"pretest": "yarn lint",
20+
"test": "yarn test:coverage",
2221
"prepublishOnly": "yarn test"
2322
},
2423
"repository": {
@@ -38,11 +37,12 @@
3837
},
3938
"homepage": "https://github.com/css-modules/icss-utils#readme",
4039
"devDependencies": {
40+
"coveralls": "^3.1.0",
4141
"eslint": "^7.9.0",
4242
"husky": "^4.3.0",
4343
"jest": "^26.4.2",
4444
"lint-staged": "^10.4.0",
45-
"postcss": "^8.0.6",
45+
"postcss": "^8.0.7",
4646
"prettier": "^2.1.2"
4747
},
4848
"peerDependencies": {

0 commit comments

Comments
 (0)