Comments (11)
we already do some watching here
Line 17 in 058114c
so it is a matter of making a global function that can be reused by a command that needs it
from cli.
tbh I'm not sure, I would first try to check if chokidar community figured it out already, maybe something is already in their issues, or you can check others that use chokidar and how they solved testing. I would go first this direction to see how others tacked it
from cli.
@imabp well done 👏🏼
from cli.
This issue has been automatically marked as stale because it has not had recent activity 😴
It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.
There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.
Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.
Thank you for your patience ❤️
from cli.
We need native way for watching AsyncAPI resource...
@derberg Do you mean Native as the NodeJS Runtime or based on operating system?
- If NodeJS Runtime, an oclif
hook
is required to watch over the file and run the command using nodejs built in modulefs.
here
Would like to take up this issue :)
from cli.
A question @derberg
Do we need watch
option as a global flag, or specific to validate
?
from cli.
best would be if it is global but that you need to enable it for given command 😄
so validate, diff, should have it, but new, start not really. So would be awesome to have it generic in a sense that when we add new generate command, we easily enable watch for it
from cli.
That means the flow goes like this 👇
- Create a global function for watch using
chokidar
- Conditional check
--watch
flag - If conditional check is true run the global function.
Correct me, if somewhere missing any point
from cli.
@derberg please review, #220
Relax and watch specification files 🍻
from cli.
@derberg The watcher PR is ready to review: #220
I got a bit in stuck moment when writing test for --watch
flag using Mocha, @fmvilas because
- Mocha is unable to close the stream once the test is completed, (as watch mode works in stream), hence
npm run test
runs for indefinite period of time.
Need some solutions on how do we approach it? Mocking Streams or any other way ?
from cli.
@derberg, we can close this issue, as #220 is merged :)
from cli.
Related Issues (20)
- JavaFileGenerator in the generate models command ONLY generates the java model classes correctly if the openapi specs follow the java naming conventions HOT 9
- Chocolatey release workflow is not working. HOT 2
- Integration of AsyncAPI CLI with studio.asyncapi.com via WebSocket/HTTP Server HOT 1
- Enable new feature from Generator to support templates hosted as private packages HOT 2
- Request/reply semantics not clear in generated html HOT 2
- Studio started with AsyncAPI cli tools does not support version 3.0 HOT 3
- Add a lifecycle file to the default glee example HOT 2
- Unclear usage of `asyncapi start` HOT 4
- Validate command output is polluted by noisy messages HOT 2
- Add codeclimate diagnostics-format to validate command
- Old version of Studio wrapped in CLI HOT 1
- Ability to score quality of async api specification file HOT 10
- CLI is unable to bundle spec V3 documents using bundle command HOT 4
- [DART] We need a flag to generate models with json annotation HOT 1
- [CLI] Measure AsyncAPI DX metrics HOT 2
- Divide "Maintainer" role into two categories: Triager and Committer HOT 3
- Docker image fails to support Glee HOT 1
- When installed as debian package "asyncapi generate fromTemplate asyncapi.yaml @asyncapi/html-template" silently returns 1 HOT 5
- CLI cannot generate fromTemplate when specification contains file path $refs HOT 2
- Having invalid examples in spec fails CLI build HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.