Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

feat: initial version #1

Merged
merged 111 commits into from
Dec 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
0e4cf6f
Initial commit from generator
jonaslagoni Mar 28, 2020
45a885f
Removed unintended package-lock.json
jonaslagoni Mar 28, 2020
e164ec9
Changed name of npm package to "ts-nats-template"
jonaslagoni Mar 28, 2020
cd9b8ac
Added .gitignore for node_modules
jonaslagoni Mar 28, 2020
a25d71a
Added missing dependency for all filter
jonaslagoni Mar 28, 2020
bb6da67
Changed rename hooks to exclude node_modules because when template is…
jonaslagoni Mar 28, 2020
f43787a
Ensured rename-njk hook renames all .njk files.
jonaslagoni Mar 28, 2020
06aeb7e
Added check for which client to use based on message and default cont…
jonaslagoni Mar 28, 2020
bcd4061
Added separated README.md file for the template and the generated cli…
jonaslagoni Mar 30, 2020
09fc722
Added new generator hook to rename package file
jonaslagoni Mar 30, 2020
a5db182
feat: implemented hooks to control the flow of information outside of…
jonaslagoni Mar 30, 2020
ddec891
Moved all files to accommodate new generator version..
jonaslagoni Mar 31, 2020
2218dd2
Renamed template package and readme and removed unused hooks
jonaslagoni Apr 5, 2020
53fee54
Fix: template hooks
jonaslagoni Apr 5, 2020
38e70f2
Test: added documents to test
jonaslagoni Apr 5, 2020
8323434
Fix: template partial paths
jonaslagoni Apr 5, 2020
074376f
Fix: missing check for bindings in filters
jonaslagoni Apr 5, 2020
1afafe1
Test: added template and generated tests
jonaslagoni Apr 5, 2020
168b447
Fix: Removed actual comparators for testing. Should be generated each…
jonaslagoni Apr 5, 2020
a419cd3
Added initial $$schema$$.spec.ts.njk test generation
jonaslagoni Apr 30, 2020
29ceaa4
Removed extra comma from Reply.njk
jonaslagoni Apr 30, 2020
0626ac0
Removed $$schema$$.spec.ts
jonaslagoni Apr 30, 2020
7f2428d
add generator version requirement to .tp-config.json
jonaslagoni Apr 30, 2020
cc4c947
Converted to the new approach for filters.
jonaslagoni Apr 30, 2020
e9c420a
$$everySchema$$.ts.njk now imports schema dependencies.
jonaslagoni Apr 30, 2020
b6dee33
Added constructor for $$everySchema$$.ts.njk
jonaslagoni Apr 30, 2020
879cba2
Updated README.md
jonaslagoni Apr 30, 2020
939829d
Added general filter
jonaslagoni Apr 30, 2020
af4235a
Removed unused filters
jonaslagoni Apr 30, 2020
8598618
Added $$objectSchema$$.ts instead of $$everySchema$$.ts
jonaslagoni May 1, 2020
114df40
Fixed naming issue for channel filenames.
jonaslagoni May 1, 2020
858cae1
Fixed some issues with realize channel, arguments and hooks.
jonaslagoni May 1, 2020
1471cdd
Fixed some typescript errors
jonaslagoni May 1, 2020
483f2f1
Fixed all of the known problems for a stable commit
jonaslagoni May 5, 2020
68ea06b
Fixed problems with index channel generation.
jonaslagoni May 8, 2020
9800419
Fixed packages
jonaslagoni May 8, 2020
b961a96
Changed how to connect with nkey authentication
jonaslagoni May 8, 2020
0fca24e
Fixed hooks and event emitter for client
jonaslagoni May 10, 2020
afd8ed2
Added disconnect function to the client.
jonaslagoni May 12, 2020
d1e2375
Added missing aliases.
jonaslagoni May 12, 2020
1c42e19
Fixed messages would not get parsed correctly
jonaslagoni May 12, 2020
c1b86ca
Added optional test files
jonaslagoni May 13, 2020
e73a8ad
Fixed the hooks to work with the new generator.
jonaslagoni May 14, 2020
a1f5b2d
Fixed realize channel name filter didnt change / character to . used …
jonaslagoni May 14, 2020
18da367
Fixed parameters are not provided when receiving messages.
jonaslagoni May 15, 2020
246ec82
Finished promisify parameter for reply callback
jonaslagoni May 20, 2020
1538080
Reversed the generation of channel operations to fitting the spec.
jonaslagoni May 24, 2020
135ce9e
Created macro for standard client code to avoid dublicated code.
jonaslagoni May 24, 2020
a0ac01c
Migrated to new generator.
jonaslagoni May 24, 2020
af2a93d
Fixed expected and actual comparator generations.
jonaslagoni May 26, 2020
fee8cd5
Removed unused dependencies.
jonaslagoni May 26, 2020
dd12977
Added defualt parameter values to the template.
jonaslagoni Jun 28, 2020
fb92331
Added custom NatsTypescriptTemplateError.
jonaslagoni Jun 28, 2020
ccde012
Fixed some problems with the generation.
jonaslagoni Jun 29, 2020
1fde7f2
Added export of schemas.
jonaslagoni Jul 1, 2020
4527974
Ensure that property names are used as is.
jonaslagoni Jul 2, 2020
9cca1fc
Removed the use of module alias, since this is not a finale module.
jonaslagoni Jul 7, 2020
78c1316
WIP quicktype integration.
jonaslagoni Jul 16, 2020
c03193c
Finished integrating quicktype so it supports null types.
jonaslagoni Jul 19, 2020
09bd60a
Fixed runtime errors for connection options.
jonaslagoni Jul 20, 2020
d8c82aa
Fixed messages was not generated when messages directory did not exist.
jonaslagoni Jul 21, 2020
b772062
Refactoring and removing dead code.
jonaslagoni Jul 22, 2020
d57f398
Fixing if pubsub nats bindings are not specified channels are never g…
jonaslagoni Jul 23, 2020
fa6d7e2
Fixing subscribe messages use name instead of uid.
jonaslagoni Jul 23, 2020
cb8c2f6
Added pubsub example.
jonaslagoni Jul 23, 2020
9157324
Added request reply example
jonaslagoni Jul 23, 2020
4154481
Changed .gitignore
jonaslagoni Jul 23, 2020
616495f
Removed test directory for the template
jonaslagoni Jul 23, 2020
5275ed5
Fixed event emitter types from the internal ts-nats library are not e…
jonaslagoni Jul 23, 2020
7d1e65e
Updated README.md
jonaslagoni Jul 23, 2020
730403b
Fixed Subscribe couldn't find channel parameter.
jonaslagoni Jul 23, 2020
74a6989
Updated README.md
jonaslagoni Jul 23, 2020
a288b9d
Updated README.md
jonaslagoni Jul 23, 2020
5536c31
Removed unused scripts
jonaslagoni Jul 23, 2020
5f767b8
Updated README.md
jonaslagoni Jul 23, 2020
644220b
Removed test dependencies.
jonaslagoni Jul 23, 2020
65e07a6
Added examples and changed readme.
jonaslagoni Jul 26, 2020
f491232
Matched the template with bindings.
jonaslagoni Jul 27, 2020
e7ad8cc
Matched the template with bindings.
jonaslagoni Jul 27, 2020
12430b7
Removed unused files.
jonaslagoni Jul 27, 2020
67994e9
Updated example README.
jonaslagoni Jul 27, 2020
3f32dbd
Updated README.md
jonaslagoni Jul 27, 2020
cf71b16
Added function comments to filters/all.js
jonaslagoni Jul 27, 2020
d69492b
Added comments to rename-njk.js
jonaslagoni Jul 27, 2020
e6a7614
Fixed refactor error with undefined function.
jonaslagoni Jul 27, 2020
8ee1c70
Fixed another refactor error with undefined functions.
jonaslagoni Jul 27, 2020
5cd9931
Changed generator requirement to current version of the generator.
jonaslagoni Jul 27, 2020
9a335ea
Update README.md
jonaslagoni Jul 27, 2020
23a67e8
Update README.md
jonaslagoni Jul 27, 2020
a5d3d36
Update README.md
jonaslagoni Jul 27, 2020
e101322
Changed README.md to use 2 spaces instead of tabs.
jonaslagoni Jul 27, 2020
0c53c42
Update README.md
jonaslagoni Jul 27, 2020
3b7f113
Update README.md
jonaslagoni Jul 27, 2020
98e362b
Added standard binary converter.
jonaslagoni Jul 28, 2020
2bb93c1
Removed unused script
jonaslagoni Jul 28, 2020
3736b6b
Updated the new release candidate of the generator to be supported.
jonaslagoni Aug 20, 2020
cbc4b64
Updated the generator version supported
jonaslagoni Sep 1, 2020
e899a8b
Removed unused scripts and dependencies.
jonaslagoni Sep 1, 2020
c577651
Fixed channel parameter unwrapping not working properly.
jonaslagoni Sep 1, 2020
865e325
Updated examples.
jonaslagoni Sep 1, 2020
87a7e4b
Fixed parameter types other then strings where not working
jonaslagoni Sep 5, 2020
247036b
Added current AsyncAPI github workflow and updated examples code.
jonaslagoni Sep 28, 2020
2500513
Renamed workflow step
jonaslagoni Sep 28, 2020
20e51d1
Removed unintended example.
jonaslagoni Sep 29, 2020
f28f22a
Updated README.md
jonaslagoni Sep 29, 2020
cb640d6
Updated package file
Nov 18, 2020
1fb8d71
Added tests and fixed small bugs
Nov 20, 2020
f3e5c2c
Switch over to use filter for quicktype
Nov 20, 2020
bc25cd8
Updated readme
Nov 20, 2020
a4734d6
Merge branch 'master' into feature/initial_version
jonaslagoni Dec 4, 2020
752f867
Removed already existing workflows
jonaslagoni Dec 7, 2020
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
32 changes: 32 additions & 0 deletions .github/workflows/pull-request-integration-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Pull request integration testing

