appc-cli-expressjs
Advanced tools
Comparing version 0.0.11 to 0.0.12
{ | ||
"name": "appc-cli-expressjs", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "create an express server project", | ||
@@ -5,0 +5,0 @@ "main": "appc.js", |
@@ -14,18 +14,13 @@ var path = require('path'); | ||
function _new(appc, args, opts, callback) { | ||
var workspace = process.cwd(); | ||
var appDir = opts.workspace ? path.join(opts.workspace, 'server') : | ||
path.join(process.cwd(), opts.name); | ||
// translate opts back to arguments since titanium can only be | ||
// invoked vi CLI, there's no module interface | ||
Object.keys(opts).forEach(function(opt) { | ||
if (opt === 'workspace') { | ||
workspace = path.resolve(opts[opt]); | ||
return; | ||
} | ||
}); | ||
// generate templates | ||
appc.generate.copyTemplates(path.join(__dirname,'..','templates'), appDir, | ||
opts.name, opts.id, opts.author, opts, callback); | ||
var appDir = path.join(workspace, 'server'); | ||
// generate templates | ||
appc.generate.copyTemplates(path.join(__dirname,'..','templates'),appDir,opts.name,opts.id,opts.author,opts,callback); | ||
appc.core.writeManifest(workspace, { expressjs: appDir }); | ||
// write manifest | ||
if (opts.workspace) { | ||
appc.core.writeManifest(opts.workspace, { expressjs: appDir }); | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1
9658
259