-
Notifications
You must be signed in to change notification settings - Fork 0
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
36 changed files
with
4,778 additions
and
11,945 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,112 @@ | ||
version: 2 | ||
workflows: | ||
version: 2 | ||
all: | ||
jobs: | ||
- node-latest | ||
- node10: | ||
requires: | ||
- node-latest | ||
- node9: | ||
requires: | ||
- node-latest | ||
- node8: | ||
requires: | ||
- node-latest | ||
- node6: | ||
requires: | ||
- node-latest | ||
- release: | ||
filters: | ||
branches: | ||
only: master | ||
requires: | ||
- node-latest | ||
- node10 | ||
- node9 | ||
- node8 | ||
- node6 | ||
jobs: | ||
local: | ||
docker: | ||
- image: circleci/node:11 | ||
steps: | ||
- checkout | ||
- run: npm run verify | ||
node-latest: | ||
docker: | ||
- image: circleci/node:11 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
name: Restore node_modules cache | ||
key: node_modules-{{ checksum "yarn.lock" }} | ||
- run: | ||
name: Install Dependencies | ||
command: | | ||
if [ ! -d node_modules ]; then | ||
npm ci | ||
npm i --no-save jest-junit | ||
fi | ||
- save_cache: | ||
name: Save node modules cache | ||
key: node_modules-{{ checksum "yarn.lock" }} | ||
paths: | ||
- node_modules | ||
- persist_to_workspace: | ||
root: '.' | ||
paths: | ||
- node_modules | ||
- run: npm run verify | ||
- run: npx codecov | ||
- store_test_results: | ||
path: .reports/junit | ||
node10: | ||
docker: | ||
- image: 'circleci/node:9' | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: '.' | ||
- run: npm run verify | ||
- store_test_results: | ||
path: .reports/junit | ||
node9: | ||
docker: | ||
- image: 'circleci/node:9' | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: '.' | ||
- run: npm run verify | ||
- store_test_results: | ||
path: .reports/junit | ||
node8: | ||
docker: | ||
- image: 'circleci/node:8' | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: '.' | ||
- run: npm run verify | ||
- store_test_results: | ||
path: .reports/junit | ||
node6: | ||
docker: | ||
- image: 'circleci/node:6' | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: '.' | ||
- run: npm run verify | ||
- store_test_results: | ||
path: .reports/junit | ||
release: | ||
docker: | ||
- image: circleci/node:11 | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: '.' | ||
- run: npm run clean && npm run build | ||
- run: npx semantic-release |
Empty file.
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,4 +1,4 @@ | ||
node_modules | ||
dist | ||
dist-es5 | ||
dist-es2015 | ||
dist* | ||
lib* | ||
out* |
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,8 @@ | ||
{ | ||
"extends": "plugin:unional/latest", | ||
"extends": "plugin:harmony/latest", | ||
"root": true, | ||
"env": { | ||
"node": true | ||
"node": true, | ||
"es6": true | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2017 unional, Homa Wong ([email protected]) | ||
Copyright (c) 2017 Homa Wong (unional) ([email protected]) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
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 |
---|---|---|
|
@@ -2,12 +2,17 @@ | |
|
||
[![NPM version][npm-image]][npm-url] | ||
[![NPM downloads][downloads-image]][downloads-url] | ||
[![Build status][travis-image]][travis-url] | ||
|
||
[![Circle CI][circleci-image]][circleci-url] | ||
[![Travis CI][travis-image]][travis-url] | ||
[![Codecov][codecov-image]][codecov-url] | ||
[![Coverage Status][coveralls-image]][coveralls-url] | ||
[![Coveralls Status][coveralls-image]][coveralls-url] | ||
|
||
[![Greenkeeper][greenkeeper-image]][greenkeeper-url] | ||
[![Semantic Release][semantic-release-image]][semantic-release-url] | ||
|
||
[![Greenkeeper badge][green-keeper-image]][green-keeper-url] | ||
[![semantic-release][semantic-release-image]][semantic-release-url] | ||
[![Visual Studio Code][vscode-image]][vscode-url] | ||
[![Wallaby.js][wallaby-image]][wallaby-url] | ||
|
||
Manage and generate artifacts to test data across boundaries. | ||
|
||
|
@@ -160,60 +165,38 @@ Examples of predicate: `And`, `AtLeastOnce`, `every`, `has`, `isInInterval`, `is | |
## Contribute | ||
|
||
```sh | ||
# right after fork | ||
# after fork and clone | ||
npm install | ||
|
||
# begin making changes | ||
git checkout -b <branch> | ||
npm run watch | ||
|
||
# edit `webpack.config.dev.js` to exclude dependencies for the global build. | ||
|
||
# after making change(s) | ||
git commit -m "<commit message>" | ||
git push | ||
|
||
# create PR | ||
``` | ||
|
||
## Npm Commands | ||
|
||
There are a few useful commands you can use during development. | ||
|
||
```sh | ||
# Run tests (and lint) automatically whenever you save a file. | ||
npm run watch | ||
|
||
# Run tests with coverage stats (but won't fail you if coverage does not meet criteria) | ||
npm run test | ||
|
||
# Manually verify the project. | ||
# This will be ran during 'npm preversion' so you normally don't need to run this yourself. | ||
npm run verify | ||
|
||
# Build the project. | ||
# You normally don't need to do this. | ||
npm run build | ||
|
||
# Run tslint | ||
# You normally don't need to do this as `npm run watch` and `npm version` will automatically run lint for you. | ||
npm run lint | ||
``` | ||
|
||
Generated by `[email protected]` | ||
|
||
[npm-image]: https://img.shields.io/npm/v/satisfier.svg?style=flat | ||
[npm-url]: https://npmjs.org/package/satisfier | ||
[circleci-image]: https://circleci.com/gh/unional/satisfier/tree/master.svg?style=shield | ||
[circleci-url]: https://circleci.com/gh/unional/satisfier/tree/master | ||
[codecov-image]: https://codecov.io/gh/unional/satisfier/branch/master/graph/badge.svg | ||
[codecov-url]: https://codecov.io/gh/unional/satisfier | ||
[coveralls-image]: https://coveralls.io/repos/github/unional/satisfier/badge.svg?branch=master | ||
[coveralls-url]: https://coveralls.io/github/unional/satisfier?branch=master | ||
[downloads-image]: https://img.shields.io/npm/dm/satisfier.svg?style=flat | ||
[downloads-url]: https://npmjs.org/package/satisfier | ||
[greenkeeper-image]: https://badges.greenkeeper.io/unional/satisfier.svg | ||
[greenkeeper-url]: https://greenkeeper.io/ | ||
[npm-image]: https://img.shields.io/npm/v/satisfier.svg?style=flat | ||
[npm-url]: https://npmjs.org/package/satisfier | ||
[semantic-release-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg | ||
[semantic-release-url]: https://github.com/semantic-release/semantic-release | ||
[travis-image]: https://img.shields.io/travis/unional/satisfier/master.svg?style=flat | ||
[travis-url]: https://travis-ci.org/unional/satisfier?branch=master | ||
[codecov-image]: https://codecov.io/gh/unional/satisfier/branch/master/graph/badge.svg | ||
[codecov-url]: https://codecov.io/gh/unional/satisfier | ||
[coveralls-image]: https://coveralls.io/repos/github/unional/satisfier/badge.svg | ||
[coveralls-url]: https://coveralls.io/github/unional/satisfier | ||
[green-keeper-image]: | ||
https://badges.greenkeeper.io/unional/satisfier.svg | ||
[green-keeper-url]:https://greenkeeper.io/ | ||
[semantic-release-image]:https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg | ||
[semantic-release-url]:https://github.com/semantic-release/semantic-release | ||
[unstable-image]: https://img.shields.io/badge/stability-unstable-yellow.svg | ||
[vscode-image]: https://img.shields.io/badge/vscode-ready-green.svg | ||
[vscode-url]: https://code.visualstudio.com/ | ||
[wallaby-image]: https://img.shields.io/badge/wallaby.js-configured-green.svg | ||
[wallaby-url]: https://wallabyjs.com |
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,4 @@ | ||
const common = require('@unional/devpkg-node/simple/config/jest.common') | ||
module.exports = Object.assign(common, { | ||
'testEnvironment': 'node' | ||
}) |
Oops, something went wrong.