sails-generate-bouquet-scenario
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -81,2 +81,4 @@ /** | ||
if(scope.args[2] && scope.args[3]) { | ||
scope.controller = scope.args[2] | ||
scope.action = scope.args[3] | ||
scope.binNameSpaces = scope.systemName + ' ' + scope.args[2] + ' ' + scope.args[3]; | ||
@@ -88,2 +90,4 @@ scope.binName = scope.systemName + '-' + scope.args[2] + '-' + scope.args[3]; | ||
var names = scope.nameSpaces.split(/\s/); | ||
scope.controller = names[1].toLowerCase(); | ||
scope.action = names[0].toLowerCase(); | ||
scope.binNameSpaces = scope.systemName + ' ' + names[1].toLowerCase() + ' ' + names[0].toLowerCase(); | ||
@@ -121,2 +125,6 @@ scope.binName = scope.systemName + '-' + names[1].toLowerCase() + '-' + names[0].toLowerCase(); | ||
'./docs/UseCases/:usecase/:readme': { template: 'index.rst' }, | ||
'./api/controllers/:controller/:action.js': {template: 'action.js'}, | ||
'./test/bin/:controller-:action.test.js': {template: 'bin.test.js'}, | ||
'./test/integration/Controller-:controller-:action.test.js': {template: 'controller.test.js'}, | ||
'./bin/:systemName-:controller-:action': {template: 'bin-action'}, | ||
@@ -123,0 +131,0 @@ // Creates a folder at a static path |
{ | ||
"name": "sails-generate-bouquet-scenario", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "sails generate bouquet-Scenario", | ||
@@ -5,0 +5,0 @@ "main": "Generator.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
21018
17
262
1