diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..b5ef9ad --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,34 @@ +version: 2.1 +jobs: + build: + docker: + - image: circleci/node:12 + + working_directory: ~/vue-debounce + + steps: + - checkout + + - run: + name: install-deps + command: npm ci + + # lint + - run: + name: lint + command: npm run lint + # run tests and report coverage + - run: + name: test + command: npm t +workflows: + version: 2 + main: + jobs: + - build: + filters: + branches: + only: + - master + - development + ignore: gh-pages diff --git a/package.json b/package.json index 16fd331..f1d8e27 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "prepack": "npm run lint && npm run build", "build": "rollup -c", "watch": "rollup -c -w", - "lint": "standard --fix src/*.js" + "lint": "standard src/*.js", + "linit:fix": "standard --fix src/*.js" }, "standard": { "ignore": [