Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: include default nunjucks filters and new release to the generator #1225

Merged
merged 243 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
243 commits
Select commit Hold shift + click to select a range
7a5f64e
Initial commit
derberg Apr 17, 2020
dacb1f7
feat: introduce filters library (#1)
derberg Apr 29, 2020
0dc43f9
fix: ignore lint for one function and add workflow to test PRs (#4)
derberg Apr 29, 2020
6921a76
chore(release): 1.0.0 (#5)
asyncapi-bot Apr 29, 2020
45c9cb0
chore(deps): bump npm from 6.14.4 to 6.14.6 (#6)
dependabot[bot] Jul 11, 2020
42517d1
chore(deps): bump lodash from 4.17.15 to 4.17.19 (#8)
dependabot[bot] Sep 11, 2020
575a0c6
feat: Support circular refs in generateExample filter (#7)
derberg Sep 11, 2020
b20080a
chore(release): 1.1.0 (#10)
asyncapi-bot Sep 11, 2020
9b8f8a1
chore(deps): bump node-fetch from 2.6.0 to 2.6.1 (#9)
dependabot[bot] Sep 11, 2020
dddc03b
refactor: Remove unnecessary semicolons from custom filters (#13)
christeen24 Oct 2, 2020
0680c43
ci: Cleanup GitHub Actions workflows (#14)
HUTCHHUTCHHUTCH Oct 19, 2020
eaec55f
chore(deps-dev): bump semantic-release from 17.0.6 to 17.2.3 (#15)
dependabot[bot] Nov 18, 2020
595904b
ci: update global workflows (#16)
asyncapi-bot Nov 27, 2020
e97436d
ci: add automated bump workflow and improve pr testing (#17)
derberg Dec 11, 2020
147a943
chore(deps): bump ini from 1.3.5 to 1.3.7 (#18)
dependabot[bot] Dec 11, 2020
2a2cf5d
ci: update global workflows (#19)
asyncapi-bot Dec 11, 2020
8670cd8
ci: fix the space-issue in bump workflow (#20)
derberg Dec 12, 2020
36e9738
ci: remove release and pr testing workflows to use the gobal ones (#21)
derberg Jan 22, 2021
689ac37
ci: update global workflows (#22)
asyncapi-bot Jan 25, 2021
84f8ccf
ci: update global workflows (#23)
asyncapi-bot Jan 26, 2021
4e83050
ci: update global workflows (#24)
asyncapi-bot Jan 26, 2021
43c69c3
ci: update global workflows (#25)
asyncapi-bot Jan 26, 2021
a6215ab
ci: update global workflows (#26)
asyncapi-bot Jan 27, 2021
08772d6
chore: change linebreak style to 0 (#27)
derberg Jan 27, 2021
4a9f35c
ci: update global workflows (#28)
asyncapi-bot Feb 10, 2021
427f053
ci: update global workflows (#29)
asyncapi-bot Mar 29, 2021
7b67f33
chore(deps): bump y18n from 3.2.1 to 3.2.2 (#30)
dependabot[bot] Apr 1, 2021
27c345f
ci: update global workflows (#31)
asyncapi-bot Apr 2, 2021
ef6fd68
ci: update global workflows (#32)
asyncapi-bot Apr 6, 2021
9d7d282
chore(deps): bump handlebars from 4.7.6 to 4.7.7
dependabot[bot] May 8, 2021
b3a4930
chore(deps): bump lodash from 4.17.19 to 4.17.21
dependabot[bot] May 8, 2021
e9314c7
chore(deps): bump hosted-git-info from 2.8.8 to 2.8.9 (#35)
dependabot[bot] May 9, 2021
a604a38
chore(deps): bump json-pointer from 0.6.0 to 0.6.1
dependabot[bot] May 12, 2021
c42fbe9
ci: update global workflows
asyncapi-bot May 20, 2021
1f5d484
chore(deps): bump normalize-url from 4.5.0 to 4.5.1
dependabot[bot] Jun 11, 2021
6bb4246
chore(deps): bump glob-parent from 5.1.1 to 5.1.2
dependabot[bot] Jun 11, 2021
8527e1a
ci: update global workflows
asyncapi-bot Jun 24, 2021
183635d
feat!: support 2.1.0 version of spec (#41)
magicmatatjahu Jun 29, 2021
b0b2757
chore(release): v2.0.0
asyncapi-bot Jun 29, 2021
601c9aa
ci: update global workflows
asyncapi-bot Jul 12, 2021
ac9e679
ci: update global workflows
asyncapi-bot Jul 17, 2021
f171ad4
feat: adding replaceServerVariablesWithValues function (#46)
amrutprabhu Aug 10, 2021
571c7c4
chore(release): v2.1.0
asyncapi-bot Aug 10, 2021
002b73d
ci: update global workflows
asyncapi-bot Aug 10, 2021
0fb246d
docs: update replaceServerVariablesWithValues jsDoc (#49)
magicmatatjahu Aug 11, 2021
f56075a
ci: update global workflows
asyncapi-bot Aug 12, 2021
94a3742
chore(deps): bump path-parse from 1.0.6 to 1.0.7 (#50)
dependabot[bot] Aug 12, 2021
b9beb02
ci: remove scripts that were needed by old bump workflow (#52)
derberg Aug 12, 2021
5381586
ci: update global workflows
asyncapi-bot Sep 2, 2021
4d21c30
chore: update @asyncapi/parser to 1.8.0 version
asyncapi-bot Sep 2, 2021
331dac7
chore: update @asyncapi/parser to 1.8.1 version
asyncapi-bot Sep 2, 2021
07ae648
chore: update @asyncapi/parser to 1.8.2 version
asyncapi-bot Sep 6, 2021
3c08783
chore: update @asyncapi/parser to 1.9.0 version
asyncapi-bot Sep 8, 2021
d88fd79
chore: update @asyncapi/parser to 1.9.1 version
asyncapi-bot Sep 21, 2021
7c186db
ci: update global workflows
asyncapi-bot Sep 22, 2021
f5aa1cd
chore: update @asyncapi/parser to 1.10.0 version
asyncapi-bot Sep 28, 2021
9513461
ci: update global workflows
asyncapi-bot Oct 4, 2021
c1acf5b
ci: update global workflows
asyncapi-bot Oct 4, 2021
8481bc5
ci: update global workflows
asyncapi-bot Oct 5, 2021
5a205ba
ci: update global workflows
asyncapi-bot Oct 7, 2021
be8286e
ci: update global workflows
asyncapi-bot Oct 12, 2021
0dcdd51
ci: update global workflows
asyncapi-bot Oct 15, 2021
c1b0cf6
ci: update global workflows
asyncapi-bot Oct 21, 2021
5d1750b
ci: update global workflows
asyncapi-bot Oct 31, 2021
9c83fbd
chore: update @asyncapi/parser to 1.10.1 version
asyncapi-bot Nov 2, 2021
536156e
chore: update @asyncapi/parser to 1.10.2 version
asyncapi-bot Nov 2, 2021
21f7d8e
chore: update @asyncapi/parser to 1.11.0 version
asyncapi-bot Nov 15, 2021
aaab7bd
chore: update @asyncapi/parser to 1.11.1 version
asyncapi-bot Nov 19, 2021
eb9c40b
ci: update global workflows
asyncapi-bot Nov 23, 2021
98006ae
chore: update @asyncapi/parser to 1.12.0 version
asyncapi-bot Nov 23, 2021
845c4a7
ci: update global workflows
asyncapi-bot Dec 1, 2021
ba6fb86
ci: update global workflows
asyncapi-bot Dec 7, 2021
1aad45a
ci: update global workflows
asyncapi-bot Dec 9, 2021
6b5af88
ci: update global workflows
asyncapi-bot Dec 9, 2021
8e62e32
chore: add CODEOWNERS
derberg Dec 13, 2021
accb551
ci: update global workflows
asyncapi-bot Dec 16, 2021
a55bf64
ci: update global workflows
asyncapi-bot Jan 10, 2022
2852494
chore(deps): bump markdown-it from 10.0.0 to 12.3.2
dependabot[bot] Jan 12, 2022
1889427
ci: update global workflows
asyncapi-bot Jan 13, 2022
5870da9
ci: update global workflows (#84)
asyncapi-bot Jan 13, 2022
2398d44
ci: update global workflows (#85)
asyncapi-bot Jan 14, 2022
5ffa781
ci: update global workflows (#86)
asyncapi-bot Jan 20, 2022
aae553a
chore(deps): bump trim-off-newlines from 1.0.1 to 1.0.3 (#87)
dependabot[bot] Jan 20, 2022
4675619
ci: update global workflows (#88)
asyncapi-bot Jan 27, 2022
8bdc10d
chore(deps): bump node-fetch from 2.6.1 to 2.6.7 (#89)
dependabot[bot] Jan 27, 2022
5e06c40
ci: update global workflows (#91)
asyncapi-bot Feb 8, 2022
1b97d6d
chore(deps): bump tar from 4.4.13 to 4.4.19 (#92)
dependabot[bot] Feb 8, 2022
3294289
chore(deps): bump npm-user-validate from 1.0.0 to 1.0.1 (#93)
dependabot[bot] Feb 8, 2022
cb28e5d
chore(deps): bump ssri from 6.0.1 to 6.0.2 (#94)
dependabot[bot] Feb 8, 2022
48c6b78
ci: update global workflows (#95)
asyncapi-bot Feb 8, 2022
5b694ab
ci: update global workflows (#96)
asyncapi-bot Feb 11, 2022
8d93d6b
ci: update global workflows (#97)
asyncapi-bot Mar 2, 2022
1e4be6e
ci: update global workflows (#98)
asyncapi-bot Mar 3, 2022
0100f35
chore(deps): bump minimist from 1.2.5 to 1.2.6 (#99)
dependabot[bot] Mar 26, 2022
77dfd84
ci: update global workflows (#100)
asyncapi-bot Mar 28, 2022
6c21a24
ci: update global workflows (#101)
asyncapi-bot Mar 29, 2022
44d251e
ci: update global workflows (#102)
asyncapi-bot Apr 6, 2022
8b729cf
ci: update global workflows (#103)
asyncapi-bot Apr 8, 2022
f8d9954
ci: update global workflows (#104)
asyncapi-bot Apr 11, 2022
1c68e07
ci: update generic workflows (#105)
asyncapi-bot Apr 14, 2022
9f41aa4
ci: update generic workflows (#106)
asyncapi-bot Apr 20, 2022
7586f2b
ci: update generic workflows (#107)
asyncapi-bot Apr 26, 2022
585ee5d
ci: update generic workflows (#108)
asyncapi-bot May 10, 2022
8d81cf2
ci: update global contribution guide (#109)
asyncapi-bot May 12, 2022
1a4fefd
chore: update code of conduct (#110)
asyncapi-bot May 24, 2022
205e259
chore: update @asyncapi/parser to 1.15.1 version (#111)
asyncapi-bot May 25, 2022
cbfa1a1
ci: update generic workflows (#112)
asyncapi-bot May 31, 2022
8b9ab29
chore(deps-dev): bump semantic-release from 17.2.3 to 19.0.3 (#113)
dependabot[bot] Jun 10, 2022
8a5e9d7
chore(deps): bump ajv from 6.12.0 to 6.12.6 (#114)
dependabot[bot] Jun 10, 2022
d6527e4
ci: update workflows for nodejs projects (#115)
asyncapi-bot Jun 22, 2022
49ebf77
ci: update generic workflows (#116)
asyncapi-bot Jun 23, 2022
0c93e24
ci: update generic workflows (#117)
asyncapi-bot Jul 28, 2022
4a58653
ci: update generic workflows (#118)
asyncapi-bot Sep 15, 2022
836ab48
ci: update generic workflows (#119)
asyncapi-bot Sep 20, 2022
2b60168
chore(deps): bump got and ava (#120)
dependabot[bot] Sep 20, 2022
2f9c773
chore(deps): bump json-pointer from 0.6.1 to 0.6.2 (#121)
dependabot[bot] Sep 20, 2022
84a7b98
chore(deps): bump underscore from 1.10.2 to 1.13.4 (#122)
dependabot[bot] Sep 20, 2022
bbe4995
ci: update workflows for nodejs projects (#123)
asyncapi-bot Sep 20, 2022
06502ad
ci: update generic workflows (#124)
asyncapi-bot Sep 22, 2022
25a324b
ci: update generic workflows (#125)
asyncapi-bot Sep 28, 2022
1e45ff0
ci: update generic workflows (#126)
asyncapi-bot Oct 13, 2022
8e708c6
ci: update generic workflows (#127)
asyncapi-bot Oct 20, 2022
faf9768
chore(deps): bump ansi-regex, ansi-regex and ansi-regex (#128)
dependabot[bot] Oct 20, 2022
f5aa3e8
chore(deps): bump marked and jsdoc-to-markdown (#129)
dependabot[bot] Oct 21, 2022
a4f78c7
chore(deps): bump dot-prop and conventional-changelog-angular (#130)
dependabot[bot] Oct 24, 2022
adb13ea
ci: update generic workflows (#131)
asyncapi-bot Oct 24, 2022
381cb71
ci: update generic workflows (#132)
asyncapi-bot Oct 27, 2022
1ff27bf
chore(deps): bump @actions/core from 1.6.0 to 1.9.1 in /.github/workf…
dependabot[bot] Oct 27, 2022
2e0c816
ci: remove not needed workflow (#134)
codingtenshi Nov 8, 2022
740f52e
ci: update generic workflows (#135)
asyncapi-bot Nov 9, 2022
5916cdc
ci: update generic workflows (#136)
asyncapi-bot Nov 23, 2022
e776703
chore(deps): bump minimatch from 3.0.4 to 3.1.2 (#137)
dependabot[bot] Nov 23, 2022
053f77b
ci: update workflows for nodejs projects (#138)
asyncapi-bot Dec 1, 2022
c0236f1
ci: update generic workflows (#139)
asyncapi-bot Dec 6, 2022
461c567
ci: update workflows for nodejs projects (#140)
asyncapi-bot Jan 16, 2023
172b33f
ci: update generic workflows (#141)
asyncapi-bot Jan 30, 2023
d88fb2d
chore(deps): bump cookiejar from 2.1.3 to 2.1.4 in /.github/workflows…
dependabot[bot] Jan 30, 2023
7d5221f
ci: update generic workflows (#143)
asyncapi-bot Feb 13, 2023
f6d3875
ci: update generic workflows (#144)
asyncapi-bot Mar 14, 2023
fb6bdd7
ci: update workflows for nodejs projects (#145)
asyncapi-bot Mar 14, 2023
7a2eb0e
ci: update generic workflows (#146)
asyncapi-bot Mar 28, 2023
bcb52e2
ci: update workflows for nodejs projects (#147)
asyncapi-bot Apr 4, 2023
373a4c8
ci: update workflows for nodejs projects (#148)
asyncapi-bot Apr 13, 2023
5c3b9c1
ci: update generic workflows (#149)
asyncapi-bot Apr 13, 2023
74b77dc
ci: update generic workflows (#150)
asyncapi-bot Apr 13, 2023
43bb98c
ci: update workflows for nodejs projects (#151)
asyncapi-bot Apr 20, 2023
07d96ca
ci: update of files from global .github repo (#153)
asyncapi-bot Apr 27, 2023
91c921c
ci: update of files from global .github repo (#155)
asyncapi-bot Jun 29, 2023
fc9aad9
ci: update of files from global .github repo (#157)
asyncapi-bot Nov 15, 2023
c53e7ba
ci: update of files from global .github repo (#158)
asyncapi-bot Mar 18, 2024
4faa196
ci: update of files from global .github repo (#159)
asyncapi-bot Apr 2, 2024
7af5807
ci: update of files from global .github repo (#160)
asyncapi-bot Apr 2, 2024
14355cf
ci: update of files from global .github repo (#161)
asyncapi-bot Apr 3, 2024
1334e6b
ci: update of files from global .github repo (#162)
asyncapi-bot Apr 4, 2024
de0cc77
ci: update of files from global .github repo (#163)
asyncapi-bot Apr 8, 2024
2e8f57d
ci: update of files from global .github repo (#164)
asyncapi-bot Apr 9, 2024
9eccc22
ci: update of files from global .github repo (#165)
asyncapi-bot Apr 18, 2024
4afa972
ci: update of files from global .github repo (#166)
asyncapi-bot May 6, 2024
67183e7
prepare the app for turborepo
AyushNautiyalDeveloper May 21, 2024
7fe4322
feat(create-turbo): create basic
turbobot-temp May 21, 2024
ceb72f5
feat(create-turbo): apply official-starter transform
turbobot-temp May 21, 2024
6b1972f
feat(create-turbo): apply package-manager transform
turbobot-temp May 21, 2024
7ff76a4
Merge remote-tracking branch 'generator-filters/master'
AyushNautiyalDeveloper May 21, 2024
e2ae815
Added the turborepo to the generator.
AyushNautiyalDeveloper May 21, 2024
a1bf24f
addded the Required change.
AyushNautiyalDeveloper May 22, 2024
ba9d8f6
removed the unrequired changes.
AyushNautiyalDeveloper May 22, 2024
ba6deec
fixed the tests to the original.
AyushNautiyalDeveloper May 22, 2024
6ca60d5
moved the .github to root directory.
AyushNautiyalDeveloper May 23, 2024
16cfdb2
Added the required changes for the lint and command for the lint.
AyushNautiyalDeveloper May 23, 2024
54272eb
Added the correct path in the eslintignore.
AyushNautiyalDeveloper May 23, 2024
b9c3130
ci: update of files from global .github repo (#167)
asyncapi-bot Jun 13, 2024
2851db9
Added the required chagnes for the github workflows.
AyushNautiyalDeveloper Jun 13, 2024
af5e950
Update generator.test.js
derberg Jun 13, 2024
c27a28a
Merge branch 'master' of github.com:asyncapi/generator
AyushNautiyalDeveloper Jun 13, 2024
e57382a
Added the changeset.
AyushNautiyalDeveloper Jun 13, 2024
02d7718
linted the nodejs file.
AyushNautiyalDeveloper Jun 13, 2024
a19c043
linted the testfilemd.js
AyushNautiyalDeveloper Jun 15, 2024
3b533d6
linted the test-filemd.js
AyushNautiyalDeveloper Jun 15, 2024
1760d74
added the correct eslintignore files.
AyushNautiyalDeveloper Jun 17, 2024
cb94696
Update apps/generator/package.json
derberg Jun 17, 2024
1bf4676
Update .eslintignore
derberg Jun 17, 2024
c4d7186
added the remove the changeset and added the release with sematic rel…
AyushNautiyalDeveloper Jun 19, 2024
4c4eafe
updated the package lock file
AyushNautiyalDeveloper Jun 19, 2024
373cdd8
formatted the pkg root.
AyushNautiyalDeveloper Jun 19, 2024
ff31373
added the required changes.
AyushNautiyalDeveloper Jun 19, 2024
0e935cc
Merge branch 'master' of github.com:asyncapi/generator
AyushNautiyalDeveloper Jun 27, 2024
54ddd62
Added the changes for the release file.
AyushNautiyalDeveloper Jun 27, 2024
15b5ec5
update the the release and config.
AyushNautiyalDeveloper Jun 30, 2024
c1623db
prepare the generator filter for adding to turborepo.
AyushNautiyalDeveloper Jun 30, 2024
83bb005
Merge remote-tracking branch 'generator-filter/master'
AyushNautiyalDeveloper Jun 30, 2024
6bc48c0
rmoved the unwated files.
AyushNautiyalDeveloper Jun 30, 2024
5a6b1f8
updated the readmd file according to the turborepo.
AyushNautiyalDeveloper Jun 30, 2024
01236b7
deleted the readmd.md file that was not required.
AyushNautiyalDeveloper Jun 30, 2024
4572d4f
updated the pacage.json file.
AyushNautiyalDeveloper Jun 30, 2024
a5271e1
updated the node version.
AyushNautiyalDeveloper Jul 1, 2024
2581be6
Added the readmd and release changes.
AyushNautiyalDeveloper Jul 1, 2024
54438cb
changed the name of generatorfilter to nunjucks filter.
ayushnau Jul 19, 2024
2d3ecaf
feat: Added the correct change.md file and set the generator filters …
ayushnau Jul 20, 2024
103f7f8
Added the functionality for the preloading the filter.
ayushnau Jul 21, 2024
036522f
fixed the lint issue
ayushnau Jul 21, 2024
442ebdb
fixed the lint issue.
ayushnau Jul 21, 2024
78a06de
Added the required comment.
ayushnau Jul 22, 2024
1142d11
indentation fixed.
ayushnau Jul 22, 2024
41622ac
reverted the unwated change.
ayushnau Jul 22, 2024
04f7c48
Added the nunjucks filter for the test project.
ayushnau Jul 22, 2024
17f807d
fixed the sonar cloud.
ayushnau Jul 22, 2024
7b7a7a0
updated the documentation
ayushnau Jul 23, 2024
d26e676
updated the name of md file.
ayushnau Jul 23, 2024
d4f2de4
updated the documentation.
ayushnau Jul 23, 2024
2ce008e
Delete .vscode/settings.json
derberg Jul 24, 2024
509207e
Delete .github/workflows/if-nodejs-version-bump.yml as no longer needed
derberg Jul 24, 2024
7fc7e4b
Update bump.yml to support monorepo of generator
derberg Jul 24, 2024
689d107
Create local-generate-files.yml
derberg Jul 24, 2024
b560c9d
Update bump.yml
derberg Jul 24, 2024
712b2a8
Added the different (Manual and cli) ways of creating changeset in th…
ayushnau Jul 24, 2024
83d9cb9
added the chore(release) in the changeset commit for releases.
ayushnau Jul 24, 2024
6cda7c9
feat: updated the fies.
ayushnau Jul 25, 2024
89a79d4
feat:changes
ayushnau Jul 25, 2024
d3e6510
updated the files.
ayushnau Jul 25, 2024
05405c7
feat: updated the files.
ayushnau Jul 25, 2024
96080ee
feat: using the default npm i
ayushnau Jul 25, 2024
18d14cb
feat: updated the release commit and title message.
ayushnau Jul 25, 2024
29a0eae
removed the changeset cli package.
ayushnau Jul 25, 2024
433c1c0
Delete .github/workflows/if-nodejs-release.yml
derberg Jul 25, 2024
e30d014
Update release-docker.yml
derberg Jul 25, 2024
8ff8087
Update release-with-changesets.yml
derberg Jul 25, 2024
5c9bb19
updated the documentation.
ayushnau Jul 25, 2024
45122ae
:q
ayushnau Jul 25, 2024
89c6f91
Update .changeset/wise-laws-retire.md
derberg Jul 25, 2024
490c17f
updated the filters documentation.
ayushnau Jul 25, 2024
85dfcd4
Merge branch 'master' of github.com:ayushnau/generator
ayushnau Jul 25, 2024
98b2c19
updated nunjucks.render-engine.md
ayushnau Jul 25, 2024
95a460b
Update release-with-changesets.yml
derberg Jul 25, 2024
fa6440d
Update README.md
ayushnau Jul 25, 2024
34fc188
Update README.md
ayushnau Jul 25, 2024
a3bb388
Update README.md
ayushnau Jul 25, 2024
516471f
Update README.md
ayushnau Jul 25, 2024
948e73d
Update README.md
ayushnau Jul 25, 2024
da9dc4e
Update .github/workflows/release-with-changesets.yml
ayushnau Jul 25, 2024
376d63a
upated Readmd.md
ayushnau Jul 25, 2024
7afe272
added even more details about the releasae
derberg Jul 29, 2024
4a2306c
some final edits to readme
derberg Jul 29, 2024
45b9818
we should lock on specific version when using npx
derberg Jul 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": ["@changesets/changelog-git", { "repo": "asyncapi/generator" }],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"ignore": ["@asyncapi/nunjucks-filters"],
"updateInternalDependencies": "patch",
"privatePackages": {
"version": true,
"tag": true
}
}
7 changes: 7 additions & 0 deletions .changeset/wise-laws-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@asyncapi/generator": minor
---

- New release pipeline supporting monorepo,
- Package `@asyncapi/generator-filters` is now part of `generator` repo and won't be released separately. New name of the library is `nunjuckis-filters`,
- By default `@asyncapi/generator-filters` package, known as package with a lot of different nunjucks filters, is registered and added to generator and you no longer have to configure it in your `package.json`. Package `@asyncapi/generator-filters` will no longer be published to NPM separately and is deprecated.
15 changes: 3 additions & 12 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
# This action is centrally managed in https://github.com/asyncapi/.github/
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo

# Purpose of this action is to update npm package in libraries that use it. It is like dependabot for asyncapi npm modules only.
# It runs in a repo after merge of release commit and searches for other packages that use released package. Every found package gets updated with lates version

name: Bump package version in dependent repos - if Node project
name: Bump package version in dependent repos

on:
# It cannot run on release event as when release is created then version is not yet bumped in package.json
Expand All @@ -21,15 +15,12 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Check if Node.js project and has package.json
id: packagejson
run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
- if: steps.packagejson.outputs.exists == 'true'
name: Bumping latest version of this package in other repositories
- name: Bumping latest version of this package in other repositories
uses: derberg/npm-dependency-manager-for-your-github-org@1eafd3bf3974f21d395c1abac855cb04b295d570 # using v6.-.- https://github.com/derberg/npm-dependency-manager-for-your-github-org/releases/tag/v6
with:
github_token: ${{ secrets.GH_TOKEN }}
committer_username: asyncapi-bot
committer_email: [email protected]
repos_to_ignore: spec,bindings,saunter,server-api
packagejson_path: ./apps/generator
custom_id: "dependency update from asyncapi bot"
69 changes: 0 additions & 69 deletions .github/workflows/if-nodejs-version-bump.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/local-generate-files.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# this workflow runs after releases to generate some files like for example api.md
name: Autogenerate API files

on:
release:
types:
- published

jobs:
version_bump:
name: Generate assets and bump NodeJS
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
# target branch of release. More info https://docs.github.com/en/rest/reference/repos#releases
# in case release is created from release branch then we need to checkout from given branch
# if @semantic-release/github is used to publish, the minimum version is 7.2.0 for proper working
ref: ${{ github.event.release.target_commitish }}
- name: Check package-lock version
uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master
id: lockversion
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "${{ steps.lockversion.outputs.version }}"
- name: Install dependencies
run: npm ci
- name: Assets generation
run: npm run generate:assets --if-present
- name: Create Pull Request with updated asset files including package.json
uses: peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54 # use 4.2.4 https://github.com/peter-evans/create-pull-request/releases/tag/v4.2.4
with:
token: ${{ secrets.GH_TOKEN }}
commit-message: 'chore(release): ${{github.event.release.tag_name}}'
committer: asyncapi-bot <[email protected]>
author: asyncapi-bot <[email protected]>
title: 'chore: update assets'
body: 'Updating assets like for example API.md, but not only, that shoudl be generated and not manually updated'
branch: assets-update/${{github.event.release.tag_name}}
- if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel
name: Report workflow run status to Slack
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,action,workflow
text: 'Unable to bump the version in package.json after the release'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}
1 change: 1 addition & 0 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
- name: Build Image
uses: docker/build-push-action@v4
with:
context: './apps/generator'
push: true
load: false
build-args: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
# This action is centrally managed in https://github.com/asyncapi/.github/
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo

# It does magic only if there is package.json file in the root of the project
name: Release - if Node project
# It does magic only if there is a package.json file in the root of the project
name: Release

on:
push:
branches:
- master
# below lines are not enough to have release supported for these branches
# make sure configuration of `semantic-release` package mentions these branches
# The below lines are not enough to have release supported for these branches
- next-spec
- next-major
- next-major-spec
Expand All @@ -19,14 +15,15 @@ on:

jobs:
test-nodejs:
# We just check the message of first commit as there is always just one commit because we squash into one before merging
# "commits" contains array of objects where one of the properties is commit "message"
# We just check the message of the first commit as there is always just one commit because we squash into one before merging
# "commits" contains an array of objects where one of the properties is the commit "message"
# Release workflow will be skipped if release conventional commits are not used
if: |
startsWith( github.repository, 'asyncapi/' ) &&
(startsWith( github.event.commits[0].message , 'fix:' ) ||
startsWith( github.event.commits[0].message, 'fix!:' ) ||
startsWith( github.event.commits[0].message, 'feat:' ) ||
startsWith( github.event.commits[0].message, 'chore(release):' ) ||
startsWith( github.event.commits[0].message, 'feat!:' ))
derberg marked this conversation as resolved.
Show resolved Hide resolved
name: Test NodeJS release on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand All @@ -36,7 +33,7 @@ jobs:
# See: https://github.com/puppeteer/puppeteer/issues/12327 and https://github.com/asyncapi/parser-js/issues/1001
os: [ubuntu-latest, macos-13, windows-latest]
steps:
- name: Set git to use LF #to once and for all finish neverending fight between Unix and Windows
- name: Set git to use LF # To once and for all finish the never-ending fight between Unix and Windows
run: |
git config --global core.autocrlf false
git config --global core.eol lf
Expand All @@ -59,7 +56,7 @@ jobs:
- if: steps.lockversion.outputs.version == '18' && matrix.os == 'windows-latest'
name: Install npm cli 8
shell: bash
#npm cli 10 is buggy because of some cache issues
# npm cli 10 is buggy because of some cache issues
run: npm install -g [email protected]
- if: steps.packagejson.outputs.exists == 'true'
name: Install dependencies
Expand All @@ -80,10 +77,10 @@ jobs:

release:
needs: [test-nodejs]
name: Publish to any of NPM, Github, or Docker Hub
name: Publish to any of NPM, GitHub, or Docker Hub
runs-on: ubuntu-latest
steps:
- name: Set git to use LF #to once and for all finish neverending fight between Unix and Windows
- name: Set git to use LF # To once and for all finish the never-ending fight between Unix and Windows
run: |
git config --global core.autocrlf false
git config --global core.eol lf
Expand All @@ -107,22 +104,29 @@ jobs:
shell: bash
run: npm ci
- if: steps.packagejson.outputs.exists == 'true'
name: Add plugin for conventional commits for semantic-release
run: npm install --save-dev [email protected]
name: Install changelog
shell: bash
# This step can be removed once the issue is fixed in the changeset package.
run: npm install @changesets/[email protected]
- if: steps.packagejson.outputs.exists == 'true'
name: Publish to any of NPM, Github, and Docker Hub
#this step has 2 goals, it is either identifying that there is changeset file created and then this action creates a PR with version bump that will trigger release - or if it sees there is no changeset, and there are versions changes in package.json files, it publish new versions to NPM is they are not there yet
uses: changesets/action@v1
id: release
ayushnau marked this conversation as resolved.
Show resolved Hide resolved
with:
version: npx -p @changesets/[email protected] changeset version
commit: "chore(release): release and bump versions of packages"
title: "chore(release): release and bump versions of packages"
publish: npx -p @changesets/[email protected] changeset publish
setupGitUser: false
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
GIT_AUTHOR_NAME: asyncapi-bot
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: asyncapi-bot
GIT_COMMITTER_EMAIL: [email protected]
run: npx [email protected]
- if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel
- if: failure() # Only, on failure, send a message on the 94_bot-failing-ci Slack channel
name: Report workflow run status to Slack
uses: 8398a7/action-slack@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

node_modules
**/node_modules/

# Local env files
.env
Expand Down
Loading
Loading