create-startup
Advanced tools
Comparing version 0.0.7 to 0.0.8
{ | ||
"name": "create-startup", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -1,2 +0,2 @@ | ||
import{execSync as r}from"child_process";import{existsSync as s}from"fs";import{isAbsolute as p,resolve as o}from"path";function l(t){t.setGenerator("startup",{description:"Create a startup",prompts:[{name:"destination",type:"input",message:"Where would you like to create your startup?",default:"my-startup",validate:e=>typeof e!="string"?"Please enter a valid path":p(e)?"Please enter a relative path":s(o(process.cwd(),e))?`${e} already exists, please enter a new path`:!0}],actions:e=>{let n=r("node --version").toString().trim(),i=r("pnpm --version").toString().trim();return[`Node.js ${n}, pnpm v${i}`,{type:"addMany",templateFiles:["template/**"],globOptions:{dot:!0},destination:o(process.cwd(),"{{destination}}")},t.renderString("Next step: cd {{destination}} && pnpm i",e)]}})}export{l as default}; | ||
import{execSync as r}from"child_process";import{existsSync as s}from"fs";import{isAbsolute as p,resolve as o}from"path";function u(t){t.setGenerator("turbo",{description:"Create a Turbo startup",prompts:[{name:"destination",type:"input",message:"Where would you like to create your startup?",default:"my-startup",validate:e=>typeof e!="string"?"Please enter a valid path":p(e)?"Please enter a relative path":s(o(process.cwd(),e))?`${e} already exists, please enter a new path`:!0}],actions:e=>{let n=r("node --version").toString().trim(),i=r("pnpm --version").toString().trim();return[`Node.js ${n}, pnpm v${i}`,{type:"addMany",templateFiles:["turbo-template/**"],globOptions:{dot:!0},destination:o(process.cwd(),"{{destination}}")},t.renderString("Next step: cd {{destination}} && pnpm i",e)]}})}export{u as default}; | ||
//# sourceMappingURL=plopfile.js.map |
Sorry, the diff of this file is not supported yet
4093
15
54