Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit 7bb453b

Browse files
committed
Add circle ci config
1 parent 709b2aa commit 7bb453b

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.circleci/config.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
version: 2
2+
3+
jobs:
4+
build:
5+
docker:
6+
- image: circleci/node:8.9.4
7+
steps:
8+
- checkout
9+
- restore_cache:
10+
keys:
11+
- yarn-cache-{{ .Branch }}
12+
- dependency-cache-{{ checksum "yarn.lock" }}
13+
- run:
14+
name: Install dependencies
15+
command: yarn install
16+
- save_cache:
17+
key: yarn-cache-{{ .Branch }}
18+
paths:
19+
- ~/.cache/yarn
20+
- save_cache:
21+
key: dependency-cache-{{ checksum "yarn.lock" }}
22+
paths:
23+
- ./node_modules
24+
- run:
25+
name: Build
26+
command: yarn build
27+
- run:
28+
name: Test
29+
command: yarn test

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
],
1212
"scripts": {
1313
"build": "babel src -d lib",
14-
"prepublishOnly": "npm run build"
14+
"prepublishOnly": "npm run build",
15+
"test": "echo TODO"
1516
},
1617
"repository": {
1718
"type": "git",

0 commit comments

Comments
 (0)