Skip to content

Commit 9ea561c

Browse files
committed
add integration test to sanity check the build and test scripts in an example project
1 parent fd11853 commit 9ea561c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hyperapp-scripts",
3-
"version": "0.2.2",
3+
"version": "0.3.0",
44
"description": "Hyperapp expansion pack for create-react-app",
55
"bin": {
66
"hyperapp-scripts": "./bin/index.js"
@@ -9,8 +9,11 @@
99
"clean": "npx rimraf node_modules example/{node_modules,build}",
1010
"format": "npx prettier --write bin/*.js example/src/**/*.{css,js}",
1111
"format:check": "npx prettier --list-different bin/*.js example/src/**/*.{css,js}",
12-
"start": "npm i && cd example && npm i && npm start",
13-
"release": "./pre-flight-tests && npm run format:check && git tag $npm_package_version && git push && git push --tags && npm publish"
12+
"setup": "npm i && cd example && npm i",
13+
"start": "npm run setup && cd example && npm start",
14+
"test": "npm run clean && npm run setup && cd example && npm run build && CI=1 npm test",
15+
"check": "npm run format:check && npm test",
16+
"release": "./pre-flight-tests && npm run check && git tag $npm_package_version && git push && git push --tags && npm publish"
1417
},
1518
"dependencies": {
1619
"react-scripts": "=3.0.0"

0 commit comments

Comments
 (0)