Browse Source

add dependency of js project

test
tchawou-daniel 6 years ago
parent
commit
9fe9bd2764
  1. 44
      .circleci/config.yml

44
.circleci/config.yml

@ -0,0 +1,44 @@
version: 2.1
jobs:
install-dependencies:
docker:
- image: circleci/node:dubnium-browsers
steps:
- checkout
- restore_cache:
keys:
- dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }}
- dependencies-
- run: yarn global add node-gyp && yarn install
- save_cache:
paths:
- node_modules
key: dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }}
build:
docker:
- image: circleci/node:dubnium-browsers
steps:
- checkout
- restore_cache:
keys:
- dependencies-{{ checksum "package.json" }}-{{ .Environment.CACHE_VERSION }}
- dependencies-
- run: yarn build
- run:
name: Copy deployment artifacts to workspace
command: |
cp dist/ /tmp/dist -r
- store_artifacts:
path: /tmp/dist
- persist_to_workspace:
root: /tmp
paths:
- dist
workflows:
version: 2.1
build-deploy_frontend:
jobs:
- install-dependencies
- build:
requires:
- install-dependencies
Loading…
Cancel
Save