forked from asyncapi/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: migrating to oclif (asyncapi#101)
* feat: added oclif (asyncapi#93) * feat: added oclif * feat: fixed lint issues * chore: added readme command to script in package.json * feat: fixed package.json as per review * refactor: porting logic from ink routers to oclif routers. (asyncapi#95) * refactor: ported validate and context commands to oclif * refactor: ported logic for auto detecting spec path * feat: created custom base command class for handing errors * fix: issues with context service saving relative path rather than complete path * refactor: removing old ink logic and updating tests (asyncapi#97) * refactor: ported validate and context commands to oclif * refactor: ported logic for auto detecting spec path * feat: created custom base command class for handing errors * fix: issues with context service saving relative path rather than complete path * refactor: deleted ink logic from * test: having issue setting up tests with jest. * refactor: removed jest and setup mocha Having issue with setting up mocha with typescript * test: fixed issue with setup but still tests not running as intended * test: trying to setup tests * test: reverting back to jest * test: reverting back to jest * feat: setup command testing with jest * test: added tests for CLI commands * test: fixed tests * fix: cleaning the .test.asyncapi file * test: should fix the tests * test: removed the breaking test * refactor: changed console.log to console.error * test: trying which tests are casing problem * test: checking which tests are causing problem * Migrate to new architecture * Add package-lock.json back * Add missing eslint packages * Fix linting * Ignore warnings * Add missing deps * Add conventional-changelog-conventionalcommits dep * Increase tests timeout * Change order of npm test args * Remove old test file * Use double quotes on mocha cli * Fix title in README * Use .test.asyncapi for testing * Use cross-env to set environment variable on Windows too Co-authored-by: Fran Mendez <[email protected]> * test: fixing bug from sonarcloud * test: fixing issue that is faling the tests * feat: created .sonarcloud.properties * ignoring unnecesorry bug from sonar cloud Co-authored-by: Fran Mendez <[email protected]>
- Loading branch information
Showing
64 changed files
with
15,256 additions
and
12,740 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = tab | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 2 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 | ||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
dist | ||
lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
|
||
*-debug.log | ||
*-error.log | ||
.DS_Store | ||
/node_modules/ | ||
/dist/ | ||
.idea | ||
/.nyc_output | ||
/dist | ||
/dist/ | ||
/lib | ||
/node_modules/ | ||
/tmp | ||
/yarn.lock | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sonar.exclusions=src/commands/**,src/models/SpecificationFile.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env node | ||
|
||
require('reflect-metadata'); | ||
|
||
require('@oclif/command').run() | ||
.then(require('@oclif/command/flush')) | ||
.catch(require('@oclif/errors/handle')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@echo off | ||
|
||
node "%~dp0\run" %* |
Oops, something went wrong.