From 4ac1e4ee2dd5c3e0f2239cb7550f1531d3a12be6 Mon Sep 17 00:00:00 2001 From: Charlike Mike Reagent Date: Thu, 1 Nov 2018 18:14:00 +0200 Subject: [PATCH] feat: tweaks and bugs on the core library Signed-off-by: Charlike Mike Reagent --- .all-contributorsrc | 2 +- .lintstagedrc | 10 +++++++ .verb.md | 7 +++-- README.md | 66 +++++++++++++++++++-------------------------- cli.js | 2 +- package.json | 17 +++--------- yarn.lock | 36 ++++++++++++++++++------- 7 files changed, 74 insertions(+), 66 deletions(-) create mode 100644 .lintstagedrc diff --git a/.all-contributorsrc b/.all-contributorsrc index fc20586..37e0ccf 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -1,6 +1,6 @@ { "projectName": "charlike-cli", - "projectOwner": "tunnckoCore", + "projectOwner": "tunnckoCoreLabs", "repoType": "github", "repoHost": "https://github.com", "files": [ diff --git a/.lintstagedrc b/.lintstagedrc new file mode 100644 index 0000000..9a5605d --- /dev/null +++ b/.lintstagedrc @@ -0,0 +1,10 @@ +{ + "**/*.{js,ts,tsx,es6,jsx,mjs}": [ + "eslint --cache --fix --quiet --format codeframe", + "git add" + ], + "**/*.{js,ts,tsx,es6,jsx,mjs,md,mdx,json,yaml,yml,toml}": [ + "prettier --write", + "git add" + ] +} diff --git a/.verb.md b/.verb.md index 16bfb9e..279b8bf 100644 --- a/.verb.md +++ b/.verb.md @@ -17,11 +17,11 @@ For bugs reports and feature requests, [please create an issue][open-issue-url] [@tunnckoCore](https://twitter.com/tunnckoCore) at Twitter. [![Become a Patron][patreon-img]][patreon-url] -[![Share Love Tweet][shareb]][shareu] +[![Conventional Commits][ccommits-img]][ccommits-url] [![NPM Downloads Weekly][downloads-weekly-img]][npmv-url] [![NPM Downloads Monthly][downloads-monthly-img]][npmv-url] [![NPM Downloads Total][downloads-total-img]][npmv-url] -[![Conventional Commits][ccommits-img]][ccommits-url] +[![Share Love Tweet][shareb]][shareu] Project is [semantically](https://semver.org) & automatically released on [CircleCI][codecoverage-url] with [new-release][] and its [New Release](https://github.com/apps/new-release) GitHub App. @@ -112,7 +112,7 @@ Consider showing your [support](#support-the-project) to them. :sparkling_heart: ## License -Copyright (c) {%= licenseStart %}-present, [Charlike Mike Reagent][author-link] `` & [contributors](#wonderful-contributors). +Copyright (c) {%= licenseStart %}-present, [Charlike Mike Reagent](https://tunnckocore.com) `` & [contributors](#wonderful-contributors). Released under the [{%= license %} License][license-url]. --- @@ -166,4 +166,3 @@ Released under the [{%= license %} License][license-url]. [shareu]: https://twitter.com/intent/tweet?text=https://github.com/{%= repository %}&via=tunnckoCore [shareb]: https://badgen.net/badge/twitter/share/1da1f2?icon=twitter [open-issue-url]: https://github.com/{%= repository %}/issues/new -[author-link]: https://tunnckocore.com diff --git a/README.md b/README.md index ad6659e..276f7f8 100644 --- a/README.md +++ b/README.md @@ -17,18 +17,18 @@ For bugs reports and feature requests, [please create an issue][open-issue-url] [@tunnckoCore](https://twitter.com/tunnckoCore) at Twitter. [![Become a Patron][patreon-img]][patreon-url] -[![Share Love Tweet][shareb]][shareu] +[![Conventional Commits][ccommits-img]][ccommits-url] [![NPM Downloads Weekly][downloads-weekly-img]][npmv-url] [![NPM Downloads Monthly][downloads-monthly-img]][npmv-url] [![NPM Downloads Total][downloads-total-img]][npmv-url] -[![Conventional Commits][ccommits-img]][ccommits-url] +[![Share Love Tweet][shareb]][shareu] Project is [semantically](https://semver.org) & automatically released on [CircleCI][codecoverage-url] with [new-release][] and its [New Release](https://github.com/apps/new-release) GitHub App. -| [
Charlike Mike Reagent](https://tunnckocore.com)
[💻](https://github.com/tunnckoCore/charlike-cli/commits?author=tunnckoCore "Code") [📖](https://github.com/tunnckoCore/charlike-cli/commits?author=tunnckoCore "Documentation") [💬](#question-tunnckoCore "Answering Questions") [👀](#review-tunnckoCore "Reviewed Pull Requests") [🔍](#fundingFinding-tunnckoCore "Funding Finding") | +| [
Charlike Mike Reagent](https://tunnckocore.com)
[💻](https://github.com/tunnckoCoreLabs/charlike-cli/commits?author=tunnckoCore "Code") [📖](https://github.com/tunnckoCoreLabs/charlike-cli/commits?author=tunnckoCore "Documentation") [💬](#question-tunnckoCore "Answering Questions") [👀](#review-tunnckoCore "Reviewed Pull Requests") [🔍](#fundingFinding-tunnckoCore "Funding Finding") | | :---: | @@ -124,7 +125,7 @@ Consider showing your [support](#support-the-project) to them. :sparkling_heart: ## License -Copyright (c) 2018-present, [Charlike Mike Reagent][author-link] `` & [contributors](#wonderful-contributors). +Copyright (c) 2018-present, [Charlike Mike Reagent](https://tunnckocore.com) `` & [contributors](#wonderful-contributors). Released under the [Apache-2.0 License][license-url]. --- @@ -135,36 +136,28 @@ _This file was generated by [verb-generate-readme](https://github.com/verbose/ve [npmv-url]: https://www.npmjs.com/package/charlike-cli [npmv-img]: https://badgen.net/npm/v/charlike-cli?icon=npm - -[ghrelease-url]: https://github.com/tunnckoCore/charlike-cli/releases/latest -[ghrelease-img]: https://badgen.net/github/release/tunnckoCore/charlike-cli?icon=github - -[license-url]: https://github.com/tunnckoCore/charlike-cli/blob/master/LICENSE +[ghrelease-url]: https://github.com/tunnckoCoreLabs/charlike-cli/releases/latest +[ghrelease-img]: https://badgen.net/github/release/tunnckoCoreLabs/charlike-cli?icon=github +[license-url]: https://github.com/tunnckoCoreLabs/charlike-cli/blob/master/LICENSE [license-img]: https://badgen.net/npm/license/charlike-cli [codestyle-url]: https://github.com/airbnb/javascript [codestyle-img]: https://badgen.net/badge/code%20style/airbnb/ff5a5f?icon=airbnb - -[linuxbuild-url]: https://circleci.com/gh/tunnckoCore/charlike-cli/tree/master -[linuxbuild-img]: https://badgen.net/circleci/github/tunnckoCore/charlike-cli/master?label=build&icon=circleci - -[codecoverage-url]: https://codecov.io/gh/tunnckoCore/charlike-cli -[codecoverage-img]: https://badgen.net/codecov/c/github/tunnckoCore/charlike-cli?icon=codecov - -[dependencies-url]: https://david-dm.org/tunnckoCore/charlike-cli -[dependencies-img]: https://badgen.net/david/dep/tunnckoCore/charlike-cli?label=deps - +[linuxbuild-url]: https://circleci.com/gh/tunnckoCoreLabs/charlike-cli/tree/master +[linuxbuild-img]: https://badgen.net/circleci/github/tunnckoCoreLabs/charlike-cli/master?label=build&icon=circleci +[codecoverage-url]: https://codecov.io/gh/tunnckoCoreLabs/charlike-cli +[codecoverage-img]: https://badgen.net/codecov/c/github/tunnckoCoreLabs/charlike-cli?icon=codecov +[dependencies-url]: https://david-dm.org/tunnckoCoreLabs/charlike-cli +[dependencies-img]: https://badgen.net/david/dep/tunnckoCoreLabs/charlike-cli?label=deps [ccommits-url]: https://conventionalcommits.org/ [ccommits-img]: https://badgen.net/badge/conventional%20commits/v1.0.0/dfb317 [new-release-url]: https://ghub.io/new-release [new-release-img]: https://badgen.net/badge/semantically/released/05c5ff - [downloads-weekly-img]: https://badgen.net/npm/dw/charlike-cli [downloads-monthly-img]: https://badgen.net/npm/dm/charlike-cli [downloads-total-img]: https://badgen.net/npm/dt/charlike-cli - [renovateapp-url]: https://renovatebot.com [renovateapp-img]: https://badgen.net/badge/renovate/enabled/green [prs-welcome-img]: https://badgen.net/badge/PRs/welcome/green @@ -174,12 +167,9 @@ _This file was generated by [verb-generate-readme](https://github.com/verbose/ve [patreon-url]: https://www.patreon.com/bePatron?u=5579781 [patreon-img]: https://badgen.net/badge/patreon/tunnckoCore/F96854?icon=patreon [patreon-sponsor-img]: https://badgen.net/badge/become/a%20sponsor/F96854?icon=patreon - -[shareu]: https://twitter.com/intent/tweet?text=https://github.com/tunnckoCore/charlike-cli&via=tunnckoCore +[shareu]: https://twitter.com/intent/tweet?text=https://github.com/tunnckoCoreLabs/charlike-cli&via=tunnckoCore [shareb]: https://badgen.net/badge/twitter/share/1da1f2?icon=twitter -[open-issue-url]: https://github.com/tunnckoCore/charlike-cli/issues/new -[author-link]: https://tunnckocore.com - +[open-issue-url]: https://github.com/tunnckoCoreLabs/charlike-cli/issues/new [charlike]: https://github.com/tunnckoCore/charlike [new-release]: https://github.com/tunnckoCore/new-release -[semantic-release]: https://github.com/semantic-release/semantic-release \ No newline at end of file +[semantic-release]: https://github.com/semantic-release/semantic-release diff --git a/cli.js b/cli.js index 0eccdec..030857c 100644 --- a/cli.js +++ b/cli.js @@ -79,7 +79,7 @@ if (!name || !desc) { /* eslint-disable promise/always-return */ - charlike(name, desc, Object.assign({}, cli, { locals: cli })) + charlike(name, desc, cli) .then((dest) => { console.log(`Project "${name}" scaffolded to "${dest}"`); }) diff --git a/package.json b/package.json index f8f182c..155e5b9 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "@tunnckocore/package-json": "^0.3.1", - "charlike": "^1.7.5", + "charlike": "^1.9.1", "esm": "^3.0.84", "mri": "^1.1.1" }, @@ -43,8 +43,8 @@ "module": "src/index.js", "typings": "src/index.d.ts", "version": "0.0.0-semantically-released", - "repository": "tunnckoCore/charlike-cli", - "homepage": "https://github.com/tunnckoCore/charlike-cli", + "repository": "tunnckoCoreLabs/charlike-cli", + "homepage": "https://github.com/tunnckoCoreLabs/charlike-cli", "author": "Charlike Mike Reagent (https://tunnckocore.com)", "publishConfig": { "access": "public", @@ -61,16 +61,6 @@ "pre-commit": "yarn precommit" } }, - "lint-staged": { - "**/*.{js,ts,tsx,es6,jsx,mjs}": [ - "eslint --cache --fix --quiet --format codeframe", - "git add" - ], - "**/*.{js,ts,tsx,es6,jsx,mjs,md,mdx,json,yaml,yml,toml}": [ - "prettier --write", - "git add" - ] - }, "verb": { "run": true, "toc": { @@ -96,6 +86,7 @@ "reflinks": true }, "reflinks": [ + "charlike", "new-release", "semantic-release" ] diff --git a/yarn.lock b/yarn.lock index 34d669d..2e79d67 100644 --- a/yarn.lock +++ b/yarn.lock @@ -540,20 +540,22 @@ chardet@^0.7.0: resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== -charlike@^1.7.5: - version "1.7.5" - resolved "https://registry.yarnpkg.com/charlike/-/charlike-1.7.5.tgz#9ea1634781ba193efacd0805b07f9edea77690f5" - integrity sha512-F7eqFbqkYaIX9IkXeBrKqOD+0TKtly3Ae2T8N6y88brBlrZG+P9seQP6Viz91ZCxFLTsTeU98l8Y5MYYutASCw== +charlike@^1.9.1: + version "1.9.1" + resolved "https://registry.yarnpkg.com/charlike/-/charlike-1.9.1.tgz#1e55fc616e6c1ade61c62752d904c63d363c2033" + integrity sha512-LfzGHO+xrHj2o+avRWIWw+ahzxdwYSca7K7V8Z+ooanTQmzfDQgiXWMuM52W53xMow2t1CjsiycLQTw28n1KoA== dependencies: camelcase "^5.0.0" dateformat "^3.0.3" esm "^3.0.84" + git-config-path "^1.0.1" git-user-email "^0.2.2" git-user-name "^2.0.0" git-username "^1.0.0" jstransformer "^1.0.0" jstransformer-j140 "^1.0.0" jstransformer-jstransformer "^1.1.6" + parse-git-config "^2.0.3" stream-copy-dir "^1.0.0" ci-info@^1.5.0: @@ -1120,9 +1122,9 @@ eslint-module-utils@^2.2.0: pkg-dir "^1.0.0" eslint-plugin-flowtype@^3.0.0: - version "3.1.4" - resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-3.1.4.tgz#c6c9c514b8c01579e6621b51d83549d5db802cac" - integrity sha512-vTWZcbE1NZaSEJwD2hXFFwDi2TidNLANf2jfsl+Mb43x2g/1TZmf/VVexljNrbbRw46lF6+Hexq10hF6OFZVEQ== + version "3.2.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-3.2.0.tgz#824364ed5940a404b91326fdb5a313a2a74760df" + integrity sha512-baJmzngM6UKbEkJ5OY3aGw2zjXBt5L2QKZvTsOlXX7yHKIjNRrlJx2ods8Rng6EdqPR9rVNIQNYHpTs0qfn2qA== dependencies: lodash "^4.17.10" @@ -1387,6 +1389,13 @@ expand-brackets@^2.1.4: snapdragon "^0.8.1" to-regex "^3.0.1" +expand-tilde@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/expand-tilde/-/expand-tilde-2.0.2.tgz#97e801aa052df02454de46b02bf621642cdc8502" + integrity sha1-l+gBqgUt8CRU3kawK/YhZCzchQI= + dependencies: + homedir-polyfill "^1.0.1" + extend-shallow@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" @@ -1903,7 +1912,7 @@ has@^1.0.1, has@^1.0.3: dependencies: function-bind "^1.1.1" -homedir-polyfill@^1.0.0: +homedir-polyfill@^1.0.0, homedir-polyfill@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz#4c2bbc8a758998feebf5ed68580f76d46768b4bc" integrity sha1-TCu8inWJmP7r9e1oWA921GdotLw= @@ -1990,7 +1999,7 @@ inherits@2, inherits@^2.0.1, inherits@~2.0.3: resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4= -ini@^1.3.4, ini@~1.3.0: +ini@^1.3.4, ini@^1.3.5, ini@~1.3.0: version "1.3.5" resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" integrity sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw== @@ -3280,6 +3289,15 @@ parse-git-config@^1.0.2, parse-git-config@^1.1.1: git-config-path "^1.0.1" ini "^1.3.4" +parse-git-config@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/parse-git-config/-/parse-git-config-2.0.3.tgz#6fb840d4a956e28b971c97b33a5deb73a6d5b6bb" + integrity sha512-Js7ueMZOVSZ3tP8C7E3KZiHv6QQl7lnJ+OkbxoaFazzSa2KyEHqApfGbU3XboUgUnq4ZuUmskUpYKTNx01fm5A== + dependencies: + expand-tilde "^2.0.2" + git-config-path "^1.0.1" + ini "^1.3.5" + parse-git-log@0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/parse-git-log/-/parse-git-log-0.2.1.tgz#1cc8c63c8390a2fdbf01368255f43937f8a23ee1"