vextra 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -50,7 +50,7 @@ globalStyle('.dark', {
50
50
  },
51
51
  });
52
52
  `;d.command("init").description("Initialize project and configure component paths").action(async()=>{console.log((0,o.blue)(`
53
- Initializing Vextra UI...`));let e=await(0,u.default)([{type:"text",name:"componentsPath",message:"Where would you like to store your components?",initial:"components/ui"},{type:"text",name:"themePath",message:"Where would you like to store the theme file (vars.css.ts)?",initial:"styles/vars.css.ts"}]);(!e.componentsPath||!e.themePath)&&(console.log((0,o.red)(`
53
+ Initializing Vextra UI...`));let e=await(0,u.default)([{type:"text",name:"componentsPath",message:"Where would you like to store your components?",initial:"src/components/ui"},{type:"text",name:"themePath",message:"Where would you like to store the theme file (vars.css.ts)?",initial:"src/styles/vars.css.ts"}]);(!e.componentsPath||!e.themePath)&&(console.log((0,o.red)(`
54
54
  \u2716 Initialization cancelled.`)),process.exit(0));let n={components:e.componentsPath,theme:e.themePath},t=l.default.join(process.cwd(),"vextra.json");await a.default.writeFile(t,JSON.stringify(n,null,2),"utf-8"),console.log((0,o.green)("\u2713 Configuration saved to vextra.json"));let i=l.default.join(process.cwd(),e.themePath),r=l.default.dirname(i);await a.default.mkdir(r,{recursive:!0}),await a.default.writeFile(i,C,"utf-8"),console.log((0,o.green)(`\u2713 Theme file created at ${e.themePath}`)),console.log((0,o.blue)(`
55
55
  Initialization complete! You can now run "vextra add" to install components.`))});async function I(e){console.log((0,o.blue)(`
56
56
  Adding component: ${e}...`));try{let n=l.default.join(process.cwd(),"vextra.json"),t;try{let c=await a.default.readFile(n,"utf-8");t=JSON.parse(c)}catch{console.log((0,o.red)(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vextra",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "CLI for Vextra UI",
5
5
  "main": "dist/index.js",
6
6
  "bin": {