Skip to content

Commit d3a02bc

Browse files
authored
Merge pull request #29 from rachelnicole/plugin-update
Set up plugin with new guidelines
2 parents 76d1f90 + beacfc9 commit d3a02bc

File tree

6 files changed

+59
-10
lines changed

6 files changed

+59
-10
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{{long description}}
2+
3+
```gherkin
4+
Feature: {{feature}}
5+
As a {{persona}}
6+
I want {{need}}
7+
So that {{rationale}}
8+
9+
Scenario: {{scenario}}
10+
Given {{thing}}
11+
When {{action}}
12+
Then {{result}}
13+
```
14+
15+
---
16+
17+
- [ ] {{feature}}/{{scenario}}

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{{short description}}
2+
3+
---
4+
Resolves #
5+
6+
`DCO 1.1 Signed-off-by: {{full name}} <{{email address}}>`

.travis.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
language: node_js
22
node_js:
3-
- '5.7'
3+
- '5.11'
44
cache:
55
directories:
66
- node_modules
7-
after_success: npm run coverage
7+
before_script:
8+
- npm prune
9+
after_success:
10+
- npm run coverage
11+
- npm run semantic-release
12+
branches:
13+
except:
14+
- /^v\d+\.\d+\.\d+$/
15+
#########################
16+
## Notifications
17+
#########################
818
notifications:
9-
slack:
10-
secure: Wwh0JLcQnGtHoAaUSc/6oQrTBhdz4zS26tflVUa2aFraVFt7sUcHMjWBWYDO2KpVRXjeky2JslwGCpwuoNUIBwl6Ah89MoeR3pQBXEfMPTHfkMPfl/XtPvl/q7JjzOcsOya0zdRPVgGHWc/ikd5Yd3Gn8yTmwWjW0UyrKkIeTmBb0L2DK4ZaeV3qFuL3CVW+ziW6c6fscicej2jOKb0OgwPw4Qdtczn9ueTN+GY4Jr+4L9hSaL3UR6H+JBaFikfc0pMboFU86ZIB0J8ig4+jZWI07dHJUNo8vOxdRwPiItjf75RqkGMkub2tS5wH1Wn3VF3O1STw4JsBtvsieScHQ3jetWzWAbM+LLptNYoGGVN18GxzJx+i1afPqxoadOKTle3ldI+ePJJrX7pSMjSYzPmnKRjl9fecnmMcLS8UOG+tIIxkhq8jkQ4DY0Jm9V/ID5+4+0YgTei4rQ8gkCpfYMi1AcFOO0flBFxFsQGuTFWVHOFpijde82QXPdvJAmAlciFwAfH8gMOvh3ptzesdtzxKrD/Ftw7/mQLHhajC2x9GUAq/zmelNMner8JMapQ5wreA4E3oEumBfk4AaAe2WsKVMtA1V6A9btAXClklyNMy+wf4Zz0dZaKo8a6dG3jDFQ02r2aGrpLsDesbqalmpvI8D701OwCd5ROAWRTG5e8=
19+
email: false

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Contributing to Punchcard Content Types
2+
3+
Please follow the [Punchcard Contributing Guidelines](https://github.com/punchcard-cms/punchcard/blob/master/CONTRIBUTING.md)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Single Email Field Input Plugin with validation [![Build Status](https://travis-ci.org/punchcard-cms/input-plugin-email.svg?branch=master)](https://travis-ci.org/punchcard-cms/input-plugin-email)
1+
Single Email Field Input Plugin with validation [![Build Status](https://travis-ci.org/punchcard-cms/input-plugin-email.svg?branch=master)](https://travis-ci.org/punchcard-cms/input-plugin-email) [![Coverage Status](https://coveralls.io/repos/github/punchcard-cms/input-plugin-email/badge.svg)](https://coveralls.io/github/punchcard-cms/input-plugin-email) [![NSP Status](https://nodesecurity.io/orgs/punchcard-cms/projects/2627cac1-7017-4bee-afb5-070d7292f643/badge)](https://nodesecurity.io/orgs/punchcard-cms/projects/2627cac1-7017-4bee-afb5-070d7292f643)
22
---
33

44
Input Plugin for a single email element. Includes validation against the email's domain name.

package.json

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "input-plugin-email",
3-
"version": "0.1.0",
3+
"version": "0.0.0",
4+
"keyword": "punchcard-cms",
45
"description": "An email input with domain validation",
56
"main": "index.js",
67
"scripts": {
@@ -10,11 +11,12 @@
1011
"ava:watch": "ava --watch | tap-diff",
1112
"nyc": "nyc --all npm run ava",
1213
"lint": "eslint index.js lib && eslint -c ./.eslintrc-ava.yml tests",
13-
"coverage": "nyc report --reporter=text-lcov | coveralls"
14+
"coverage": "nyc report --reporter=text-lcov | coveralls",
15+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1416
},
1517
"repository": {
1618
"type": "git",
17-
"url": "git@github.com:punchcard-cms/input-plugin-email.git"
19+
"url": "https://github.com/punchcard-cms/input-plugin-email.git"
1820
},
1921
"contributors": [
2022
"Scott Nath <[email protected]>"
@@ -26,10 +28,13 @@
2628
"devDependencies": {
2729
"ava": "^0.14.0",
2830
"coveralls": "^2.11.9",
29-
"eslint": "^2.10.0",
31+
"eslint": "^2.13.1",
3032
"eslint-config-punchcard": "^1.0.1",
31-
"nyc": "^6.0.0",
33+
"ghooks": "^1.3.2",
34+
"nyc": "^6.6.1",
35+
"punchcard-commit-msg": "^1.0.0",
3236
"punchcard-content-types": "^0.10.1",
37+
"semantic-release": "^4.3.5",
3338
"tap-diff": "^0.1.1",
3439
"validator": "^5.2.0"
3540
},
@@ -52,5 +57,14 @@
5257
],
5358
"failFast": true,
5459
"tap": true
60+
},
61+
"config": {
62+
"ghooks": {
63+
"commit-msg": "punchcard-commit-msg"
64+
}
65+
},
66+
"release": {
67+
"analyzeCommits": "punchcard-semantic-release/analyze",
68+
"generateNotes": "punchcard-semantic-release/notes"
5569
}
5670
}

0 commit comments

Comments
 (0)