Skip to content

Commit

Permalink
Tweak npm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
wKovacs64 committed Jan 20, 2019
1 parent cd74e40 commit 90820bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ jobs:
- run: yarn lint
- run: yarn check-types
- run: yarn test:browser:ci
- run: yarn test:coverage --no-cache
- run: yarn test --coverage --no-cache
- run: ./node_modules/.bin/codecov
16 changes: 7 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,28 +40,26 @@
],
"sideEffects": false,
"scripts": {
"build": "npm-run-all --sequential build:bundle build:types docs",
"build": "npm-run-all --silent --sequential build:bundle build:types build:docs",
"build:bundle": "rollup --config",
"build:docs": "jsdoc2md --no-cache --files src/*.ts --configure jsdoc2md.json > API.md && node scripts/fix-api-docs.js",
"build:types": "dts-bundle-generator --silent --umd-module-name hibp --out-file types/hibp.d.ts src/hibp.ts && prettier --loglevel silent --write types/hibp.d.ts",
"check-types": "npm-run-all --sequential --continue-on-error check-types:*",
"check-types": "npm-run-all --silent --sequential --continue-on-error check-types:*",
"check-types:cypress": "tsc --project cypress",
"check-types:src": "tsc --noEmit",
"clean": "rimraf dist lib es coverage",
"cy:open": "cypress open",
"cy:run": "cypress run",
"docs": "jsdoc2md --no-cache --files src/*.ts --configure jsdoc2md.json > API.md && node scripts/fix-api-docs.js",
"format": "prettier --write \"**/*.{js,ts,json,md,yml}\"",
"lint": "eslint --ext \".js,.ts\" .",
"prebuild": "npm run --silent clean",
"prepare": "npm run --silent build",
"prepublishOnly": "npm-run-all --sequential lint check-types test",
"start-server-and-test": "start-server-and-test start-test-server 5000",
"prepublishOnly": "npm-run-all --silent --sequential lint check-types test",
"ssat": "start-server-and-test start-test-server 5000",
"start-test-server": "serve --no-clipboard",
"test": "cross-env NODE_ENV=test jest",
"test:browser": "npm-run-all --sequential build:bundle \"start-server-and-test cy:open\"",
"test:browser:ci": "npm-run-all --sequential build:bundle \"start-server-and-test cy:run\"",
"test:coverage": "npm run test -- --coverage",
"test:watch": "npm run test -- --watch"
"test:browser": "npm-run-all --silent --sequential build:bundle \"ssat cy:open\"",
"test:browser:ci": "npm-run-all --silent --sequential build:bundle \"ssat cy:run\""
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 90820bd

Please sign in to comment.