@binden/semantic-release-config 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,63 @@
1
+ {
2
+ "branches": "main",
3
+ "preset": "conventionalcommits",
4
+ "presetConfig": {
5
+ "types": [
6
+ { "type": "feat", "section": "Features" },
7
+ { "type": "fix", "section": "Bug Fixes" },
8
+ { "type": "perf", "section": "Performance Improvements" },
9
+ { "type": "revert", "section": "Reverts" },
10
+ { "type": "build", "section": "Build System" },
11
+ { "type": "initial", "section": "Initial" },
12
+ { "type": "dependencies", "section": "Dependencies" },
13
+ { "type": "peerDependencies", "section": "Peer dependencies" },
14
+ {
15
+ "type": "devDependencies",
16
+ "section": "Dev dependencies",
17
+ "hidden": true
18
+ },
19
+ { "type": "metadata", "section": "Metadata", "hidden": true },
20
+ { "type": "docs", "section": "Documentation", "hidden": true },
21
+ { "type": "style", "section": "Styles", "hidden": true },
22
+ {
23
+ "type": "chore",
24
+ "section": "Miscellaneous Chores",
25
+ "hidden": true
26
+ },
27
+ {
28
+ "type": "refactor",
29
+ "section": "Code Refactoring",
30
+ "hidden": true
31
+ },
32
+ { "type": "test", "section": "Tests", "hidden": true },
33
+ {
34
+ "type": "ci",
35
+ "section": "Continuous Integration",
36
+ "hidden": true
37
+ }
38
+ ]
39
+ },
40
+ "plugins": [
41
+ [
42
+ "@semantic-release/commit-analyzer",
43
+ {
44
+ "releaseRules": [
45
+ { "breaking": true, "release": "major" },
46
+ { "type": "feat", "release": "minor" },
47
+ { "type": "fix", "release": "patch" },
48
+ { "type": "perf", "release": "patch" },
49
+ { "type": "revert", "release": "patch" },
50
+ { "type": "build", "release": "patch" },
51
+ { "type": "initial", "release": "minor" },
52
+ { "type": "dependencies", "release": "patch" },
53
+ { "type": "peerDependencies", "release": "patch" }
54
+ ]
55
+ }
56
+ ],
57
+ "@semantic-release/release-notes-generator",
58
+ ["@semantic-release/changelog", { "changelogTitle": "# Changelog" }],
59
+ "@semantic-release/npm",
60
+ "@semantic-release/github",
61
+ "@semantic-release/git"
62
+ ]
63
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ # Changelog
2
+
3
+ ## 1.0.0 (2022-07-21)
4
+
5
+ ### Features
6
+
7
+ - add `semantic-release` config ([b4579ab](https://github.com/binden-js/semantic-release-config/commit/b4579abff322d191cd4e6d1054dac1bb3f284bd0))
8
+
9
+ ### Performance Improvements
10
+
11
+ - add `TypeScript` declarations ([900fa24](https://github.com/binden-js/semantic-release-config/commit/900fa247b5142bd28ef3e5ce55ec638976c49634))
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 binden-js
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # semantic-release-config ![CI Status](https://github.com/binden-js/semantic-release-config/workflows/CI/badge.svg) [![version](https://img.shields.io/github/package-json/v/binden-js/semantic-release-config?style=plastic)](https://github.com/binden-js/semantic-release-config) [![Known Vulnerabilities](https://snyk.io/test/github/binden-js/semantic-release-config/badge.svg)](https://snyk.io/test/github/binden-js/semantic-release-config) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) ![GitHub top language](https://img.shields.io/github/languages/top/binden-js/semantic-release-config) ![Node.js version](https://img.shields.io/node/v/@binden/semantic-release-config) ![npm downloads](https://img.shields.io/npm/dt/@binden/semantic-release-config) ![License](https://img.shields.io/github/license/binden-js/semantic-release-config)
2
+
3
+ Shareable semantic-release config.
4
+
5
+ - based on [conventionalcommits](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-conventionalcommits)
6
+
7
+ - updates `CHANGELOG.md`
8
+
9
+ - adds GitHub tags and releases with release notes
10
+
11
+ - publishes new versions to [npm](https://www.npmjs.com/)
12
+
13
+ ## Installation
14
+
15
+ ```sh
16
+ npm i --save-dev @binden/semantic-release-config
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ - Add the `extends` property (in the `.releaserc.json` file)
22
+
23
+ ```json
24
+ { "extends": "@binden/semantic-release-config", "branches": ["v1", "main"] }
25
+ ```
26
+
27
+ - Run `semantic-release`
28
+
29
+ ```sh
30
+ npx semantic-release
31
+ ```
package/index.d.ts ADDED
@@ -0,0 +1,65 @@
1
+ declare const _default: {
2
+ branches: "main";
3
+ preset: "conventionalcommits";
4
+ presetConfig: {
5
+ types: [
6
+ { type: "feat"; section: "Features" },
7
+ { type: "fix"; section: "Bug Fixes" },
8
+ { type: "perf"; section: "Performance Improvements" },
9
+ { type: "revert"; section: "Reverts" },
10
+ { type: "build"; section: "Build System" },
11
+ { type: "initial"; section: "Initial" },
12
+ { type: "dependencies"; section: "Dependencies" },
13
+ { type: "peerDependencies"; section: "Peer dependencies" },
14
+ {
15
+ type: "devDependencies";
16
+ section: "Dev dependencies";
17
+ hidden: true;
18
+ },
19
+ { type: "metadata"; section: "Metadata"; hidden: true },
20
+ { type: "docs"; section: "Documentation"; hidden: true },
21
+ { type: "style"; section: "Styles"; hidden: true },
22
+ {
23
+ type: "chore";
24
+ section: "Miscellaneous Chores";
25
+ hidden: true;
26
+ },
27
+ {
28
+ type: "refactor";
29
+ section: "Code Refactoring";
30
+ hidden: true;
31
+ },
32
+ { type: "test"; section: "Tests"; hidden: true },
33
+ {
34
+ type: "ci";
35
+ section: "Continuous Integration";
36
+ hidden: true;
37
+ }
38
+ ];
39
+ };
40
+ plugins: [
41
+ [
42
+ "@semantic-release/commit-analyzer",
43
+ {
44
+ releaseRules: [
45
+ { breaking: true; release: "major" },
46
+ { type: "feat"; release: "minor" },
47
+ { type: "fix"; release: "patch" },
48
+ { type: "perf"; release: "patch" },
49
+ { type: "revert"; release: "patch" },
50
+ { type: "build"; release: "patch" },
51
+ { type: "initial"; release: "minor" },
52
+ { type: "dependencies"; release: "patch" },
53
+ { type: "peerDependencies"; release: "patch" }
54
+ ];
55
+ }
56
+ ],
57
+ "@semantic-release/release-notes-generator",
58
+ ["@semantic-release/changelog", { changelogTitle: "# Changelog" }],
59
+ "@semantic-release/npm",
60
+ "@semantic-release/github",
61
+ "@semantic-release/git"
62
+ ];
63
+ };
64
+
65
+ export = _default;
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@binden/semantic-release-config",
3
+ "version": "1.0.0",
4
+ "description": "Shareable semantic-release config (based on Conventional Commits)",
5
+ "main": ".releaserc.json",
6
+ "type": "commonjs",
7
+ "types": "index.d.ts",
8
+ "engines": {
9
+ "node": ">=18.6.0",
10
+ "npm": ">=8.13.2"
11
+ },
12
+ "scripts": {
13
+ "commitlint": "commitlint --verbose --from=$( git rev-list --max-parents=0 $( git rev-parse --abbrev-ref HEAD ) )",
14
+ "install:clean": "rm -fr node_modules && rm -f package-lock.json && npm install",
15
+ "prepare": "husky install",
16
+ "prettier": "prettier -c .",
17
+ "prettier:write": "npm run prettier -- --write"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/binden-js/semantic-release-config.git"
22
+ },
23
+ "keywords": [
24
+ "semantic-release",
25
+ "semantic-release-config",
26
+ "binden"
27
+ ],
28
+ "author": "Sergey Bakulin <sergey.bakulin.github@gmail.com>",
29
+ "license": "MIT",
30
+ "bugs": {
31
+ "url": "https://github.com/binden-js/semantic-release-config/issues"
32
+ },
33
+ "homepage": "https://github.com/binden-js/semantic-release-config#readme",
34
+ "peerDependencies": {
35
+ "@semantic-release/changelog": "^6.0.1",
36
+ "@semantic-release/git": "^10.0.1",
37
+ "semantic-release": "^19.0.3"
38
+ },
39
+ "devDependencies": {
40
+ "@commitlint/config-conventional": "^17.0.3",
41
+ "commitlint": "^17.0.3",
42
+ "husky": "^8.0.1",
43
+ "lint-staged": "^13.0.3",
44
+ "prettier": "^2.7.1"
45
+ },
46
+ "publishConfig": {
47
+ "access": "public"
48
+ },
49
+ "funding": {
50
+ "type": "Coinbase Commerce",
51
+ "url": "https://commerce.coinbase.com/checkout/eddfb0f7-20e7-4e0d-8e04-232bbdf0b397"
52
+ }
53
+ }