commit
fe494e91a1
53
.circleci/config.yml
Normal file
53
.circleci/config.yml
Normal file
@ -0,0 +1,53 @@
|
||||
version: 2
|
||||
workflows:
|
||||
version: 2
|
||||
workflow:
|
||||
jobs:
|
||||
- build
|
||||
- lint
|
||||
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
- image: circleci/node:10
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Version information
|
||||
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
|
||||
- restore_cache:
|
||||
keys:
|
||||
- node-deps-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
||||
- node-deps-v1-{{ .Branch }}
|
||||
- node-deps-v1
|
||||
- run:
|
||||
command: yarn install
|
||||
- save_cache:
|
||||
key: node-deps-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
||||
paths:
|
||||
- ~/project/node_modules
|
||||
- run:
|
||||
command: yarn build
|
||||
- run:
|
||||
command: yarn test
|
||||
lint:
|
||||
docker:
|
||||
- image: circleci/node:10
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Version information
|
||||
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
|
||||
- restore_cache:
|
||||
keys:
|
||||
- node-deps-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
||||
- node-deps-v1-{{ .Branch }}
|
||||
- node-deps-v1
|
||||
- run:
|
||||
command: yarn install
|
||||
- save_cache:
|
||||
key: node-deps-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
||||
paths:
|
||||
- ~/project/node_modules
|
||||
- run:
|
||||
command: yarn lint
|
||||
9
.gitignore
vendored
9
.gitignore
vendored
@ -15,14 +15,5 @@ node_modules/
|
||||
# IDE-specific
|
||||
.vscode/
|
||||
|
||||
# Release dir
|
||||
tmp/
|
||||
|
||||
# Build artifacts
|
||||
build/
|
||||
dist/
|
||||
docs/
|
||||
|
||||
# Lock file?
|
||||
yarn.lock
|
||||
npm.lock
|
||||
|
||||
@ -79,6 +79,5 @@
|
||||
"typescript": "~3.7",
|
||||
"webpack": "^4.12.0",
|
||||
"webpack-cli": "^3.3.8"
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user