Comments (6)
Nice! Will test and update. Also switching to stylus to get rid of sass / ruby.
from hoodie-grunt-test.
I can read the file. API requests already get proxied to the hard coded hoodie port. But:
How to find out if hoodie started and wrote the file? The grunt-bg-shell (and similar plugins) have a callback function which gets executed when the shell command finished. hoodie keeps running so the callback doesn't get triggered.
Any ideas on how to trigger the "hoodie ready" event for grunt?
from hoodie-grunt-test.
Another problem I see is that ask for a password on the first run. So we should wait with the following tasks until the stack.json
file has been written or updated and eventually show the password prompt to the user
from hoodie-grunt-test.
The password issue can be solved with the requirement to run hoodie start solo at least once. I hope that is satisfactory.
from hoodie-grunt-test.
what @janl said.
from hoodie-grunt-test.
Updated this test repository. I Wrote a grunt-hoodie plugin that starts hoodie and checks for the stack.json. As soon as the stack.json is present the plugin triggers a callback which then sets the correct port in the Gruntfile.
Currently there is no output of hoodie visible (except when there is an error) and the hoodie child process does not get terminated when the Grunt task exits because of an error. Will open issues at grunt-hoodie for that.
As this issue is about the proxy which just got resolved, I'll close it.
from hoodie-grunt-test.
Related Issues (1)
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 hoodie-grunt-test.