-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 🚚 Move jest config to config/ * 🚚 Move publish-docs.sh to misc/ * 🚚 Move JSDoc config and fix some JSDoc * 🔧 fix generate flow and coverage config * 🔧 Use ~ instead of ^ for dependecies versions * 🔧 Circle 2 without cache * 🔧 fix prescripts * 🔧 remove build from workflow * 🔧 Circle 2 add dependencies cache * ⚡ Test build speed * ⬆️ Upgrade eslint
- Loading branch information
Showing
15 changed files
with
152 additions
and
106 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,61 @@ | ||
version: 2 | ||
|
||
jobs: | ||
|
||
lint: | ||
docker: | ||
- image: circleci/node:9 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: node_modules-{{ checksum "yarn.lock" }} | ||
- run: yarn | ||
- save_cache: | ||
key: node_modules-{{ checksum "yarn.lock" }} | ||
paths: | ||
- node_modules | ||
- run: yarn lint | ||
|
||
test: | ||
docker: | ||
- image: circleci/node:9 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: node_modules-{{ checksum "yarn.lock" }} | ||
- run: yarn | ||
- save_cache: | ||
key: node_modules-{{ checksum "yarn.lock" }} | ||
paths: | ||
- node_modules | ||
- run: yarn run greenkeeper-lockfile-update | ||
- run: yarn test:coverage | ||
- run: yarn run greenkeeper-lockfile-upload | ||
|
||
build: | ||
docker: | ||
- image: circleci/node:9 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: node_modules-{{ checksum "yarn.lock" }} | ||
- run: yarn | ||
- save_cache: | ||
key: node_modules-{{ checksum "yarn.lock" }} | ||
paths: | ||
- node_modules | ||
- run: yarn build | ||
|
||
workflows: | ||
version: 2 | ||
validate: | ||
jobs: | ||
- lint | ||
- test | ||
|
||
# deployment: | ||
# release: | ||
# tag: /\d+\.\d+\.\d+/ | ||
# commands: | ||
# - npm publish | ||
# - ./publish-docs.sh |
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
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
const { resolve } = require('path') | ||
|
||
const rootDir = process.cwd() | ||
|
||
const coverageDirectory = resolve(rootDir, 'coverage') | ||
const setupTestFrameworkScriptFile = resolve(__dirname, 'test.setup.js') | ||
|
||
module.exports = { | ||
coverageDirectory, | ||
coverageReporters: ['lcov'], | ||
rootDir, | ||
setupTestFrameworkScriptFile, | ||
} |
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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
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
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
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
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
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
Oops, something went wrong.