Skip to content

Commit

Permalink
Setup TravisCI (#4)
Browse files Browse the repository at this point in the history
* Add lint & format command

* Add travis config file
  • Loading branch information
Joozty committed Aug 13, 2019
1 parent 70bd703 commit 18e6cfd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: node_js
node_js: "12"
before_script:
- yarn build
script:
- yarn lint
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"private": true,
"scripts": {
"build": "webpack --mode production --progress --colors --config webpack/webpack.config.babel.js",
"start": "webpack-dev-server --config webpack/webpack.config.devel.babel.js"
"start": "webpack-dev-server --config webpack/webpack.config.devel.babel.js",
"lint": "eslint --ignore-path .gitignore --ext .js,.jsx .",
"format": "eslint --ignore-path .gitignore --ext .js,.jsx --fix ."
},
"devDependencies": {
"@babel/core": "^7.5.5",
Expand Down

0 comments on commit 18e6cfd

Please sign in to comment.