Skip to content
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.

Commit

Permalink
feat: tweaks and bugs on the core library
Browse files Browse the repository at this point in the history
Signed-off-by: Charlike Mike Reagent <[email protected]>
  • Loading branch information
Charlike Mike Reagent committed Nov 1, 2018
1 parent a8651aa commit 4ac1e4e
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 66 deletions.
2 changes: 1 addition & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"projectName": "charlike-cli",
"projectOwner": "tunnckoCore",
"projectOwner": "tunnckoCoreLabs",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
Expand Down
10 changes: 10 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -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"
]
}
7 changes: 3 additions & 4 deletions .verb.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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] `<[email protected]>` & [contributors](#wonderful-contributors).
Copyright (c) {%= licenseStart %}-present, [Charlike Mike Reagent](https://tunnckocore.com) `<[email protected]>` & [contributors](#wonderful-contributors).
Released under the [{%= license %} License][license-url].

---
Expand Down Expand Up @@ -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
66 changes: 28 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<!-- Logo when needed:
<p align="center">
<a href="https://github.com/tunnckoCore/charlike-cli">
<a href="https://github.com/tunnckoCoreLabs/charlike-cli">
<img src="./media/logo.png" width="85%">
</a>
</p>
Expand All @@ -41,10 +41,10 @@ Project is [semantically](https://semver.org) & automatically released on [Circl
- [API](#api)
- [See Also](#see-also)
- [Contributing](#contributing)
* [Follow the Guidelines](#follow-the-guidelines)
* [Support the project](#support-the-project)
* [OPEN Open Source](#open-open-source)
* [Wonderful Contributors](#wonderful-contributors)
- [Follow the Guidelines](#follow-the-guidelines)
- [Support the project](#support-the-project)
- [OPEN Open Source](#open-open-source)
- [Wonderful Contributors](#wonderful-contributors)
- [License](#license)

_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_
Expand All @@ -70,12 +70,13 @@ $ yarn add charlike-cli

Some of these projects are used here or were inspiration for this one, others are just related. So, thanks for your
existance!
- [asia](https://www.npmjs.com/package/asia): Blazingly fast, magical and minimalist testing framework, for Today and… [more](https://github.com/olstenlarck/asia#readme) | [homepage](https://github.com/olstenlarck/asia#readme "Blazingly fast, magical and minimalist testing framework, for Today and Tomorrow")
- [charlike](https://www.npmjs.com/package/charlike): Small, fast, simple and streaming project scaffolder for myself, but… [more](https://github.com/tunnckoCore/charlike) | [homepage](https://github.com/tunnckoCore/charlike "Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options")
- [docks](https://www.npmjs.com/package/docks): Extensible system for parsing and generating documentation. It just freaking… [more](https://github.com/olstenlarck/docks) | [homepage](https://github.com/olstenlarck/docks "Extensible system for parsing and generating documentation. It just freaking works!")
- [gitcommit](https://www.npmjs.com/package/gitcommit): Lightweight and joyful `git commit` replacement. Conventional Commits compliant. | [homepage](https://github.com/tunnckoCore/gitcommit "Lightweight and joyful `git commit` replacement. Conventional Commits compliant.")
- [new-release](https://www.npmjs.com/package/new-release): A stable alternative to [semantic-release][]. Only handles NPM publishing and… [more](https://github.com/tunnckoCore/new-release#readme) | [homepage](https://github.com/tunnckoCore/new-release#readme "A stable alternative to [semantic-release][]. Only handles NPM publishing and nothing more. For creating GitHub releases use the Semantic Release GitHub App")
- [parse-commit-message](https://www.npmjs.com/package/parse-commit-message): An extensible parser for commit message that follows Conventional Commits… [more](https://github.com/olstenlarck/parse-commit-message) | [homepage](https://github.com/olstenlarck/parse-commit-message "An extensible parser for commit message that follows Conventional Commits v1 spec")

- [asia](https://www.npmjs.com/package/asia): Blazingly fast, magical and minimalist testing framework, for Today and… [more](https://github.com/olstenlarck/asia#readme) | [homepage](https://github.com/olstenlarck/asia#readme 'Blazingly fast, magical and minimalist testing framework, for Today and Tomorrow')
- [charlike](https://www.npmjs.com/package/charlike): Small, fast, simple and streaming project scaffolder for myself, but… [more](https://github.com/tunnckoCore/charlike) | [homepage](https://github.com/tunnckoCore/charlike 'Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options')
- [docks](https://www.npmjs.com/package/docks): Extensible system for parsing and generating documentation. It just freaking… [more](https://github.com/olstenlarck/docks) | [homepage](https://github.com/olstenlarck/docks 'Extensible system for parsing and generating documentation. It just freaking works!')
- [gitcommit](https://www.npmjs.com/package/gitcommit): Lightweight and joyful `git commit` replacement. Conventional Commits compliant. | [homepage](https://github.com/tunnckoCore/gitcommit 'Lightweight and joyful `git commit` replacement. Conventional Commits compliant.')
- [new-release](https://www.npmjs.com/package/new-release): A stable alternative to [semantic-release][]. Only handles NPM publishing and… [more](https://github.com/tunnckoCore/new-release#readme) | [homepage](https://github.com/tunnckoCore/new-release#readme 'A stable alternative to [semantic-release][]. Only handles NPM publishing and nothing more. For creating GitHub releases use the Semantic Release GitHub App')
- [parse-commit-message](https://www.npmjs.com/package/parse-commit-message): An extensible parser for commit message that follows Conventional Commits… [more](https://github.com/olstenlarck/parse-commit-message) | [homepage](https://github.com/olstenlarck/parse-commit-message 'An extensible parser for commit message that follows Conventional Commits v1 spec')

**[back to top](#thetop)**

Expand Down Expand Up @@ -115,7 +116,7 @@ here](https://github.com/jfmengels/all-contributors-cli#usage).

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore -->
| [<img src="https://avatars3.githubusercontent.com/u/5038030?v=4" width="120px;"/><br /><sub><b>Charlike Mike Reagent</b></sub>](https://tunnckocore.com)<br />[💻](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") |
| [<img src="https://avatars3.githubusercontent.com/u/5038030?v=4" width="120px;"/><br /><sub><b>Charlike Mike Reagent</b></sub>](https://tunnckocore.com)<br />[💻](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") |
| :---: |

<!-- ALL-CONTRIBUTORS-LIST:END -->
Expand All @@ -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] `<[email protected]>` & [contributors](#wonderful-contributors).
Copyright (c) 2018-present, [Charlike Mike Reagent](https://tunnckocore.com) `<[email protected]>` & [contributors](#wonderful-contributors).
Released under the [Apache-2.0 License][license-url].

---
Expand All @@ -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

<!-- Front line badges -->

[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
Expand All @@ -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
[semantic-release]: https://github.com/semantic-release/semantic-release
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}"`);
})
Expand Down
17 changes: 4 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -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",
Expand All @@ -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": {
Expand All @@ -96,6 +86,7 @@
"reflinks": true
},
"reflinks": [
"charlike",
"new-release",
"semantic-release"
]
Expand Down
36 changes: 27 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"

Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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=
Expand Down Expand Up @@ -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==
Expand Down Expand Up @@ -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"

[email protected]:
version "0.2.1"
resolved "https://registry.yarnpkg.com/parse-git-log/-/parse-git-log-0.2.1.tgz#1cc8c63c8390a2fdbf01368255f43937f8a23ee1"
Expand Down

0 comments on commit 4ac1e4e

Please sign in to comment.