Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.32 KB

README.md

File metadata and controls

41 lines (29 loc) · 1.32 KB

gulp-apimocker Build Status

NPM

gulp plugin to run apimocker server to mock service responses.

Getting Started

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

Add "apimocker" task

Overview

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'
  });
});

Options

options.config

Set the path to your apimocker config.json file. Path can be absolute, or relative to the gulpfile.js.

options.mockDirectory

Set the path to your mock files. Path can be absolute, or relative to the gulpfile.js.

License

This projected is licensed under the terms of the MIT license.