Skip to content

Commit

Permalink
add greenkeeper config; update fbl script and plugin default dependen…
Browse files Browse the repository at this point in the history
…cies;
  • Loading branch information
vlad-tkachenko committed Oct 17, 2018
1 parent 1cebadb commit 647c04f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
9 changes: 9 additions & 0 deletions greenkeeper.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"groups": {
"default": {
"packages": [
"templates/package.json"
]
}
}
}
15 changes: 14 additions & 1 deletion index.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
version: 1.0.0
requires:
fbl: '>=0.4.3'
applications:
- yarn

pipeline:
'--':
Expand All @@ -11,8 +13,14 @@ pipeline:

- prompt:
message: 'What is the name of the plugin?'
default: <%- $.require('path').basename(cwd) %>
assignResponseTo:
ctx: $.name
schema:
type: string
maxLength: 214
minLength: 1
pattern: "^(?:@[a-z0-9-~][a-z0-9-._~]*/)?[a-z0-9-~][a-z0-9-._~]*$"

- prompt:
message: 'What license you want to use?'
Expand All @@ -27,7 +35,7 @@ pipeline:
ctx: $.destination

- prompt:
message: 'Who is the author of it?'
message: 'Who is the author?'
assignResponseTo:
ctx: $.author

Expand All @@ -54,3 +62,8 @@ pipeline:
contentFromFile: templates/<$- path $>
path: <%- $.fs.getAbsolutePath(ctx.destination, cwd) %>/<$- path $>
<$ }); $>

- exec:
command: yarn
args:
- install
10 changes: 7 additions & 3 deletions templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"test": "nyc --reporter=html --reporter=text mocha",
"build": "rimraf ./dist/ && tsc",
"lint": "tslint -c tslint.json 'src/**/*.ts' 'test/**/*.ts'",
"prepublishOnly": "npm run build",
"precommit": "npm run lint"
"prepublishOnly": "npm run build && npm run lint"
},
"author": "<%- ctx.author %>",
"license": "<%- ctx.license %>",
Expand All @@ -29,7 +28,7 @@
"@types/joi": "13.4.4",
"@types/node": "10.9.4",
"chai": "4.1.2",
"git-pre-commit": "2.1.4",
"husky": "1.1.2",
"mocha": "5.2.0",
"mocha-typescript": "1.1.17",
"mochawesome": "3.0.3",
Expand All @@ -40,6 +39,11 @@
"typescript": "3.0.3",
"yarn-check": "0.0.3"
},
"husky": {
"hooks": {
"pre-commit": "yarn lint"
}
},
"nyc": {
"check-coverage": true,
"per-file": true,
Expand Down

0 comments on commit 647c04f

Please sign in to comment.