Skip to content

Commit

Permalink
chore: optimize ci (zhihu#81)
Browse files Browse the repository at this point in the history
* chore: add babel-loader

* build: change ci script order
  • Loading branch information
wangcheng authored Apr 26, 2019
1 parent 9e2740a commit f8d8c98
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
7 changes: 6 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ module.exports = {
react: {
version: '16',
},
'import/core-modules': ['griffith', 'griffith-mp4'],
'import/core-modules': [
'griffith',
'griffith-mp4',
'griffith-utils',
'griffith-message',
],
},
}
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
language: node_js

node_js:
- 8
- 10

script:
- yarn run build
- yarn run lint
- yarn run format
- yarn run lint
- yarn run build
- yarn run test:coverage

after_success:
Expand All @@ -19,4 +18,4 @@ notifications:
cache:
yarn: true
directories:
- "node_modules"
- 'node_modules'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"zhihu-video-player"
],
"scripts": {
"format": "prettier \"packages/**/*.{js,json,md}\" \"*.{js,json,md}\"",
"format": "prettier --check \"packages/**/*.{js,json,md}\" \"*.{js,json,md}\"",
"format:fix": "prettier --write \"packages/**/*.{js,json,md}\" \"*.{js,json,md}\"",
"lint": "eslint 'packages/*/src/**/*.js' '*.js'",
"test": "jest",
Expand Down
1 change: 1 addition & 0 deletions packages/griffith-standalone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"build": "webpack -p"
},
"devDependencies": {
"babel-loader": "^8.0.5",
"griffith": "^1.4.4",
"react": "16.4.2",
"react-dom": "16.4.2",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2287,7 +2287,7 @@ babel-jest@^24.6.0:
chalk "^2.4.2"
slash "^2.0.0"

babel-loader@^8.0.4:
babel-loader@^8.0.4, babel-loader@^8.0.5:
version "8.0.5"
resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.0.5.tgz#225322d7509c2157655840bba52e46b6c2f2fe33"
integrity sha512-NTnHnVRd2JnRqPC0vW+iOQWU5pchDbYXsG2E6DMXEpMfUcQKclF9gmf3G3ZMhzG7IG9ji4coL0cm+FxeWxDpnw==
Expand Down

0 comments on commit f8d8c98

Please sign in to comment.