kennethlynne/generator-angular-xl

View on GitHub
crud-mock/index.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';
var util = require('util');
var ScriptBase = require('../script-base.js');
var path = require('path');

var Generator = module.exports = function Generator() {
  ScriptBase.apply(this, arguments);
};

util.inherits(Generator, ScriptBase);

Generator.prototype.createMockFiles = function createMockFiles() {
    this.template('mock-crud-api.js', path.join(this.env.options.appPath, 'dev', this.dasherizedName + '-mocks.js'));
};