Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit dd4893b

Browse files
author
sluger
committed
setup build
1 parent 521507c commit dd4893b

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: 2
2+
jobs:
3+
build:
4+
working_directory: ~/phovea
5+
docker:
6+
- image: circleci/node:6-browsers
7+
steps:
8+
- checkout
9+
- restore_cache:
10+
key: deps1-{{ .Branch }}-{{ checksum "package.json" }}
11+
- run:
12+
name: install-npm-wee
13+
command: npm install
14+
- run: #remove all resolved github dependencies
15+
name: delete-vcs-dependencies
16+
command: |
17+
(grep -l '._resolved.: .\(git[^:]*\|bitbucket\):' ./node_modules/*/package.json || true) | xargs -r dirname | xargs -r rm -rf
18+
- save_cache:
19+
key: deps2-{{ .Branch }}-{{ checksum "package.json" }}
20+
paths:
21+
- ./node_modules
22+
- run: #install all dependencies
23+
name: install-npm-wee2
24+
command: npm install
25+
- run:
26+
name: build
27+
command: npm run build
28+
- store_artifacts:
29+
path: build

0 commit comments

Comments
 (0)