Skip to content

Commit

Permalink
chore: update project
Browse files Browse the repository at this point in the history
  • Loading branch information
unional committed Feb 16, 2019
1 parent c4dad35 commit 987ffa3
Show file tree
Hide file tree
Showing 36 changed files with 4,778 additions and 11,945 deletions.
112 changes: 112 additions & 0 deletions .circleci/config.yml
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 modified .editorconfig
100755 → 100644
Empty file.
6 changes: 3 additions & 3 deletions .eslintignore
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules
dist
dist-es5
dist-es2015
dist*
lib*
out*
6 changes: 4 additions & 2 deletions .eslintrc.json
100755 → 100644
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
}
}
13 changes: 7 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# OSX
.DS_Store

# Logs
logs
*.log
Expand All @@ -14,6 +17,7 @@ lib-cov
# Coverage directory used by tools like istanbul
coverage
.nyc_output
.progress

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
Expand All @@ -37,10 +41,7 @@ node_modules
# webstorm
.idea

# typings
typings

# project folders
dist
dist-es5
dist-es2015
dist*
lib*
out*
23 changes: 6 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,17 @@ cache:
notifications:
email: false
node_js:
- '11'
- '10'
- '9'
- '8.0.0'
- '8'
- '6'
branches:
only:
- master
- /^greenkeeper.*$/

before_install:
- ./scripts/run-on-node-version.sh 9 "npm install -g greenkeeper-lockfile@1"

before_script:
- ./scripts/run-on-node-version.sh 9 "greenkeeper-lockfile-update"

script:
- npm i --no-save jest-junit
- npm run verify

after_success:
- npm install -g travis-deploy-once@4
- travis-deploy-once "npm run semantic-release"
- ./scripts/run-on-node-version.sh 9 "npm install --no-save coveralls && npm run coveralls"
- ./scripts/run-on-node-version.sh 9 "npm install --no-save codecov && npm run codecov"

after_script:
- ./scripts/run-on-latest-node.sh "greenkeeper-lockfile-upload"
- ./scripts/run-on-node-version.sh 11 "npm install -g codacy-coverage && cat ./coverage/lcov.info | codacy-coverage"
- ./scripts/run-on-node-version.sh 11 "npm install -g coveralls && cat ./coverage/lcov.info | coveralls"
2 changes: 1 addition & 1 deletion LICENSE
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
Expand Down
71 changes: 27 additions & 44 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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
4 changes: 4 additions & 0 deletions jest.config.js
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'
})
Loading

0 comments on commit 987ffa3

Please sign in to comment.