diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..2cd3e53 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,17 @@ +{{long description}} + +```gherkin +Feature: {{feature}} + As a {{persona}} + I want {{need}} + So that {{rationale}} + + Scenario: {{scenario}} + Given {{thing}} + When {{action}} + Then {{result}} +``` + +--- + +- [ ] {{feature}}/{{scenario}} \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..b9fbe89 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,6 @@ +{{short description}} + +--- +Resolves # + +`DCO 1.1 Signed-off-by: {{full name}} <{{email address}}>` diff --git a/.travis.yml b/.travis.yml index da93f15..c22615e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,19 @@ +sudo: false language: node_js node_js: -- '5.7' + - '5.11' cache: directories: - - node_modules + - node_modules +before_script: + - npm prune +after_success: + - npm run coverage + - npm run semantic-release +branches: + except: + - /^v\d+\.\d+\.\d+$/ notifications: - slack: - secure: IZRJRECcBgsL3DCs/c3LbAbK/RM2DIZBEmHSKigA0HYaJQv7e+I7Oi9ma0xAvQPZMMa/aqAd4pZCMBV5PRzOSsx8QB3omErHMfaet7SCOOpMzrSZ085RgDGYqZihhgKPQ/WhIKqp/+xFKgplV4Q1Ut2I1MqNDR5qCuHiIH6cqYKD49C4ZgYqAsyFrLOB3cqXw+delnC6NSnLUmgrrugzmHswtWxqU3xmnZ9tq+NQSSxaUJdPDs9Z5s6fTJomwKEhGzjKf4OisXhc9hJVekey9u6cZhjWwVAfuWEVWNbssi2m81BW8kkzX4OgdKPlhFVFJdmyubvPU0eB4vdTBqmuiABQWDxRvxrMVm/vAX7WUGhCDDVsuGk7xVVoTf0nxGdZijK6OhaqJh3R0WVifCS04JzV4VIK8W7TLDYZkE6DuDNlABvYpV2yGs6I4rfRRNPVYW24SBru6UkoGNqjsKwZDTaYvd4xFBW5bSMgNMMAcRVpBJ863/6sZLiYukZcDoQHhmDTHu6hChF+0mngJ03zzwSSgVlwqBVwLHXPSJ8VI1F42xEv3fl+QjDxuq5xQdBONF3I7eG3Y/z8H7aemRUxJiZ/NwQGHi0435icFK4oeQ3bnL6hKeEO+oKYz+pnj/aW/9P0HcMcdmsjuLjk2RbY6CMyIn0zYUNaQjTtW9Ny7I0= + email: false +slack: + secure: lUSONnHG9jcCXj0LM2M8JSv1LQpMOaUTqUCMjxYFYED2woclpsRFeiEFk6BpxJXEPqGByh6u/pUQkjEZSiTQHEkU0H8RTHTyUBIh3D6XDgdMeSIAQ+BWExq+HVqsmj5RPU9l3HT8iIfSzWkiaVMPlFR8GNxav83Xo6P+MINc+YO2AWI3O7M5aWognIj3Kdz/NdjD4y56xRTKk+BqVeucAFg1InnsRMLn5/k9FBYJqnnRdH3Y2OqkKtot1+4QmXQD63ub/TsmYj4oKbU6aUdG8QhWwaRZb8scygjj2P4hXHsqRfqnBQ9VCj17rehw8Q/9dS9x79CfStf2ZL9PxpJXbF3aF2DCvEe2M6YcOYifc0xOnn67p6mIN5sAJDslT58rLI4mz7y/4dWPKk3lCXJxaEfhHSkNRZOOe//j/TWvZs7fJkFQ/yk4YhvcSYyRvfeP1G6uE/mfVFw2HyaRCZypmoZoCfNEQLMciw2Z0qyKVaFCXw2sdA8ocfwRtpbv9RDtkD9TMcvcdMUWcq/v/y60t4jqOB2Unyd80P88C3HiAiiITx+c1r2rfAlk218suImff4/PG7vYnXeqEEnWWsAKTBsWG5VUMx7R1qNBuqMkSMHKOM9zUgrnvBtT/1CKzIXei2ZAGeTn1rgdCOgwrUL+ZiyF0CMhwU/YeWhVavwSW7c= diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..670435f --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,3 @@ +# Contributing to Punchcard Content Types + +Please follow the [Punchcard Contributing Guidelines](https://github.com/punchcard-cms/punchcard/blob/master/CONTRIBUTING.md) \ No newline at end of file diff --git a/README.md b/README.md index 7528091..27e63af 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Boolean Input Plugin [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url] +Boolean Input Plugin [![Build Status](https://travis-ci.org/punchcard-cms/input-plugin-boolean.svg?branch=master)](https://travis-ci.org/punchcard-cms/input-plugin-boolean) [![Coverage Status](https://coveralls.io/repos/github/punchcard-cms/input-plugin-boolean/badge.svg?branch=master)](https://coveralls.io/github/punchcard-cms/input-plugin-boolean?branch=master) [![NSP Status](https://nodesecurity.io/orgs/punchcard-cms/projects/0b3c5004-7eb6-4259-a265-7db04f618c6d/badge)](https://nodesecurity.io/orgs/punchcard-cms/projects/0b3c5004-7eb6-4259-a265-7db04f618c6d) [![NSP Status](https://nodesecurity.io/orgs/punchcard-cms/projects/32a41a75-fbef-4e29-80b1-8967f2989ca1/badge)](https://nodesecurity.io/orgs/punchcard-cms/projects/32a41a75-fbef-4e29-80b1-8967f2989ca1) --- A simple boolean input type @@ -6,12 +6,3 @@ A simple boolean input type ## License Apache-2.0 - -[npm-image]: https://badge.fury.io/js/input-plugin-boolean.svg -[npm-url]: https://npmjs.org/package/input-plugin-boolean -[travis-image]: https://travis-ci.org/punchcard-cms/input-plugin-boolean.svg -[travis-url]: https://travis-ci.org/punchcard-cms/input-plugin-boolean -[daviddm-image]: https://david-dm.org/punchcard-cms/input-plugin-boolean.svg?theme=shields.io -[daviddm-url]: https://david-dm.org/punchcard-cms/input-plugin-boolean -[coveralls-image]: https://coveralls.io/repos/punchcard-cms/input-plugin-boolean/badge.svg -[coveralls-url]: https://coveralls.io/r/punchcard-cms/input-plugin-boolean diff --git a/package.json b/package.json index ecabb2e..959ce46 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "input-plugin-boolean", - "version": "0.0.1", + "version": "0.0.0", "description": "A simple boolean input type", "main": "index.js", "scripts": { @@ -9,11 +9,13 @@ "ava": "ava | tap-diff", "ava:watch": "ava --watch | tap-diff", "nyc": "nyc --all npm run ava", - "lint": "eslint index.js lib && eslint -c ./.eslintrc-ava.yml tests" + "lint": "eslint index.js lib && eslint -c ./.eslintrc-ava.yml tests", + "coverage": "nyc report --reporter=text-lcov | coveralls", + "semantic-release": "semantic-release pre && npm publish && semantic-release post" }, "repository": { "type": "git", - "url": "git@github.com:punchcard-cms/input-plugin-boolean.git" + "url": "https://github.com/punchcard-cms/input-plugin-boolean.git" }, "contributors": [ "Rachel White " @@ -22,10 +24,15 @@ "dependencies": {}, "devDependencies": { "ava": "^0.14.0", + "coveralls": "^2.11.9", "eslint": "^2.10.0", "eslint-config-punchcard": "^1.0.1", + "ghooks": "^1.3.2", "nyc": "^6.0.0", + "punchcard-commit-msg": "^1.0.0", + "punchcard-semantic-release": "^2.0.1", "punchcard-shared-tests": "^1.0.2", + "semantic-release": "^4.3.5", "tap-diff": "^0.1.1" }, "engines": { @@ -47,5 +54,14 @@ ], "failFast": true, "tap": true + }, + "config": { + "ghooks": { + "commit-msg": "punchcard-commit-msg" + } + }, + "release": { + "analyzeCommits": "punchcard-semantic-release/analyze", + "generateNotes": "punchcard-semantic-release/notes" } }