Comments (8)
Investigating different approaches, will try and get this into the next milestone 👍
from drakov.
Just an update on this issue, we have some code in the works, but need more time to setup a nicer way of testing child processes, so hopefully this is something we can bring in, in the near future 👍
from drakov.
+1
from drakov.
Thanks for the feedback guys, we are definitely looking at getting this feature into drakov in the short term.
from drakov.
+1 on this.
I have a watch in grunt and stop/start the server but doesnt seem to reload.
watch: {
drakov: {
files: ['doc/track-api.md'],
tasks: ['mock-api'],
options: {
livereload: '<%= connect.options.livereload %>'
}
}
Grunt task
grunt.registerTask('mock-api', 'Start drakov server', function() {
var done = this.async();
drakov.stop(function(){
console.log('-- STOPPED --');
});
var drakovOptions = {
sourceFiles: './doc/*.md',
serverPort: 3000,
autoOptions: true,
delay: 1000,
disableCORS: true
};
drakov.run(drakovOptions, function(err){
console.log('-- STARTED --');
if (err) {
throw err;
}
});
done();
});
I see in the console
File "doc\track-api.md" changed.
Running "mock-api" task
-- STOPPED --
DRAKOV STARTED
Done, without errors.
But it doesnt seem to reload!!! ;-)
from drakov.
Any update on this guys?
from drakov.
hey @shavo007 we have some code to do this, but were unable to reliably test it.
I'll have a look at this again and look at introducing this.
from drakov.
No probs. Thanks for the reply.
from drakov.
Related Issues (20)
- Express server callback is not called after switching to 'drafter' HOT 1
- Discover option does not work HOT 1
- Incompatibility with body-parser HOT 3
- Remove Wiki tab HOT 1
- Can not match body request when Content-Type is x-www-form-urlencoded HOT 2
- URI conflict HOT 2
- Could not load the Visual C++ component "VCBuild.exe". To fix this HOT 2
- CLI option `--ignoreHeader` causes error HOT 1
- Missing URI parameters on mock advanced API Blueprint resources HOT 4
- stealthmode does not disable all output HOT 1
- Error on ignoreHeader command line argument HOT 3
- Docker HOT 1
- Send parameter value in body
- Dump all request data
- Share the project with community HOT 12
- ignoreHeader error, TypeError: ignoreHeaders.map is not a function HOT 1
- Add package-lock.json to the repo
- Use release-it for release/distribution
- public option not working HOT 5
- "Endpoint not found"
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 drakov.