Add circleci setting for eslint

This commit is contained in:
AkiraFukushima 2018-04-12 21:36:56 +09:00
parent 00ed3f4b3c
commit 0c4111751f
2 changed files with 29 additions and 0 deletions

24
.circleci/config.yml Normal file
View File

@ -0,0 +1,24 @@
version: 2
jobs:
build:
docker:
- image: node:9-slim
working_directory: /var/opt/app
steps:
- checkout
- restore_cache:
name: Restoring cache - node_modules
keys:
- node_modules-{{ arch }}-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }}
- run:
name: Install packages
command: npm install
- save_cache:
name: Saving cache - node_modules
key: node_modules-{{ arch }}-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }}
paths:
- node_modules
- run:
name: Eslint
command: NODE_ENV=production npm run lint

5
package-lock.json generated
View File

@ -15725,6 +15725,11 @@
}
}
},
"vue-js-popover": {
"version": "1.1.7",
"resolved": "https://registry.npmjs.org/vue-js-popover/-/vue-js-popover-1.1.7.tgz",
"integrity": "sha512-Ye/Y+bClo6N1Vso0SKBtGC4jyEPvmRIdG7iHlkgFaTw8ppbO66asdoLCv0AVH2J6talq1g65NbVv5/kNwihu/Q=="
},
"vue-loader": {
"version": "13.7.1",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-13.7.1.tgz",