Comments (4)
Thanks for looking into this. Maybe we can combine boach approaches by using webdev as a package and using the deamon api.
from jaspr.
When I run webdev as daemon, it serves the page just as the serve
command does. The only difference is that the console output is in json.
from jaspr.
Yes, from the outside it does look like that it does nothing but the same as the serve
but with json output.
But in the inside, it does more:
- Starts the daemon with the
daemon
domain, so in the beginning, only those commands, and the preregistered ones, likerestart
, can be executed. - Validates the app, if it can be launched.
- Starts the
DevWorkflow
. This is where it starts the serving. - Adds the
app
domain. - Waits for the daemon to exit.
What's different, is that you can give it commands via jsonRPC on stdin. So, you can restart the app, stop the daemon, get it's version., and it will respond on stdout. Most things are documented on the flutter page, how one should attach to the process, the communication workflow.
I tried to pass more arguments than specified in the help, because in the code it looks like that the other arguments are passed to the mentioned workflow, so it wouldn't launch chrome, but the args parser wouldn't let me do it.
from jaspr.
Fyi the new cli uses the DevWorkflow directly.
from jaspr.
Related Issues (20)
- feat: Minify javascript in jaspr build step HOT 2
- fix: DomValidator is overly restrictive for attributes HOT 1
- fix: jasper router base ref problems
- feat: Implementation of Route Guards HOT 4
- feat: Integrated Debugging Configuration for VSCode with Jaspr HOT 1
- fix: Router with redirect in server mode HOT 2
- fix: Jaspr-Tailwind fail on Windows HOT 1
- Quickstart app created with "jaspr build" does not work. HOT 4
- fix: GoRouterHelper.replaceNamed not passing params
- fix: Extend allowed characters to DomValidator
- fix: Hot reload always crashes on Static Mode after a syntax error is introduced at one point, even when it's fixed afterwards HOT 6
- Jaspr version 0.11.1 Fails to load content correctly when using a custom index.html file HOT 13
- feat: Implement/document SCSS/SASS usage HOT 3
- fix: elements are rendered in wrong order when using PreloadStateMixin
- Client StatefulComponent fails at runtime when used with Jaspr 0.12.0, index.template.html and no div wrapped Router HOT 2
- In SSR mode, how to clear the content inside a <textarea /> after clicking a button? HOT 1
- fix: SyncProvider does not work after upgrading Jaspr to v0.12.0 HOT 2
- Too many routes causes race condition during static generation HOT 2
- feat: Pre-made Templates store HOT 1
- Add documentation comments for public classes and methods HOT 2
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 jaspr.