NicolasLepinette 5 years ago
parent
commit
ce2903c35d
  1. 3
      .circleci/config.yml
  2. 2
      package.json

3
.circleci/config.yml

@ -2,7 +2,7 @@ version: 2.1
jobs: jobs:
build: build:
docker: docker:
- image: cimg/node:14.10.1 # the primary container, where your job's commands are run
- image: 'circleci/node:12' # the primary container, where your job's commands are run
steps: steps:
- checkout # check out the code in the project directory - checkout # check out the code in the project directory
- restore_cache: - restore_cache:
@ -10,6 +10,7 @@ jobs:
- run: - run:
name: install node name: install node
command: yarn global add node-gyp && yarn install command: yarn global add node-gyp && yarn install
- run: yarn format:check
- run: yarn test:ci - run: yarn test:ci
- save_cache: - save_cache:
key: yarn-packages-{{checksum "yarn.lock"}} key: yarn-packages-{{checksum "yarn.lock"}}

2
package.json

@ -16,7 +16,7 @@
"build": "react-scripts build", "build": "react-scripts build",
"test": "react-scripts test", "test": "react-scripts test",
"format:write": "prettier --write \"**/*.{js,vue,json,ts,tsx,md,yml,html}\"", "format:write": "prettier --write \"**/*.{js,vue,json,ts,tsx,md,yml,html}\"",
"format:check": "prettier --list-different **/*.{js,vue,json,ts,tsx,md,yml,html}"
"format:check": "prettier --list-different \"**/*.{js,vue,json,ts,tsx,md,yml,html}\""
}, },
"eslintConfig": { "eslintConfig": {
"extends": [ "extends": [

Loading…
Cancel
Save