From 4e3507e2fad862b21dcee921313bfb4890b038f2 Mon Sep 17 00:00:00 2001 From: Sergio Kopplin Date: Mon, 11 Jul 2022 21:09:03 -0300 Subject: [PATCH] feat: first release on commitlint --- README.md | 2 +- packages/commitlint-config/CHANGELOG.md | 13 ------------- packages/commitlint/CHANGELOG.md | 7 +++++++ .../{commitlint-config => commitlint}/README.md | 9 +++++---- .../commitlint.config.js | 0 packages/{commitlint-config => commitlint}/index.js | 0 .../{commitlint-config => commitlint}/package.json | 4 ++-- 7 files changed, 15 insertions(+), 20 deletions(-) delete mode 100644 packages/commitlint-config/CHANGELOG.md create mode 100644 packages/commitlint/CHANGELOG.md rename packages/{commitlint-config => commitlint}/README.md (64%) rename packages/{commitlint-config => commitlint}/commitlint.config.js (100%) rename packages/{commitlint-config => commitlint}/index.js (100%) rename packages/{commitlint-config => commitlint}/package.json (81%) diff --git a/README.md b/README.md index a03ed79..e5d3245 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ### Packages -- `@kopplin/commitlint-config`: CommitLint Preset +- `@kopplin/commitlint`: CommitLint Preset ### Useful commands diff --git a/packages/commitlint-config/CHANGELOG.md b/packages/commitlint-config/CHANGELOG.md deleted file mode 100644 index fe8d96f..0000000 --- a/packages/commitlint-config/CHANGELOG.md +++ /dev/null @@ -1,13 +0,0 @@ -# @kopplin/commitlint-config - -## 1.0.0 - -### Major Changes - -- e94935a: force release major to replace old versions - -## 0.1.0 - -### Minor Changes - -- 0bd2423: first release diff --git a/packages/commitlint/CHANGELOG.md b/packages/commitlint/CHANGELOG.md new file mode 100644 index 0000000..e04e553 --- /dev/null +++ b/packages/commitlint/CHANGELOG.md @@ -0,0 +1,7 @@ +# @kopplin/commitlint + +## 0.0.1 + +### Patch Changes + +- first release diff --git a/packages/commitlint-config/README.md b/packages/commitlint/README.md similarity index 64% rename from packages/commitlint-config/README.md rename to packages/commitlint/README.md index e82052c..89867ca 100644 --- a/packages/commitlint-config/README.md +++ b/packages/commitlint/README.md @@ -1,6 +1,6 @@ -# @kopplin/commitlint-config +# @kopplin/commitlint -[![npm version](https://badge.fury.io/js/%40kopplin%2Fcommitlint-config.svg)](https://badge.fury.io/js/%40kopplin%2Fcommitlint-config) +[![npm version](https://badge.fury.io/js/%40kopplin%2Fcommitlint.svg)](https://badge.fury.io/js/%40kopplin%2Fcommitlint) Kopplin's shared [CommitLint](https://commitlint.js.org/) configuration. @@ -9,10 +9,11 @@ Kopplin's shared [CommitLint](https://commitlint.js.org/) configuration. 1. Install the packages ```sh -npm i -D @kopplin/commitlint-config @commitlint/cli husky +npm i -D @kopplin/commitlint @commitlint/cli husky ``` 2. Install Husky + ```sh npx husky install ``` @@ -28,5 +29,5 @@ npx husky add .husky/commit-msg 'npx --no-install commitlint --edit $1' After installing it, apply the config to commitlint by running the following command: ```bash -echo "module.exports = { extends: ['@kopplin/commitlint-config'] };" > .commitlintrc.js +echo "module.exports = { extends: ['@kopplin/commitlint'] };" > .commitlintrc.js ``` diff --git a/packages/commitlint-config/commitlint.config.js b/packages/commitlint/commitlint.config.js similarity index 100% rename from packages/commitlint-config/commitlint.config.js rename to packages/commitlint/commitlint.config.js diff --git a/packages/commitlint-config/index.js b/packages/commitlint/index.js similarity index 100% rename from packages/commitlint-config/index.js rename to packages/commitlint/index.js diff --git a/packages/commitlint-config/package.json b/packages/commitlint/package.json similarity index 81% rename from packages/commitlint-config/package.json rename to packages/commitlint/package.json index 0e7d6a0..6d1bda4 100644 --- a/packages/commitlint-config/package.json +++ b/packages/commitlint/package.json @@ -1,6 +1,6 @@ { - "name": "@kopplin/commitlint-config", - "version": "1.0.0", + "name": "@kopplin/commitlint", + "version": "0.0.1", "description": "Shareable commitlint", "main": "index.js", "license": "MIT",