chore(ci): setup circleci
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
# Javascript Node CircleCI 2.0 configuration file
|
||||
#
|
||||
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
|
||||
#
|
||||
version: 2
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
# specify the version you desire here
|
||||
- image: circleci/node:8.12
|
||||
|
||||
working_directory: ~/repo
|
||||
|
||||
steps:
|
||||
- checkout
|
||||
|
||||
# Download and cache dependencies
|
||||
- restore_cache:
|
||||
keys:
|
||||
- v1-dependencies-{{ checksum "yarn.lock" }}
|
||||
# fallback to using the latest cache if no exact match is found
|
||||
- v1-dependencies-
|
||||
|
||||
- run: yarn install && cd tests/demo && yarn install
|
||||
|
||||
- save_cache:
|
||||
paths:
|
||||
- node_modules
|
||||
- tests/demo/node_modules
|
||||
key: v1-dependencies-{{ checksum "yarn.lock" }}
|
||||
|
||||
# run tests!
|
||||
- run: yarn test
|
||||
|
||||
|
||||
+5
-4
@@ -7,15 +7,16 @@
|
||||
"unpkg": "dist/vue-apollo.min.js",
|
||||
"typings": "types/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "npm run build:browser && npm run build:es && npm run build:umd",
|
||||
"build": "yarn build:browser && yarn build:es && yarn build:umd",
|
||||
"build:browser": "rollup --config build/rollup.config.browser.js",
|
||||
"build:es": "rollup --config build/rollup.config.es.js",
|
||||
"build:umd": "rollup --config build/rollup.config.umd.js",
|
||||
"prepublishOnly": "npm run test && npm run build",
|
||||
"dev": "nodemon --exec 'npm run build:es && npm run build:umd' --watch src",
|
||||
"test": "npm run test:eslint && npm run test:types",
|
||||
"prepublishOnly": "yarn test && yarn build",
|
||||
"dev": "nodemon --exec 'yarn build:es && yarn build:umd' --watch src",
|
||||
"test": "yarn build && yarn test:eslint && yarn test:types && yarn test:e2e",
|
||||
"test:eslint": "eslint --ext .js {src,ssr,lib,build}/**/*.js",
|
||||
"test:types": "tsc -p types/test",
|
||||
"test:e2e": "cd tests/demo && yarn test",
|
||||
"docs:dev": "vuepress dev docs",
|
||||
"docs:build": "vuepress build docs"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user