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 dc3ed10..8b36dfc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,19 @@ +sudo: false language: node_js node_js: -- '5.7' +- '5.11' cache: directories: - node_modules -after_success: npm run coverage +before_script: +- npm prune +after_success: +- npm run coverage +- npm run semantic-release +branches: + except: + - /^v\d+\.\d+\.\d+$/ notifications: + email: false slack: - secure: cGsqJj0H1tpwY2r6m16lH3OLIUIzkr7VL3yDKmupFtD/uEFvjyMOwB0rpYuMHgSTRWlOuiLtgznHtukk3zAvgZDAVw2c9n3IVzLBjz0QqjPJTuShZMMvGvMOkdpzk/PDAB0xMovxB5covJC/TDQcN7NLa5Err3ps5WbKgj09rmVomiOW+QJkH7xzx6CyHmnQqk4Wqw9IEEQdRMf6fIbo5JZUFa5ZhSzkVpNmjX8fGis2U8fX/zEO9DA+9e8aQYLYsewUfpohAAJo2nPT1iq53VeRRLF3t4B4WwnuuKsWwa7zfnyqcz1vn+v8NeqKO1nK8vVDUoKfIFo0WBXrjbsWBleSXyNxYsOlxcMvMzlQCs9r1dHoOElblqHgGXssUfbaV/3xsyEtai0acN5rI+a0DwKutO/XbjQa0IVFh1FzEaNT/hmE1KN0nLaQl+HN3BHZkLQHg+QXTjPC6l80nP36dxv47gHRZGqfu32Yyzp7m67MJsmx0yMqNUl8bUim3acKCjEpGBLNsWw5SUA52W/kHRDDj5geL6F65St4H7lKFrFqTDukKC/ZtRtvSjlM2FInf00FnlHop1Z/BrvBSmx8MeNroOKaGJ10JGlYKafuJVbKWEYDjN7lDzRVbZJiILaESxJEOjpaJZpm7hq5Nxe5Dzr4w/NoMjSFv/fZE10PLMM= + secure: ox6ML0J1IVjzJnA4gKD7hGkWgL66vTdGo+4rwkh+AsQQursLZQXk2L/LlPi5BDxI3+4uus25PSWEarPgeQIzOGrCrxuT223rVZvUk2b9ThEA0wG6ApsNB8MYgv5flNIoPpPq97tlWAAzPRX1VP6XyT50yom2g/t+vMeQMjza25mT5PPc03ZP3yLnxI2e1jUPGEbaqO50I9sfetZsqERdmYu+B3Q3NHB5mWQCz1AcxT6+IYxMUMhWg75KfQ4X4g/NvVOC5K+T6XA8XtVcaho+k1EpjhU3SY0+VsltestTvNvhDwMSAF4PAywjzSmSfJjCyvO/fLCgPh4DAjQWXCXQyj8WChSjNAP4NbZl6aAKsUxXv4Uk5js6+ZIVOI2W2mhUfJxLPTdWdcRl2C7DSbhwyss4f1wQrVRPbvdF1U/jdX1QASs/nGqjwDI+xh03YJsRMyTiKm/PieZX/kDMCH371ffvE0heCLMxaXPq9K/Kl3cP517LQiiAjQXL4X8qsEdlQkcCp+7+bxSbUv1dvKhguSi8ZtGuLhuhElggr/DJCg+1UMnkNXExeJXIe8MtVfYqHrQ0Pxo4CYV52P6apxPqCWCOry+OjTw6ByUyw0ufOR95NY8uZb1OKTxPp+KjTDOt0fZbk++iR/lfRTkXkKWMRyh5G1KRmx7mAN6U1yU478Y= 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 7f43066..d146013 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Date 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] +Date Input Plugin [![Build Status](https://travis-ci.org/punchcard-cms/input-plugin-date.svg?branch=master)](https://travis-ci.org/punchcard-cms/input-plugin-date) [![Coverage Status](https://coveralls.io/repos/github/punchcard-cms/input-plugin-date/badge.svg?branch=master)](https://coveralls.io/github/punchcard-cms/input-plugin-date?branch=master) --- An input plugin for a single date input type. @@ -6,12 +6,3 @@ An input plugin for a single date input type. ## License Apache-2.0 - -[npm-image]: https://badge.fury.io/js/input-plugin-date.svg -[npm-url]: https://npmjs.org/package/input-plugin-date -[travis-image]: https://travis-ci.org/punchcard-cms/input-plugin-date.svg -[travis-url]: https://travis-ci.org/punchcard-cms/input-plugin-date -[daviddm-image]: https://david-dm.org/punchcard-cms/input-plugin-date.svg?theme=shields.io -[daviddm-url]: https://david-dm.org/punchcard-cms/input-plugin-date -[coveralls-image]: https://coveralls.io/repos/punchcard-cms/input-plugin-date/badge.svg -[coveralls-url]: https://coveralls.io/r/punchcard-cms/input-plugin-date diff --git a/package.json b/package.json index a3e9143..2b03242 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "input-plugin-date", - "version": "0.0.1", + "version": "0.0.0", "description": "An input plugin for a single date input type.", "main": "index.js", "scripts": { @@ -10,11 +10,12 @@ "ava:watch": "ava --watch | tap-diff", "nyc": "nyc --all npm run ava", "lint": "eslint index.js lib && eslint -c ./.eslintrc-ava.yml tests", - "coverage": "nyc report --reporter=text-lcov | coveralls" + "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-date.git" + "url": "https://github.com/punchcard-cms/input-plugin-date.git" }, "contributors": [ "Rachel White " @@ -26,8 +27,12 @@ "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.10.1", + "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": { @@ -49,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" } } 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); diff --git a/tests/test.js b/tests/test.js deleted file mode 100644 index 493ac2d..0000000 --- a/tests/test.js +++ /dev/null @@ -1,5 +0,0 @@ -import test from 'ava'; -import plugin from '../'; -import contentTypes from 'punchcard-content-types'; - -contentTypes.pluginTests(test, plugin);