Skip to content

Commit

Permalink
build: fix cliff-jumper issues (#28)
Browse files Browse the repository at this point in the history
* chore: cleanup

* fix: add tag template

* build: update cliff config files
  • Loading branch information
favna committed May 7, 2022
1 parent 82073c3 commit 0c86063
Show file tree
Hide file tree
Showing 9 changed files with 115 additions and 39 deletions.
4 changes: 0 additions & 4 deletions .npmignore

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"devDependencies": {
"@commitlint/cli": "^16.2.4",
"@commitlint/config-conventional": "^16.2.4",
"@favware/cliff-jumper": "^1.4.0",
"@favware/cliff-jumper": "^1.5.1",
"@favware/npm-deprecate": "^1.0.4",
"@favware/rollup-type-bundler": "^1.0.7",
"@knodes/typedoc-plugin-monorepo-readmes": "^0.22.5",
Expand All @@ -31,7 +31,7 @@
"@typescript-eslint/eslint-plugin": "^5.22.0",
"@typescript-eslint/parser": "^5.22.0",
"conventional-changelog-cli": "^2.2.2",
"eslint": "^8.14.0",
"eslint": "^8.15.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.4",
Expand Down
1 change: 1 addition & 0 deletions packages/tagscript-plugin-discord/.cliff-jumperrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: tagscript-plugin-discord
monoRepo: true
packagePath: packages/tagscript-plugin-discord
tagTemplate: "{{full-name}}@{{new-version}}"
2 changes: 1 addition & 1 deletion packages/tagscript-plugin-discord/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ commit_parsers = [
{ body = ".*security", group = "🛡️ Security"},
]
filter_commits = true
tag_pattern = "tagscript@[0-9]*"
tag_pattern = "tagscript-plugin-discord@[0-9]*"
ignore_tags = ""
topo_order = false
sort_commits = "newest"
5 changes: 3 additions & 2 deletions packages/tagscript-plugin-discord/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@
"node": ">=v16.9.0"
},
"files": [
"dist",
"!dist/*.tsbuildinfo"
"dist/**/*.js*",
"dist/**/*.mjs*",
"dist/**/*.d*"
],
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions packages/tagscript/.cliff-jumperrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: tagscript
monoRepo: true
packagePath: packages/tagscript
tagTemplate: "{{full-name}}@{{new-version}}"
37 changes: 20 additions & 17 deletions packages/tagscript/cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ body = """
{% for group, commits in commits | group_by(attribute="group") %}
## {{ group | upper_first }}
{% for commit in commits %}
- {% if commit.breaking %}\
[**breaking**] \
{% endif %}\
{% if commit.scope %}\
**{{commit.scope}}:** \
{% endif %}\
- {% if commit.scope %}\
**{{commit.scope}}:** \
{% endif %}\
{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/imranbarbhuiya/tagscript/commit/{{ commit.id }}))\
{% if commit.breaking %}}\
\n\n {% raw %} {% endraw %} ### 💥 Breaking Changes:\n \
{% for breakingChange in commit.footers %}\
{% raw %} {% endraw %} - {{ breakingChange }}\n\
{% endfor %}\
{% endif %}\
{% endfor %}
{% endfor %}\n
"""
Expand All @@ -37,21 +40,21 @@ footer = ""
conventional_commits = true
filter_unconventional = true
commit_parsers = [
{ message = "^feat", group = "Features"},
{ message = "^fix", group = "Bug Fixes"},
{ message = "^docs", group = "Documentation"},
{ message = "^perf", group = "Performance"},
{ message = "^refactor", group = "Refactor"},
{ message = "^typings", group = "Typings"},
{ message = "^types", group = "Typings"},
{ message = ".*deprecated", body = ".*deprecated", group = "Deprecation"},
{ message = "^feat", group = "🚀 Features"},
{ message = "^fix", group = "🐛 Bug Fixes"},
{ message = "^docs", group = "📝 Documentation"},
{ message = "^perf", group = "🏃 Performance"},
{ message = "^refactor", group = "🏠 Refactor"},
{ message = "^typings", group = "⌨️ Typings"},
{ message = "^types", group = "⌨️ Typings"},
{ message = ".*deprecated", body = ".*deprecated", group = "🚨 Deprecation"},
{ message = "^revert", skip = true},
{ message = "^style", group = "Styling"},
{ message = "^test", group = "Testing"},
{ message = "^style", group = "🪞 Styling"},
{ message = "^test", group = "🧪 Testing"},
{ message = "^chore", skip = true},
{ message = "^ci", skip = true},
{ message = "^build", skip = true},
{ body = ".*security", group = "Security"},
{ body = ".*security", group = "🛡️ Security"},
]
filter_commits = true
tag_pattern = "tagscript@[0-9]*"
Expand Down
5 changes: 3 additions & 2 deletions packages/tagscript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@
"node": ">=v14.0.0"
},
"files": [
"dist",
"!dist/*.tsbuildinfo"
"dist/**/*.js*",
"dist/**/*.mjs*",
"dist/**/*.d*"
],
"repository": {
"type": "git",
Expand Down
95 changes: 84 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -632,9 +632,26 @@ __metadata:
languageName: node
linkType: hard

"@favware/cliff-jumper@npm:^1.4.0":
version: 1.4.0
resolution: "@favware/cliff-jumper@npm:1.4.0"
"@eslint/eslintrc@npm:^1.2.3":
version: 1.2.3
resolution: "@eslint/eslintrc@npm:1.2.3"
dependencies:
ajv: ^6.12.4
debug: ^4.3.2
espree: ^9.3.2
globals: ^13.9.0
ignore: ^5.2.0
import-fresh: ^3.2.1
js-yaml: ^4.1.0
minimatch: ^3.1.2
strip-json-comments: ^3.1.1
checksum: 48e7b7ac05cd514eee2ebb1d487600f0dd637ac21f63605e353cff6a08c7223275fe4f571d15ee9deae4e78c53edc73369ffcbed15fba4dfc1806179dbf4dc85
languageName: node
linkType: hard

"@favware/cliff-jumper@npm:^1.5.1":
version: 1.5.1
resolution: "@favware/cliff-jumper@npm:1.5.1"
dependencies:
"@sapphire/result": ^1.1.1
"@sapphire/utilities": ^3.6.2
Expand All @@ -643,11 +660,11 @@ __metadata:
conventional-changelog-angular: ^5.0.13
conventional-recommended-bump: ^6.1.0
js-yaml: ^4.1.0
typescript: ^4.6.3
typescript: ^4.6.4
bin:
cj: ./dist/cli.js
cliff-jumper: ./dist/cli.js
checksum: 8955ab24e5165f547c96c234bc8102444b6cdd0facc154dbe4cad726c77e6c603d3899c9fdc46079f0e98612104f2946e7f2d4560ecd41d6fdbdf5faff178f06
checksum: 392d1a2cee3fc5a3f85200014236410eee94525f7380f8190506f6013bd9b470660a7f97d9f099621c7f2bc393199e88769d2adcfa81dd07aca6bb8c82d3d05d
languageName: node
linkType: hard

Expand Down Expand Up @@ -1544,7 +1561,7 @@ __metadata:
languageName: node
linkType: hard

"acorn-jsx@npm:^5.3.1":
"acorn-jsx@npm:^5.3.1, acorn-jsx@npm:^5.3.2":
version: 5.3.2
resolution: "acorn-jsx@npm:5.3.2"
peerDependencies:
Expand All @@ -1560,7 +1577,7 @@ __metadata:
languageName: node
linkType: hard

"acorn@npm:^8.4.1, acorn@npm:^8.7.0":
"acorn@npm:^8.4.1, acorn@npm:^8.7.0, acorn@npm:^8.7.1":
version: 8.7.1
resolution: "acorn@npm:8.7.1"
bin:
Expand Down Expand Up @@ -3130,7 +3147,7 @@ __metadata:
languageName: node
linkType: hard

"eslint@npm:^8.13.0, eslint@npm:^8.14.0":
"eslint@npm:^8.13.0":
version: 8.14.0
resolution: "eslint@npm:8.14.0"
dependencies:
Expand Down Expand Up @@ -3175,6 +3192,51 @@ __metadata:
languageName: node
linkType: hard

"eslint@npm:^8.15.0":
version: 8.15.0
resolution: "eslint@npm:8.15.0"
dependencies:
"@eslint/eslintrc": ^1.2.3
"@humanwhocodes/config-array": ^0.9.2
ajv: ^6.10.0
chalk: ^4.0.0
cross-spawn: ^7.0.2
debug: ^4.3.2
doctrine: ^3.0.0
escape-string-regexp: ^4.0.0
eslint-scope: ^7.1.1
eslint-utils: ^3.0.0
eslint-visitor-keys: ^3.3.0
espree: ^9.3.2
esquery: ^1.4.0
esutils: ^2.0.2
fast-deep-equal: ^3.1.3
file-entry-cache: ^6.0.1
functional-red-black-tree: ^1.0.1
glob-parent: ^6.0.1
globals: ^13.6.0
ignore: ^5.2.0
import-fresh: ^3.0.0
imurmurhash: ^0.1.4
is-glob: ^4.0.0
js-yaml: ^4.1.0
json-stable-stringify-without-jsonify: ^1.0.1
levn: ^0.4.1
lodash.merge: ^4.6.2
minimatch: ^3.1.2
natural-compare: ^1.4.0
optionator: ^0.9.1
regexpp: ^3.2.0
strip-ansi: ^6.0.1
strip-json-comments: ^3.1.0
text-table: ^0.2.0
v8-compile-cache: ^2.0.3
bin:
eslint: bin/eslint.js
checksum: d8896393832e154e1381a21041cfe4d12a73a76fac26ea27cabbc0e5fdac87918ad651f07f804ef6faacd3868572de3c1ec5d96edf5502bc999eff0c423638f7
languageName: node
linkType: hard

"espree@npm:^9.3.1":
version: 9.3.1
resolution: "espree@npm:9.3.1"
Expand All @@ -3186,6 +3248,17 @@ __metadata:
languageName: node
linkType: hard

"espree@npm:^9.3.2":
version: 9.3.2
resolution: "espree@npm:9.3.2"
dependencies:
acorn: ^8.7.1
acorn-jsx: ^5.3.2
eslint-visitor-keys: ^3.3.0
checksum: 9a790d6779847051e87f70d720a0f6981899a722419e80c92ab6dee01e1ab83b8ce52d11b4dc96c2c490182efb5a4c138b8b0d569205bfe1cd4629e658e58c30
languageName: node
linkType: hard

"esprima@npm:^4.0.0":
version: 4.0.1
resolution: "esprima@npm:4.0.1"
Expand Down Expand Up @@ -5114,7 +5187,7 @@ __metadata:
languageName: node
linkType: hard

"minimatch@npm:^3.0.4":
"minimatch@npm:^3.0.4, minimatch@npm:^3.1.2":
version: 3.1.2
resolution: "minimatch@npm:3.1.2"
dependencies:
Expand Down Expand Up @@ -6155,7 +6228,7 @@ __metadata:
dependencies:
"@commitlint/cli": ^16.2.4
"@commitlint/config-conventional": ^16.2.4
"@favware/cliff-jumper": ^1.4.0
"@favware/cliff-jumper": ^1.5.1
"@favware/npm-deprecate": ^1.0.4
"@favware/rollup-type-bundler": ^1.0.7
"@knodes/typedoc-plugin-monorepo-readmes": ^0.22.5
Expand All @@ -6165,7 +6238,7 @@ __metadata:
"@typescript-eslint/eslint-plugin": ^5.22.0
"@typescript-eslint/parser": ^5.22.0
conventional-changelog-cli: ^2.2.2
eslint: ^8.14.0
eslint: ^8.15.0
eslint-config-prettier: ^8.5.0
eslint-plugin-prettier: ^4.0.0
husky: ^7.0.4
Expand Down

0 comments on commit 0c86063

Please sign in to comment.