Alberto Maturano 154fc28a57 Normalize to standar file permissions
As a result of taking a look on PR #1967 I realized there is 819
executable files in this repository. It is obvious this is an error.
2018-09-24 12:33:09 -05:00

48 lines
991 B
JavaScript

'use strict';
/**
* Module dependencies
*/
// Node.js core.
const path = require('path');
// Local dependencies.
const packageJSON = require('../json/package.json.js');
const routesJSON = require('../json/routes.json.js');
/**
* Generate a core API
*/
module.exports = {
templatesDirectory: path.resolve(__dirname, '..', 'templates'),
before: require('./before'),
targets: {
'plugins/:humanizeId/.gitignore': {
copy: 'gitignore'
},
// Use the default `controller` file as a template for
// every generated controller.
'plugins/:humanizeId/controllers/:filename': {
template: 'controller.template'
},
// every generated controller.
'plugins/:humanizeId/services/:filename': {
template: 'service.template'
},
// Generate routes.
'plugins/:humanizeId/config/routes.json': {
jsonfile: routesJSON
},
// Main package.
'plugins/:humanizeId/package.json': {
jsonfile: packageJSON
},
}
};