on:
pull_request:
types: [synchronize]

jobs:
test:
if: github.event.pull_request.draft == false
name: 'Run linter and tests'
runs-on: ubuntu-latest
services:
nats:
image: nats
ports:
- 4222
restart: unless-stopped
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 13
- name: Install dependencies
run: npm ci
- name: Generate and build examples
run: npm run test:examples:integration
env:
NATS_HOST: nats
NATS_PORT: ${{ job.services.redis.ports['6379'] }}

23 changes: 23 additions & 0 deletions .github/workflows/pull-request-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Pull request testing

on:
pull_request

jobs:
release:
jonaslagoni marked this conversation as resolved.
Show resolved Hide resolved
name: 'Run linter and tests'
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 13
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint
- name: Run tests
run: npm test

60 changes: 60 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Release

on:
push:
branches:
- master

jobs:
release:
name: 'Release NPM, GitHub'
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 13
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Re-generate examples
run: npm generate:examples
- name: Get version from package.json before release step
id: initversion
run: echo "::set-output name=version::$(npm run get-version --silent)"
- name: Release to NPM and GitHub
id: release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_AUTHOR_NAME: asyncapi-bot
GIT_AUTHOR_EMAIL: info@asyncapi.io
GIT_COMMITTER_NAME: asyncapi-bot
GIT_COMMITTER_EMAIL: info@asyncapi.io
run: npm run release
- name: Get version from package.json after release step
id: extractver
run: echo "::set-output name=version::$(npm run get-version --silent)"
- name: Create Pull Request with updated package files
if: steps.initversion.outputs.version != steps.extractver.outputs.version
uses: peter-evans/create-pull-request@v2.4.4
with:
token: ${{ secrets.GH_TOKEN }}
commit-message: 'chore(release): ${{ steps.extractver.outputs.version }}'
committer: asyncapi-bot <info@asyncapi.io>
author: asyncapi-bot <info@asyncapi.io>
title: 'chore(release): ${{ steps.extractver.outputs.version }}'
body: 'Version bump in package.json and package-lock.json for release [${{ steps.extractver.outputs.version }}](https://github.com/${{github.repository}}/releases/tag/v${{ steps.extractver.outputs.version }})'
branch: version-bump/${{ steps.extractver.outputs.version }}
- name: Publish information about the release to Twitter
if: steps.initversion.outputs.version != steps.extractver.outputs.version
uses: m1ner79/Github-Twittction@v1.0.1
with:
twitter_status: "Release ${{ steps.extractver.outputs.version }} for ${{github.repository}} is out in the wild 😱💪🍾🎂\n\nThank you for the contribution ${{ github.event.commits[0].author.name }} https://github.com/${{github.repository}}/releases/tag/v${{ steps.extractver.outputs.version }}"
twitter_consumer_key: ${{ secrets.TWITTER_CONSUMER_KEY }}
twitter_consumer_secret: ${{ secrets.TWITTER_CONSUMER_SECRET }}
twitter_access_token_key: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }}
twitter_access_token_secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
41 changes: 0 additions & 41 deletions .github/workflows/sentiment-analysis.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/stale-issues-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Manage stale issues and PRs

on:
schedule:
- cron: "0 0 * * *"

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v1.1.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: |
This issue has been automatically marked as stale because it has not had recent activity :sleeping:
It will be closed in 30 days if no further activity occurs. To unstale this issue, add a comment with detailed explanation.
Thank you for your contributions :heart:
stale-pr-message: |
This pull request has been automatically marked as stale because it has not had recent activity :sleeping:
It will be closed in 30 days if no further activity occurs. To unstale this pull request, add a comment with detailed explanation.
Thank you for your contributions :heart:
days-before-stale: 60
days-before-close: 30
stale-issue-label: stale
stale-pr-label: stale
exempt-issue-label: keep-open
exempt-pr-label: keep-open
25 changes: 0 additions & 25 deletions .github/workflows/welcome-first-time-contrib.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
test/actual_comparators/*
dist
Loading