gulp plugin to run apimocker server to mock service responses.
Gulp requires ~3.8.11
Please check out this Getting Started to install gulp if you haven't used gulp before. Then you may install this plugin with this command:
npm install gulp-apimocker --save-dev
Once the plugin has been installed, add a 'apimocker' task to your project's gulpfile.js.
var mocker = require('gulp-apimocker');
gulp.task('apimocker', function(){
return mocker.start({
config: '/path/to/config/file',
mockDirectory: '/path/to/mock/files'
});
});
Set the path to your apimocker config.json file. Path can be absolute, or relative to the gulpfile.js.
Set the path to your mock files. Path can be absolute, or relative to the gulpfile.js.
This projected is licensed under the terms of the MIT license.