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: add initial structure of the project and first feature to validate asyncapi files #5

Merged
merged 44 commits into from
Jun 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
9ba0b4c
First approach
jotamusik Apr 13, 2021
5f2e0a0
merge readmes
jotamusik Apr 13, 2021
7604ccd
custom hook for validation
jotamusik Apr 14, 2021
fb97627
pr change request
jotamusik Apr 14, 2021
d348cfe
added .DS_Store to .gitignore
jotamusik Apr 14, 2021
d2b4dcd
convert UseValidate class into a function
jotamusik Apr 16, 2021
f913d4a
Added source maps to be able to debug
jotamusik Apr 24, 2021
bdeacbf
refactor: rename method
jotamusik Apr 24, 2021
87501a8
refactor: added CommandsRouter and the initial skeleton of commands
jotamusik Apr 24, 2021
a306502
test: deleted unused imports and skipped the test (wip CommandsRouter…
jotamusik Apr 24, 2021
a2ca16a
refactor: deleted console.log and algo task
jotamusik Apr 30, 2021
c5c1c07
feature: WIP - validation complete flow
jotamusik May 17, 2021
45dbb39
test: validation component tests finished
jotamusik May 28, 2021
c363793
refactor: extracted UseValidationResponse messages
jotamusik May 28, 2021
c9ef0aa
test: useValidate hook tests implemented
jotamusik May 28, 2021
4e68370
refactor: deleted unnecessary comment
jotamusik May 28, 2021
99002fe
test: ValidationService tests implemented
jotamusik May 28, 2021
4e42b72
Merge branch 'master' into master
jotamusik May 28, 2021
bcea3bb
test: CommandsRouter tests implemented
jotamusik May 28, 2021
8d4b536
cicd: removed personal task and added test:coverage task
jotamusik May 28, 2021
bf41f2d
refactor: remove unnecessary Help component
Jun 4, 2021
c261a55
refactor: deleted CJS exports
Jun 4, 2021
3215426
refactor: deleted unused constructor
Jun 4, 2021
44e60f4
refactor: use FunctionComponent instead of FC from React
Jun 4, 2021
75a036c
pr: added comment for explain why we need the import
jotamusik Jun 11, 2021
c9d4bad
cicd: deleted deprecated test
jotamusik Jun 11, 2021
0084079
pr: upgraded @asyncapi/parser version + npm audit fix applied
jotamusik Jun 11, 2021
50faaf3
pr: upgraded Readme
jotamusik Jun 11, 2021
8c631f8
pr: added semantic releases
jotamusik Jun 11, 2021
028bf2c
pr: changed version and licensing
jotamusik Jun 11, 2021
ee17283
pr: added needed package.json run tasks
jotamusik Jun 11, 2021
58c6244
pr: changed error + success messages
jotamusik Jun 11, 2021
92c76f4
pr: changed node version
jotamusik Jun 11, 2021
0264f79
pr: changed package name
jotamusik Jun 11, 2021
fd0afa4
pr: updated README.md
jotamusik Jun 11, 2021
ca04934
pr: changes from comments
jotamusik Jun 18, 2021
fc6a65d
pr: changes from comments - change .toString to make it through a rea…
jotamusik Jun 18, 2021
cb2e725
pr: added 'missing-asyncapi-field' error on ValidationResponse becaus…
jotamusik Jun 18, 2021
f1e3097
pr: better management of ParseError + added some dependencies
jotamusik Jun 18, 2021
44e9036
pr: improve ParseError management (type comes as an url, not as expec…
jotamusik Jun 18, 2021
c6e2dce
pr: changed echos of not implemented tasks
jotamusik Jun 18, 2021
02c7ca6
pr: fix readme header
jotamusik Jun 18, 2021
c3488f1
pr: fix absolute path bug
jotamusik Jun 18, 2021
e8a19ab
pr: fix - some errors does not have location property
jotamusik Jun 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.yml]
indent_style = space
indent_size = 2
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@

.DS_Store
/node_modules/
/dist/
.idea
32 changes: 29 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
WORK IN PROGRESS
<h5 align="center">
<br>
<a href="https://www.asyncapi.org"><img src="https://github.com/asyncapi/parser-nodejs/raw/master/assets/logo.png" alt="AsyncAPI logo" width="200"></a>
<br>
AsyncAPI CLI
</h5>
<p align="center">
<em>CLI to work with your AsyncAPI files. Currently supports validation, but it is under development for more features.</em>
</p>

CLI to work with your AsyncAPI files. You can validate them, use generator and even bootstrap a new file.
### Install
```bash
$ npm install --global @asyncapi/cli
```

Feel free to jump into the issues/PRs section and give your feedback on what we want to work on.
### CLI
```
$ asyncapi --help

Usage
$ asyncapi command options

Commands
validate
Options
-c --context Your AsyncAPI specification
-w --watch Enable watchMode (not implemented yet)

Examples
$ asyncapi validate --context=specification.yml
```