create-nexus-app
Advanced tools
Comparing version 1.1.2 to 1.1.3
40
nexus.js
#!/usr/bin/env node | ||
const degit = require('degit'); | ||
const { execSync } = require("child_process"); | ||
const { exec } = require("child_process"); | ||
@@ -47,12 +47,16 @@ async function main(){ | ||
emitter.clone(`${answers.projectName}`).then(() => { | ||
console.log('done'); | ||
console.log('Dashboard repository cloned successfully!'); | ||
}); | ||
execSync(`npm i`, { | ||
stdio: "inherit", | ||
exec("npm i", (error) => { | ||
if (error) { | ||
console.error("Error installing dependencies:", error); | ||
return; | ||
} | ||
console.log("Dependencies installed successfully."); | ||
}); | ||
console.log("Dashboard repository cloned successfully!"); | ||
} | ||
catch(error){ | ||
console.error("Error creating blank template",error); | ||
console.error("Error creating dashboard",error); | ||
} | ||
@@ -69,11 +73,14 @@ } | ||
emitter.clone(`${answers.projectName}`).then(() => { | ||
console.log('done'); | ||
console.log("Landing Page repository cloned successfully!") | ||
}); | ||
execSync(`npm i`, { | ||
stdio: "inherit", | ||
exec("npm i", (error) => { | ||
if (error) { | ||
console.error("Error installing dependencies:", error); | ||
return; | ||
} | ||
console.log("Dependencies installed successfully."); | ||
}); | ||
console.log("Landing Page repository cloned successfully!"); | ||
} | ||
@@ -94,10 +101,13 @@ catch(error){ | ||
emitter.clone(`${answers.projectName}`).then(() => { | ||
console.log('done'); | ||
console.log('Blank Template repository cloned successfully!"'); | ||
}); | ||
execSync(`npm i`, { | ||
stdio: "inherit", | ||
exec("npm i", (error) => { | ||
if (error) { | ||
console.error("Error installing dependencies:", error); | ||
return; | ||
} | ||
console.log("Dependencies installed successfully."); | ||
}); | ||
console.log("Blank Template repository cloned successfully!"); | ||
@@ -104,0 +114,0 @@ } |
@@ -8,3 +8,3 @@ { | ||
"name": "create-nexus-app", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"bin": { | ||
@@ -11,0 +11,0 @@ "create-nexus-app": "./nexus.js" |
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
3528
103