Skip to content

kent-wu/gulp-apimocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

gulp plugin to run apimocker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published