-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
80 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# 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 | ||
working_directory: ~/repo | ||
|
||
steps: | ||
- checkout | ||
# Download and cache dependencies | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-{{ checksum "package.json" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- v1-dependencies- | ||
|
||
- run: yarn install | ||
|
||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: v1-dependencies-{{ checksum "package.json" }} | ||
|
||
- run: yarn run test | ||
- run: | ||
name: release if necessary | ||
command: yarn run semantic-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "apollo-proxy-cache", | ||
"version": "1.0.0", | ||
"version": "0.1.0", | ||
"description": "Provides an apollo-link and express (proxy) middleware setup to support a local `@cache` directive", | ||
"main": "dist/index.js", | ||
"repository": "[email protected]:BowlingX/apollo-proxy-cache.git", | ||
|
@@ -17,6 +17,11 @@ | |
"@babel/plugin-transform-flow-strip-types": "^7.2.3", | ||
"@babel/preset-env": "^7.2.3", | ||
"@babel/preset-flow": "^7.0.0", | ||
"@semantic-release/changelog": "^3.0.2", | ||
"@semantic-release/commit-analyzer": "^6.1.0", | ||
"@semantic-release/git": "^7.0.8", | ||
"@semantic-release/npm": "^5.1.3", | ||
"@semantic-release/release-notes-generator": "^7.1.4", | ||
"eslint": "^5.12.0", | ||
"eslint-config-google": "^0.11.0", | ||
"eslint-plugin-flowtype": "^3.2.1", | ||
|
@@ -27,10 +32,21 @@ | |
"semantic-release": "^15.13.3" | ||
}, | ||
"scripts": { | ||
"build": "yarn run build:clean && yarn run build:lib && yarn run build:flow", | ||
"prepare": "yarn run build:clean && yarn run build:lib && yarn run build:flow", | ||
"build:clean": "rimraf dist", | ||
"build:lib": "babel src -d dist", | ||
"build:flow": "flow-copy-source -v src dist" | ||
"build:flow": "flow-copy-source -v src dist", | ||
"test": "yarn eslint src" | ||
}, | ||
"release": { | ||
"branch": "master", | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/changelog", | ||
"@semantic-release/npm", | ||
"@semantic-release/git" | ||
] | ||
}, | ||
"dependencies": { | ||
"@babel/polyfill": "^7.2.5", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters