Skip to content

Commit a22c084

Browse files
committed
add ci script
1 parent dc3c82a commit a22c084

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"format": "prettier 'src/**/*.js' --write --print-width 80 --tab-width 2 --single-quote --trailing-comma all",
55
"lint": "eslint 'src/**/*.js'",
66
"test": "jest",
7-
"test-watch": "jest --watch"
7+
"test-watch": "jest --watch",
8+
"ci": "npm run format && git diff --exit-code && npm run lint && npm test"
89
},
910
"babel": {
1011
"presets": [

0 commit comments

Comments
 (0)