From 3102d3788f150d94bb8252db349a9c39dd817c35 Mon Sep 17 00:00:00 2001 From: Rachel White Date: Fri, 8 Jul 2016 14:44:28 -0400 Subject: [PATCH 1/5] :new: update new plugin according to guidelines --- .github/ISSUE_TEMPLATE.md | 17 +++++++++++++++++ .github/PULL_REQUEST_TEMPLATE.md | 6 ++++++ .travis.yml | 17 ++++++++++++++--- CONTRIBUTING.md | 3 +++ README.md | 11 +---------- package.json | 24 ++++++++++++++++++++---- 6 files changed, 61 insertions(+), 17 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 CONTRIBUTING.md 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..efd44c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,20 @@ +sudo: false language: node_js node_js: -- '5.7' +- '5.11' cache: directories: - node_modules +before_script: + - npm prune +after_success: + - npm run coverage + - npm run semantic-release +branches: + except: + - /^v\d+\.\d+\.\d+$/ +######################### +## Notifications +######################### notifications: - slack: - secure: IZRJRECcBgsL3DCs/c3LbAbK/RM2DIZBEmHSKigA0HYaJQv7e+I7Oi9ma0xAvQPZMMa/aqAd4pZCMBV5PRzOSsx8QB3omErHMfaet7SCOOpMzrSZ085RgDGYqZihhgKPQ/WhIKqp/+xFKgplV4Q1Ut2I1MqNDR5qCuHiIH6cqYKD49C4ZgYqAsyFrLOB3cqXw+delnC6NSnLUmgrrugzmHswtWxqU3xmnZ9tq+NQSSxaUJdPDs9Z5s6fTJomwKEhGzjKf4OisXhc9hJVekey9u6cZhjWwVAfuWEVWNbssi2m81BW8kkzX4OgdKPlhFVFJdmyubvPU0eB4vdTBqmuiABQWDxRvxrMVm/vAX7WUGhCDDVsuGk7xVVoTf0nxGdZijK6OhaqJh3R0WVifCS04JzV4VIK8W7TLDYZkE6DuDNlABvYpV2yGs6I4rfRRNPVYW24SBru6UkoGNqjsKwZDTaYvd4xFBW5bSMgNMMAcRVpBJ863/6sZLiYukZcDoQHhmDTHu6hChF+0mngJ03zzwSSgVlwqBVwLHXPSJ8VI1F42xEv3fl+QjDxuq5xQdBONF3I7eG3Y/z8H7aemRUxJiZ/NwQGHi0435icFK4oeQ3bnL6hKeEO+oKYz+pnj/aW/9P0HcMcdmsjuLjk2RbY6CMyIn0zYUNaQjTtW9Ny7I0= + email: false \ No newline at end of file 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 1c9d585..ad050c4 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-content-types": "^0.1.0", + "punchcard-commit-msg": "^1.0.0", + "punchcard-content-types": "^0.10.1", + "punchcard-semantic-release": "^2.0.1", + "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" } } From 78c792b380aab904c715082f3d1794ad61f60248 Mon Sep 17 00:00:00 2001 From: Rachel White Date: Mon, 11 Jul 2016 15:22:02 -0400 Subject: [PATCH 2/5] :unamused: updated dependencies --- package.json | 2 +- tests/plugin.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ad050c4..09601b5 100644 --- a/package.json +++ b/package.json @@ -30,8 +30,8 @@ "ghooks": "^1.3.2", "nyc": "^6.0.0", "punchcard-commit-msg": "^1.0.0", - "punchcard-content-types": "^0.10.1", "punchcard-semantic-release": "^2.0.1", + "punchcard-shared-tests": "^1.0.2", "semantic-release": "^4.3.5", "tap-diff": "^0.1.1" }, diff --git a/tests/plugin.js b/tests/plugin.js index ede32a3..6fe0cf9 100644 --- a/tests/plugin.js +++ b/tests/plugin.js @@ -1,6 +1,6 @@ import test from 'ava'; -import contentTypes from 'punchcard-content-types'; +import tests from 'punchcard-shared-tests'; import plugin from '../'; -contentTypes.pluginTests(test, plugin); +tests.plugins(test, plugin); From 8ae3ce7ce11c94a945b90aca7f399ab60846f55f Mon Sep 17 00:00:00 2001 From: Scott Nath Date: Fri, 5 Aug 2016 17:08:40 -0400 Subject: [PATCH 3/5] :new: adding travis-slack integration --- .travis.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index efd44c3..79da56a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,15 +6,14 @@ cache: directories: - node_modules before_script: - - npm prune +- npm prune after_success: - - npm run coverage - - npm run semantic-release +- npm run coverage +- npm run semantic-release branches: except: - - /^v\d+\.\d+\.\d+$/ -######################### -## Notifications -######################### + - /^v\d+\.\d+\.\d+$/ notifications: - email: false \ No newline at end of file + 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= From f4c355a9550716cade23cf672c9c8adc7fe828cd Mon Sep 17 00:00:00 2001 From: Scott Nath Date: Mon, 8 Aug 2016 16:50:23 -0400 Subject: [PATCH 4/5] :art: cleanup indentation from travis cli --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 79da56a..06f28b6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,5 +15,5 @@ branches: - /^v\d+\.\d+\.\d+$/ notifications: email: false - slack: +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= From 10467cb03a6adef19a80b4609761eeb0e8cc4812 Mon Sep 17 00:00:00 2001 From: Scott Nath Date: Mon, 8 Aug 2016 16:55:34 -0400 Subject: [PATCH 5/5] :unamused: fixes the travis cli addition --- .travis.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 06f28b6..c22615e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,18 +1,18 @@ sudo: false language: node_js node_js: -- '5.11' + - '5.11' cache: directories: - - node_modules + - node_modules before_script: -- npm prune + - npm prune after_success: -- npm run coverage -- npm run semantic-release + - npm run coverage + - npm run semantic-release branches: except: - - /^v\d+\.\d+\.\d+$/ + - /^v\d+\.\d+\.\d+$/ notifications: email: false slack: