juxscript 1.0.52 → 1.0.54

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/bin/cli.js +10 -24
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -68,27 +68,11 @@ if (command === 'create') {
68
68
  execSync('npx jux init', { stdio: 'inherit' });
69
69
 
70
70
  console.log(`\nšŸ“ Creating .gitignore...`);
71
- fs.writeFileSync('.gitignore', `.jux/\nnode_modules/\n.DS_Store\n.env\n*.log\n`); // āœ… Changed jux-dist/ to .jux/
71
+ fs.writeFileSync('.gitignore', `.jux/\nnode_modules/\n.DS_Store\n.env\n*.log\n`);
72
72
  console.log(` āœ“ .gitignore created`);
73
73
 
74
- // āœ… Copy juxconfig.example.js from the package
75
- const packageRoot = path.resolve(__dirname, '..');
76
- const configExampleSrc = path.join(packageRoot, 'juxconfig.example.js');
77
-
78
- if (fs.existsSync(configExampleSrc)) {
79
- // Copy as juxconfig.js (working config)
80
- const configDest = path.join(process.cwd(), 'juxconfig.js');
81
- if (!fs.existsSync(configDest)) {
82
- fs.copyFileSync(configExampleSrc, configDest);
83
- console.log('+ Created juxconfig.js');
84
- }
85
-
86
- const configExampleDest = path.join(process.cwd(), 'juxconfig.example.js');
87
- if (!fs.existsSync(configExampleDest)) {
88
- fs.copyFileSync(configExampleSrc, configExampleDest);
89
- console.log('+ Created juxconfig.example.js (reference)');
90
- }
91
- }
74
+ // āŒ REMOVE: Don't copy example file during create
75
+ // The working config is enough, users can view example on GitHub/npm
92
76
 
93
77
  console.log(`
94
78
  ╔═══════════════════════════════════════════════════════╗
@@ -453,11 +437,12 @@ jux.paragraph('counter')
453
437
  console.log('+ Created juxconfig.js');
454
438
  }
455
439
 
456
- const configExampleDest = path.join(PATHS.projectRoot, 'juxconfig.example.js');
457
- if (!fs.existsSync(configExampleDest)) {
458
- fs.copyFileSync(configExampleSrc, configExampleDest);
459
- console.log('+ Created juxconfig.example.js (reference)');
460
- }
440
+ // āŒ REMOVE: Don't copy example - it's available in node_modules
441
+ // const configExampleDest = path.join(PATHS.projectRoot, 'juxconfig.example.js');
442
+ // if (!fs.existsSync(configExampleDest)) {
443
+ // fs.copyFileSync(configExampleSrc, configExampleDest);
444
+ // console.log('+ Created juxconfig.example.js (reference)');
445
+ // }
461
446
  }
462
447
 
463
448
  console.log('\nāœ… JUX project initialized!\n');
@@ -469,6 +454,7 @@ jux.paragraph('counter')
469
454
  console.log('Next steps:');
470
455
  console.log(' npm install # Install dependencies');
471
456
  console.log(' npm run dev # Start dev server\n');
457
+ console.log('šŸ“– Config reference: node_modules/juxscript/juxconfig.example.js\n');
472
458
 
473
459
  } else if (command === 'build') {
474
460
  // āœ… Run bootstrap before build
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "juxscript",
3
- "version": "1.0.52",
3
+ "version": "1.0.54",
4
4
  "type": "module",
5
5
  "description": "A JavaScript UX authorship platform",
6
6
  "main": "lib/jux.js",