@webflow/webflow-cli 1.8.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -116,7 +116,7 @@ WEBFLOW_SITE_API_TOKEN=${a}`;await rs(u,l)}catch(u){console.error("Error creatin
|
|
|
116
116
|
Get started with the following commands:`),console.log(` cd ${e}`),console.log(" npm install / yarn install / pnpm install"),console.log(` npm run dev
|
|
117
117
|
|
|
118
118
|
`),console.log("Run the following command to sync Webflow components when they update:"),console.log(` webflow devlink sync
|
|
119
|
-
`),console.log("--- ")};var CA=e=>{let t=e.command("cloud").description("Create and manage Webflow Cloud projects");t.command("create").description("Create a new Webflow Cloud project").argument("<name>","Project name").option("-f, --framework <framework>","Framework to use","next").action(async(r,n)=>{let{framework:i}=n;if(!(await Yf()).find(s=>s===i)){console.error(`Framework ${i} not found`);return}await U1(r,i,i)}),t.command("list").description("Get list of project templates that can be used for `init`").action(async()=>{let r=await Yf();console.log("Available project templates:"),r.length>0?r.forEach(n=>console.log(`- ${n}`)):console.log("No templates found.")}),t.command("init").description("Bootstrap a new Webflow Cloud project").action(async()=>{let r=await Yf(),n=await to.prompt([{type:"input",name:"projectName",message:"What would you like to name your project?",validate:i=>i.trim()===""?"Project name cannot be empty":!0},{type:"list",name:"scaffoldName",message:"Which framework would you like to use?",choices:r,default:"nextjs"},{type:"input",name:"mountPath",message:"What path should your app be mounted at? (e.g., /app)",default:"/app",validate:i=>i.match(/^\/[^/].+$/)?!0:'Mount path must be "/" followed by one or more characters'}]);await U1(n.projectName,n.mountPath,n.scaffoldName)})};var SA={name:"@webflow/webflow-cli",version:"1.8.
|
|
119
|
+
`),console.log("--- ")};var CA=e=>{let t=e.command("cloud").description("Create and manage Webflow Cloud projects");t.command("create").description("Create a new Webflow Cloud project").argument("<name>","Project name").option("-f, --framework <framework>","Framework to use","next").action(async(r,n)=>{let{framework:i}=n;if(!(await Yf()).find(s=>s===i)){console.error(`Framework ${i} not found`);return}await U1(r,i,i)}),t.command("list").description("Get list of project templates that can be used for `init`").action(async()=>{let r=await Yf();console.log("Available project templates:"),r.length>0?r.forEach(n=>console.log(`- ${n}`)):console.log("No templates found.")}),t.command("init").description("Bootstrap a new Webflow Cloud project").action(async()=>{let r=await Yf(),n=await to.prompt([{type:"input",name:"projectName",message:"What would you like to name your project?",validate:i=>i.trim()===""?"Project name cannot be empty":!0},{type:"list",name:"scaffoldName",message:"Which framework would you like to use?",choices:r,default:"nextjs"},{type:"input",name:"mountPath",message:"What path should your app be mounted at? (e.g., /app)",default:"/app",validate:i=>i.match(/^\/[^/].+$/)?!0:'Mount path must be "/" followed by one or more characters'}]);await U1(n.projectName,n.mountPath,n.scaffoldName)})};var SA={name:"@webflow/webflow-cli",version:"1.8.1",license:"MIT",bin:{webflow:"./dist/index.js"},scripts:{build:"rm -fr ./dist; tsup",dev:"tsup",lint:"eslint .",test:"jest tests --ci","test:local":"jest tests"},files:["CHANGELOG.md","dist/**/*"],publishConfig:{access:"public"},dependencies:{"@babel/preset-env":"^7.26.9","@babel/preset-react":"^7.26.3","@babel/preset-typescript":"^7.27.0","@module-federation/enhanced":"^0.13.1","@webflow/data-types":"*",ajv:"^8.17.1",archiver:"^5.3.1","babel-loader":"^10.0.0",commander:"^10.0.0",cosmiconfig:"^8.2.0","css-loader":"^7.1.2","css-tree":"^2.3.1",dotenv:"^16.0.3","fast-glob":"^3.3.3","form-data":"4.0.0",inquirer:"^9.1.4",md5:"^2.2.1",memfs:"^4.17.0","mime-types":"^2.1.35","mini-css-extract-plugin":"^2.9.2","node-fetch":"^2.6.7",open:"^8.4.2",prettier:"^2.7.1","serve-handler":"^6.1.5",unionfs:"^4.5.4","webflow-api":"^3.1.1",webpack:"^5.99.7","webpack-merge":"^6.0.1"},devDependencies:{"@types/archiver":"^5.3.2","@types/css-tree":"^2.3.1","@types/express":"^4.17.13","@types/inquirer":"^9.0.8","@types/jest":"^29.2.3","@types/md5":"^2.3.2","@types/mime-types":"^2.1.4","@types/nock":"^8.0.33","@types/node":"^18.16.0","@types/node-fetch":"^2.6.3","@types/prettier":"^2.7.1","@types/serve-handler":"^6.1.1","eslint-config-custom":"*",express:"^4.18.1",jest:"^29.3.1",nock:"13.3.1","ts-jest":"^29.0.3","ts-node":"^10.9.1",tsconfig:"*",tsup:"^8.4.0",typescript:"^4.9.3"},engines:{node:">=18.16.0"}};var bo=new FA.Command,Ume=SA.version,zme=new os("@webflow/webflow-cli");bo.name("webflow").description("Webflow CLI").version(Ume,"--version","output the current version").hook("postAction",()=>{let e=zme.checkForUpdates();e&&L.warn(e)});gb(bo);P9(bo);CA(bo);process.env.BUILD_ENV==="development"&&aA(bo);bo.parse();
|
|
120
120
|
/*! Bundled license information:
|
|
121
121
|
|
|
122
122
|
safe-buffer/index.js:
|