Skip to content

Commit c944268

Browse files
Shurtu-galasyncapi-bot
andauthored
feat: refactor CLI to be service based and initial migration of server-api (#1825)
Co-authored-by: Shurtu-gal <[email protected]> Co-authored-by: asyncapi-bot <[email protected]>
1 parent 73bce6a commit c944268

File tree

132 files changed

+6974
-3212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+6974
-3212
lines changed

.asyncapi-cli

Lines changed: 0 additions & 1 deletion
This file was deleted.

.changeset/1825.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
'@asyncapi/cli': minor
3+
---
4+
5+
feat: refactor CLI to be service based and initial migration of server-api
6+
7+
- ac95777: feat: refactor cli to be service based and migrate server-api
8+
9+
Signed-off-by: Shurtu-gal <[email protected]>
10+
- 6b925f4: chore: fix diff test
11+
12+
Signed-off-by: Shurtu-gal <[email protected]>
13+
- cfe6e8d: feat: add generator controller
14+
15+
Signed-off-by: Shurtu-gal <[email protected]>
16+
- b2d7bcc: chore: don't need to install everytime
17+
18+
Signed-off-by: Shurtu-gal <[email protected]>
19+
- dd71d22: Merge remote-tracking branch 'origin/master' into refactor
20+
- 1fd1216: fix: linting
21+
22+
Signed-off-by: Ashish Padhy <[email protected]>
23+
- 6bd3e73: chore: run prettier
24+
25+
Signed-off-by: Ashish Padhy <[email protected]>
26+
- ca3fdee: chore: run linter
27+
28+
Signed-off-by: Ashish Padhy <[email protected]>
29+
- 1d03d79: chore: quick startup of server-api
30+
31+
Signed-off-by: Shurtu-gal <[email protected]>
32+
- 13729bb: chore: rename to apps
33+
34+
Signed-off-by: Ashish Padhy <[email protected]>
35+
- cdd2a43: chore: rename npm commands
36+
37+
Signed-off-by: Ashish Padhy <[email protected]>
38+
- 90aca02: Merge remote-tracking branch 'remote/master' into refactor
39+
40+

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
}
200200
},
201201
{
202-
"files": ["src/core/base.ts"],
202+
"files": ["src/apps/cli/internal/base.ts"],
203203
"rules": {
204204
"@typescript-eslint/ban-ts-comment": "off"
205205
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ node_modules
1818
test.asyncapi-cli
1919
asyncapi.json
2020
test/fixtures/minimaltemplate/__transpiled
21+
test/fixtures/newtemplate/__transpiled
2122
test/fixtures/specification-conv.yml
2223
test/fixtures/specification-conv.yaml
2324
test/fixtures/specification-conv.json

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ This project uses [Lefthook](https://github.com/evilmartians/lefthook) to enforc
4444

4545
To run all tests locally:
4646

47-
- Unit tests: `npm run test:unit`
47+
- CLI tests: `npm run cli:test`
4848
- Github action tests: `npm run action:test`
4949

5050
### Adding tests

lefthook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pre-commit:
44
lint:
55
run: npm run lint
66
test:
7-
run: npm run test:unit
7+
run: npm run test
88

99
commit-msg:
1010
parallel: true

nodemon.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"watch": [
3+
"src",
4+
".env"
5+
],
6+
"ext": "js,ts,json",
7+
"ignore": [
8+
"src/**/*.spec.ts",
9+
"src/**/*.test.ts"
10+
],
11+
"exec": "ts-node --require tsconfig-paths/register --transpile-only src/apps/api/server.ts"
12+
}

0 commit comments

Comments
 (0)