Skip to content

Commit

Permalink
build: add packages scripts clean and test
Browse files Browse the repository at this point in the history
- yarn clean - clean all non-root workspaces
- yarn clean:all - all workspaces including root and removes yarn.lock
- test - run all tests, currently tests for @drizzle/{store,vue-plugin}
- test:store - run only tests for @drizzle/store
- test:store:verbose - run only tests for @drizzle/store passing verbose
  flag
- test:vue - run only tests for @drizzle/vue-plugin
  • Loading branch information
cds-amal committed Aug 28, 2019
1 parent 505265d commit 5b2bedc
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"ui-tests/*"
],
"scripts": {
"clean": "lerna clean",
"clean:all": "rm -rf ./node_modules yarn.lock && lerna clean",

"prepare": "lerna run prepare --stream --concurrency 1",
"ver:start": "./scripts/registry-start.sh",
"ver:stop": "./scripts/registry-stop.sh",
Expand All @@ -16,7 +19,13 @@
"ganache:deploy": "lerna run ganache:deploy --stream",
"serve:ui": "lerna run serve:ui --stream --concurrency 3",

"webpack-reports": "lerna run webpack-report --parallel --stream"
"webpack-reports": "lerna run webpack-report --parallel --stream",

"test": "lerna run test --parallel --stream",
"test:store": "lerna run test --stream --scope @drizzle/store",
"test:store:verbose": "lerna run test --stream --scope @drizzle/store -- --verbose",

"test:vue": "lerna run test --stream --scope @drizzle/vue-plugin"
},
"husky": {
"hooks": {
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"lint": "vue-cli-service lint",
"prepare": "vue-cli-service build --target lib --name drizzle-vue-plugin ./src/DrizzleVuePlugin.js",
"test:unit": "vue-cli-service test:unit"
"test": "vue-cli-service test:unit"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion ui-tests/react-context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"scripts": {
"serve:ui": "PORT=3001 react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"test:ui": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
Expand Down
2 changes: 1 addition & 1 deletion ui-tests/react-redux/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"scripts": {
"serve:ui": "PORT=3000 react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"test:ui": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
Expand Down
2 changes: 1 addition & 1 deletion ui-tests/truffle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"test": "test"
},
"scripts": {
"test": "truffle test",
"test:sol": "truffle test",
"ganache": "ganache-cli -p 9545 -m 'butter mention wealth vicious fancy plastic treat title filter excess witness bus'",
"ganache:deploy": "truffle migrate --reset"
},
Expand Down

0 comments on commit 5b2bedc

Please sign in to comment.