Browse Source

Feat: lint v3

pull/1/merge task3
verzelea 6 years ago
parent
commit
ca1e6672ed
  1. 18
      .circleci/config.yml
  2. 4
      package.json

18
.circleci/config.yml

@ -4,31 +4,31 @@ workflows:
jobs: jobs:
- build - build
- test: - test:
requires:
- build
requires:
- build
jobs: jobs:
build: build:
docker: docker:
- image: cimg/node:14.10.1 # the primary container, where your job's commands are run
- image: cimg/node:14.10.1
steps: steps:
- checkout # check out the code in the project directory
- checkout
- restore_cache: - restore_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
key: yarn-packages-v2{{ checksum "yarn.lock" }}
- run: yarn global add node-gyp && yarn install - run: yarn global add node-gyp && yarn install
- save_cache: - save_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
key: yarn-packages-v2{{ checksum "yarn.lock" }}
paths: paths:
- ./node_modules - ./node_modules
test: test:
docker: docker:
- image: cimg/node:14.10.1 # the primary container, where your job's commands are run
- image: cimg/node:14.10.1
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
key: yarn-packages-v2{{ checksum "yarn.lock" }}
- run: yarn lint && yarn format:check - run: yarn lint && yarn format:check
- run: yarn test:ci - run: yarn test:ci
- save_cache: - save_cache:
key: yarn-packages-{{ checksum "yarn.lock" }}
key: yarn-packages-v2{{ checksum "yarn.lock" }}
paths: paths:
- ./node_modules - ./node_modules

4
package.json

@ -20,8 +20,8 @@
"test:cov": "jest --coverage", "test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json", "test:e2e": "jest --config ./test/jest-e2e.json",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"./**/*.{yaml,yml}\"",
"format:check": "prettier --list-different \"src/**/*.ts\" \"test/**/*.ts\" \"./**/*.{yaml,yml}\"",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"format:check": "prettier --list-different \"src/**/*.ts\" \"test/**/*.ts\"",
"generate": "hygen" "generate": "hygen"
}, },
"dependencies": { "dependencies": {

Loading…
Cancel
Save