Skip to content

Commit

Permalink
better scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kof committed Jan 17, 2019
1 parent 6e6ece8 commit d90c2d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@ cache:
after_success:
- bash <(curl -s https://codecov.io/bash)
script:
- yarn check-snapshots
- yarn format:ci
- yarn build
- yarn lint
- yarn ts-check
- yarn typecheck
- yarn check:all
- yarn test
env:
global:
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,21 @@
],
"scripts": {
"build": "yarn workspaces run prepare",
"prepublish-packages": "yarn check-snapshots && yarn build && yarn typecheck && yarn lint && yarn format:ci && yarn test",
"check:all": "yarn check:flow && yarn check:ts && yarn check:snapshots yarn check:lint",
"check:flow": "flow check --max-warnings=0",
"check:ts": "tsc",
"check:snapshots": "yarn workspaces run check-snapshot",
"check:lint": "eslint scripts/ packages/ docs/ --ext js,md",
"prepublish-packages": "yarn build && yarn check:all && yarn format:ci && yarn test",
"publish-packages": "lerna publish",
"typecheck": "flow check --max-warnings=0",
"ts-check": "tsc",
"lint": "eslint scripts/ packages/ docs/ --ext js,md",
"format": "prettier \"*.{js,md,json}\" \"{docs,packages,scripts}/**/*.{js,md,json}\" --write",
"format:ci": "yarn format -- --list-different",
"test": "karma start --single-run",
"test:watch": "karma start",
"check-snapshots": "yarn workspaces run check-snapshot",
"posttest": "[ -z \"$TRAVIS\" ] || codecov",
"codecov": "codecov",
"bench": "cross-env BENCHMARK=true karma start --single-run",
"pre-commit": "lint-staged && yarn typecheck && yarn ts-check && yarn check-snapshots"
"pre-commit": "lint-staged && yarn check:all"
},
"lint-staged": {
"**/*.{js,md,json,ts}": [
Expand Down

0 comments on commit d90c2d5

Please sign in to comment.