Skip to content

Commit

Permalink
Merge pull request #8 from blackflux/dev
Browse files Browse the repository at this point in the history
[Gally]: master <- dev
  • Loading branch information
simlu committed Mar 30, 2019
2 parents da19ae7 + 67615f1 commit 230b188
Show file tree
Hide file tree
Showing 15 changed files with 108 additions and 55 deletions.
1 change: 1 addition & 0 deletions .depunusedignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
eslint
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@
"babel-eslint": "10.0.1",
"chai": "4.2.0",
"coveralls": "3.0.3",
"eslint": "5.16.0",
"js-gardener": "1.38.6",
"nyc": "13.3.0",
"robo-config": "1.10.1",
"semantic-release": "15.13.3"
},
"nyc": {
Expand Down Expand Up @@ -86,7 +88,5 @@
"files": [
"lib"
],
"dependencies": {
"robo-config": "1.9.1"
}
"dependencies": {}
}
6 changes: 4 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const path = require('path');
const { plugin } = require('robo-config');

module.exports = plugin(path.join(__dirname, 'plugin'));
module.exports = ({
taskDir: path.join(__dirname, 'plugin', 'tasks'),
docsDir: path.join(__dirname, 'plugin', 'docs')
});
12 changes: 6 additions & 6 deletions src/plugin/docs/assorted/@npm-opensource.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ project
<!---0--><details>
<!---0--><summary>Variables</summary>

- `repoName`
- `packageName`
- `repoKey`
- `authorName`
- `owner`
Expand Down Expand Up @@ -85,7 +85,7 @@ project
<!---1--><details>
<!---1--><summary>Variables</summary>

- `repoName`
- `packageName`
- `repoKey`

<!---1--></details>
Expand Down Expand Up @@ -165,7 +165,7 @@ project
<!---2--><details>
<!---2--><summary>Variables</summary>

- `repoName`
- `packageName`

<!---2--></details>

Expand Down Expand Up @@ -195,7 +195,7 @@ project
<!---2--><details>
<!---2--><summary>Variables</summary>

- `repoName`
- `packageName`

<!---2--></details>

Expand Down Expand Up @@ -404,7 +404,7 @@ project

### git/gitignore

_Updating `.gitignore` using `merge-top`._
_Updating `.gitignore` using `unique-top`._

