Skip to content

Commit

Permalink
everything
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchambers committed May 26, 2018
1 parent 733c3c3 commit 5dd6c6e
Show file tree
Hide file tree
Showing 12 changed files with 850 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
version: 2

jobs:
build:
docker:
- image: circleci/node:6
environment:
NPM_CONFIG_COLOR: false
NPM_CONFIG_LOGLEVEL: warn
NPM_CONFIG_PROGRESS: false
NVM_DIR: /home/circleci/.nvm
parallelism: 3
steps:
- checkout
- restore_cache:
keys:
- nvm-cache-{{ checksum ".circleci/config.yml" }}
- run: curl https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
- save_cache:
key: nvm-cache-{{ checksum ".circleci/config.yml" }}
paths:
- /home/circleci/.nvm
- run:
name: npm install && npm test
command: |
test_with_version() {
source "$NVM_DIR/nvm.sh"
nvm install $1
nvm exec $1 npm install
nvm exec $1 npm test
}
case $CIRCLE_NODE_INDEX in
0) npm install && npm test ;;
1) test_with_version 8 ;;
2) test_with_version 10 ;;
esac
2 changes: 2 additions & 0 deletions .config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
repo-owner = sanctuary-js
repo-name = sanctuary-identity
16 changes: 16 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"root": true,
"extends": ["./node_modules/sanctuary-style/eslint-es3.json"],
"overrides": [
{
"files": ["*.md"],
"globals": {"$": false, "Identity": false, "S": false, "Z": false, "show": false, "type": false}
},
{
"files": ["index.js"],
"rules": {
"no-unused-vars": ["error", {"varsIgnorePattern": "^S$"}]
}
}
]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/coverage/
/node_modules/
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
27 changes: 27 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Contributing

Note: __README.md__ is generated from comments in __index.js__. Do not modify
__README.md__ directly.

1. Update local master branch:

$ git checkout master
$ git pull upstream master

2. Create feature branch:

$ git checkout -b feature-x

3. Make one or more atomic commits, and ensure that each commit has a
descriptive commit message. Commit messages should be line wrapped
at 72 characters.

4. Run `npm test`, and address any errors. Preferably, fix commits in place
using `git rebase` or `git commit --amend` to make the changes easier to
review.

5. Push:

$ git push origin feature-x

6. Open a pull request.
24 changes: 24 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
The MIT License (MIT)

Copyright (c) 2018 Sanctuary

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
Loading

0 comments on commit 5dd6c6e

Please sign in to comment.