- Inject recommended entries into [gitignore file](https://help.github.com/en/articles/ignoring-files).
- Default ignores for JetBrains IDE.
Expand Down Expand Up @@ -547,7 +547,7 @@ project

### npm/npmignore

_Updating `.npmignore` using `merge-top`._
_Updating `.npmignore` using `unique-top`._

- Inject comment into .npmignore explaining when to use it.

Expand Down
6 changes: 3 additions & 3 deletions src/plugin/docs/badges/@npm-opensource.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ project
<!---0--><details>
<!---0--><summary>Variables</summary>

- `repoName`
- `packageName`
- `repoKey`

<!---0--></details>
Expand Down Expand Up @@ -108,7 +108,7 @@ project
<!---1--><details>
<!---1--><summary>Variables</summary>

- `repoName`
- `packageName`

<!---1--></details>

Expand Down Expand Up @@ -138,7 +138,7 @@ project
<!---1--><details>
<!---1--><summary>Variables</summary>

- `repoName`
- `packageName`

<!---1--></details>

Expand Down
2 changes: 1 addition & 1 deletion src/plugin/docs/git/@default.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ project

## git/gitignore

_Updating `.gitignore` using `merge-top`._
_Updating `.gitignore` using `unique-top`._

- Inject recommended entries into [gitignore file](https://help.github.com/en/articles/ignoring-files).
- Default ignores for JetBrains IDE.
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/docs/npm/@default.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ project

## npm/npmignore

_Updating `.npmignore` using `merge-top`._
_Updating `.npmignore` using `unique-top`._

- Inject comment into .npmignore explaining when to use it.

Expand Down
2 changes: 1 addition & 1 deletion src/plugin/tasks/badges/npm-downloads.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"name": "npm-downloads",
"variables": {
"repoName": "${repoName}"
"packageName": "${packageName}"
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/tasks/badges/npm-status.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"name": "npm-status",
"variables": {
"repoName": "${repoName}"
"packageName": "${packageName}"
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/tasks/badges/snippets/npm-downloads.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[![Downloads](https://img.shields.io/npm/dt/${repoName}.svg)](https://www.npmjs.com/package/${repoName})
[![Downloads](https://img.shields.io/npm/dt/${packageName}.svg)](https://www.npmjs.com/package/${packageName})
2 changes: 1 addition & 1 deletion src/plugin/tasks/badges/snippets/npm-status.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[![NPM](https://img.shields.io/npm/v/${repoName}.svg)](https://www.npmjs.com/package/${repoName})
[![NPM](https://img.shields.io/npm/v/${packageName}.svg)](https://www.npmjs.com/package/${packageName})
2 changes: 1 addition & 1 deletion src/plugin/tasks/git/gitignore.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"target": ".gitignore",
"strategy": "merge-top",
"strategy": "unique-top",
"snippets": [
"jetbrains",
"spacer-small",
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/tasks/npm/npmignore.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"target": ".npmignore",
"strategy": "merge-top",
"strategy": "unique-top",
"snippets": [
"message",
"spacer-big"
Expand Down
6 changes: 4 additions & 2 deletions test/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
const path = require('path');
const expect = require('chai').expect;
const { load } = require('robo-config');
const plugin = require('../src/index');

it('Documenting Plugin Tasks', () => {
expect(plugin.syncDocs()).to.deep.equal([]);
expect(load(plugin).syncDocs()).to.deep.equal([]);
});

it('Testing Plugin Tasks', () => {
expect(plugin.test(path.join(__dirname, 'project'), {
expect(load(plugin).test(path.join(__dirname, 'project'), {
repoKey: 'blackflux/robo-config',
packageName: 'robo-config',
repoName: 'robo-config',
projectName: 'robo-config',
owner: 'simlu',
Expand Down
110 changes: 79 additions & 31 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@
universal-user-agent "^2.0.1"

"@octokit/rest@^16.13.1":
version "16.20.0"
resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-16.20.0.tgz#54462b6e540b5d40063850d370ce8e084cf127d6"
integrity sha512-tN5j64P6QymlMzKo94DG1LRNHCwMnLg5poZlVhsCfkHhEWKpofZ1qBDr2/0w6qDLav4EA1XXMmZdNpvGhc9BDQ==
version "16.22.0"
resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-16.22.0.tgz#461770ae6f8b5a50a85f7d1b2752645c3e01ba6a"
integrity sha512-1PGUwDxLuG7AZsiKaIdxJr918jcZ1FtPX0kGqxoUlssn+fIzzlwQY623gnM8vY9c9jfASD+QUQmflHh3FwBthw==
dependencies:
"@octokit/request" "2.4.2"
before-after-hook "^1.4.0"
Expand Down Expand Up @@ -343,9 +343,9 @@
integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==

"@types/node@*":
version "11.11.7"
resolved "https://registry.yarnpkg.com/@types/node/-/node-11.11.7.tgz#f1c35a906b82adae76ede5ab0d2088e58fa37843"
integrity sha512-bHbRcyD6XpXVLg42QYaQCjvDXaCFkvb3WbCIxSDmhGbJYVroxvYzekk9QGg1beeIawfvSLkdZpP0h7jxE4ihnA==
version "11.12.2"
resolved "https://registry.yarnpkg.com/@types/node/-/node-11.12.2.tgz#d7f302e74b10e9801d52852137f652d9ee235da8"
integrity sha512-c82MtnqWB/CqqK7/zit74Ob8H1dBdV7bK+BcErwtXbe0+nUGkgzq5NTDmRW/pAv2lFtmeNmW95b0zK2hxpeklg==

JSONStream@^1.0.4, JSONStream@^1.3.4:
version "1.3.5"
Expand Down Expand Up @@ -750,9 +750,9 @@ bin-links@^1.1.2:
write-file-atomic "^2.3.0"

binary-extensions@^1.0.0:
version "1.13.0"
resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.13.0.tgz#9523e001306a32444b907423f1de2164222f6ab1"
integrity sha512-EgmjVLMn22z7eGGv3kcnHwSnJXmFHjISTY9E/S5lIcTD3Oxw05QTcBLNkJFzcb3cNueUdF/IN4U+d78V0zO8Hw==
version "1.13.1"
resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.13.1.tgz#598afe54755b2868a5330d2aff9d4ebb53209b65"
integrity sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw==

block-stream@*:
version "0.0.9"
Expand Down Expand Up @@ -2029,6 +2029,48 @@ eslint@5.15.3:
table "^5.2.3"
text-table "^0.2.0"

eslint@5.16.0:
version "5.16.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-5.16.0.tgz#a1e3ac1aae4a3fbd8296fcf8f7ab7314cbb6abea"
integrity sha512-S3Rz11i7c8AA5JPv7xAH+dOyq/Cu/VXHiHXBPOU1k/JAM5dXqQPt3qcrhpHSorXmrpu2g0gkIBVXAqCpzfoZIg==
dependencies:
"@babel/code-frame" "^7.0.0"
ajv "^6.9.1"
chalk "^2.1.0"
cross-spawn "^6.0.5"
debug "^4.0.1"
doctrine "^3.0.0"
eslint-scope "^4.0.3"
eslint-utils "^1.3.1"
eslint-visitor-keys "^1.0.0"
espree "^5.0.1"
esquery "^1.0.1"
esutils "^2.0.2"
file-entry-cache "^5.0.1"
functional-red-black-tree "^1.0.1"
glob "^7.1.2"
globals "^11.7.0"
ignore "^4.0.6"
import-fresh "^3.0.0"
imurmurhash "^0.1.4"
inquirer "^6.2.2"
js-yaml "^3.13.0"
json-stable-stringify-without-jsonify "^1.0.1"
levn "^0.3.0"
lodash "^4.17.11"
minimatch "^3.0.4"
mkdirp "^0.5.1"
natural-compare "^1.4.0"
optionator "^0.8.2"
path-is-inside "^1.0.2"
progress "^2.0.0"
regexpp "^2.0.1"
semver "^5.5.1"
strip-ansi "^4.0.0"
strip-json-comments "^2.0.1"
table "^5.2.3"
text-table "^0.2.0"

espree@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/espree/-/espree-5.0.1.tgz#5d6526fa4fc7f0788a5cf75b15f30323e2f81f7a"
Expand Down Expand Up @@ -2806,9 +2848,9 @@ highlight-es@^1.0.0:
js-tokens "^3.0.0"

hoek@6.x.x:
version "6.1.2"
resolved "https://registry.yarnpkg.com/hoek/-/hoek-6.1.2.tgz#99e6d070561839de74ee427b61aa476bd6bddfd6"
integrity sha512-6qhh/wahGYZHFSFw12tBbJw5fsAhhwrrG/y3Cs0YMTv2WzMnL0oLPnQJjv1QJvEfylRSOFuP+xCu+tdx0tD16Q==
version "6.1.3"
resolved "https://registry.yarnpkg.com/hoek/-/hoek-6.1.3.tgz#73b7d33952e01fe27a38b0457294b79dd8da242c"
integrity sha512-YXXAAhmF9zpQbC7LEcREFtXfGq5K1fmd+4PHkBq8NUqmzW3G+Dq10bI/i0KucLRwss3YYFQ0fSfoxBZYiGUqtQ==

homedir-polyfill@^1.0.1:
version "1.0.3"
Expand Down Expand Up @@ -3214,9 +3256,9 @@ is-glob@^3.1.0:
is-extglob "^2.1.0"

is-glob@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.0.tgz#9521c76845cc2610a85203ddf080a958c2ffabc0"
integrity sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A=
version "4.0.1"
resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc"
integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==
dependencies:
is-extglob "^2.1.1"

Expand Down Expand Up @@ -3566,9 +3608,9 @@ json5@^2.1.0:
minimist "^1.2.0"

jsonc-parser@^2.0.2:
version "2.0.3"
resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-2.0.3.tgz#6d4199ccab7f21ff5d2a4225050c54e981fb21a2"
integrity sha512-WJi9y9ABL01C8CxTKxRRQkkSpY/x2bo4Gy0WuiZGrInxQqgxQpvkBCLNcDYcHOSdhx4ODgbFcgAvfL49C+PHgQ==
version "2.1.0"
resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-2.1.0.tgz#eb0d0c7a3c33048524ce3574c57c7278fb2f1bf3"
integrity sha512-n9GrT8rrr2fhvBbANa1g+xFmgGK5X91KFeDwlKQ3+SJfmH5+tKv/M/kahx/TXOMflfWHKGKqKyfHQaLKTNzJ6w==

jsonfile@^4.0.0:
version "4.0.0"
Expand Down Expand Up @@ -5156,9 +5198,9 @@ parallel-transform@^1.1.0:
readable-stream "^2.1.5"

parent-module@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.0.tgz#df250bdc5391f4a085fb589dad761f5ad6b865b5"
integrity sha512-8Mf5juOMmiE4FcmzYc4IaiS9L3+9paz2KOiXzkRviCP6aDmN49Hz6EMWz0lGNp9pX80GvvAuLADtyGfW/Em3TA==
version "1.0.1"
resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2"
integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==
dependencies:
callsites "^3.0.0"

Expand Down Expand Up @@ -5478,11 +5520,12 @@ qs@~6.5.2:
integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==

query-string@^6.1.0:
version "6.4.0"
resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.4.0.tgz#1566c0cec3a2da2d82c222ed3f9e2a921dba5e6a"
integrity sha512-Werid2I41/tJTqOGPJ3cC3vwrIh/8ZupBQbp7BSsqXzr+pTin3aMJ/EZb8UEuk7ZO3VqQFvq2qck/ihc6wqIdw==
version "6.4.2"
resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.4.2.tgz#8be1dbd105306aebf86022144f575a29d516b713"
integrity sha512-DfJqAen17LfLA3rQ+H5S4uXphrF+ANU1lT2ijds4V/Tj4gZxA3gx5/tg1bz7kYCmwna7LyJNCYqO7jNRzo3aLw==
dependencies:
decode-uri-component "^0.2.0"
split-on-first "^1.0.0"
strict-uri-encode "^2.0.0"

quick-lru@^1.0.0:
Expand Down Expand Up @@ -5900,10 +5943,10 @@ rimraf@2, rimraf@2.6.3, rimraf@^2.5.2, rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6
dependencies:
glob "^7.1.3"

robo-config@1.9.1:
version "1.9.1"
resolved "https://registry.yarnpkg.com/robo-config/-/robo-config-1.9.1.tgz#2057d889340df8da819cb17200ccc2467fe0b5e4"
integrity sha512-HA61PbFt98ii1whyPXKb0+9PXW2IpdLd+DGCXnyI219wf4tfrINKrddPSzHWppmjcVJextrs9IGpUEhVsA06qw==
robo-config@1.10.1:
version "1.10.1"
resolved "https://registry.yarnpkg.com/robo-config/-/robo-config-1.10.1.tgz#496e8ae2a160b8dde80b218ba1bdeb160568c90e"
integrity sha512-pGhcjLu53Lp8i7SjCrkakgOIvPiNMh10M/WXpVQfpwaLw5T/B17ORNGBhA8akx/Km9+eNnva4zKvpyJxc/xTwQ==
dependencies:
app-root-path "2.2.1"
deepmerge "3.2.0"
Expand Down Expand Up @@ -6015,9 +6058,9 @@ semver-regex@^2.0.0:
integrity sha512-mUdIBBvdn0PLOeP3TEkMH7HHeUP3GjsXCwKarjv/kGmUFOYg1VqEemKhoQpWMu6X2I8kHeuVdGibLGkVK+/5Qw==

"semver@2 >=2.2.1 || 3.x || 4 || 5", "semver@2 || 3 || 4 || 5", "semver@2.x || 3.x || 4 || 5", "semver@^2.3.0 || 3.x || 4 || 5", semver@^5.0.1, semver@^5.0.3, semver@^5.1.0, semver@^5.3.0, semver@^5.4.1, semver@^5.5.0, semver@^5.5.1, semver@^5.6.0:
version "5.6.0"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.6.0.tgz#7e74256fbaa49c75aa7c7a205cc22799cac80004"
integrity sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==
version "5.7.0"
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.0.tgz#790a7cf6fea5459bac96110b29b60412dc8ff96b"
integrity sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==

semver@~5.3.0:
version "5.3.0"
Expand Down Expand Up @@ -6280,6 +6323,11 @@ spdx-license-ids@^3.0.0:
resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.3.tgz#81c0ce8f21474756148bbb5f3bfc0f36bf15d76e"
integrity sha512-uBIcIl3Ih6Phe3XHK1NqboJLdGfwr1UN3k6wSD1dZpmPsIkb8AGNbZYJ1fOBk834+Gxy8rpfDxrS6XLEMZMY2g==

split-on-first@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/split-on-first/-/split-on-first-1.0.0.tgz#648af4ce9a28fbcaadd43274455f298b55025fc6"
integrity sha512-mjA57TQtdWztVZ9THAjGNpgbuIrNfsNrGa5IyK94NoPaT4N14M+GI4jD7t4arLjFkYRQWdETC5RxFzLWouoB3A==

split-string@^3.0.1, split-string@^3.0.2:
version "3.1.0"
resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2"
Expand Down

0 comments on commit 230b188

Please sign in to comment.