juxscript 1.0.28 → 1.0.30
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/bin/cli.js +0 -19
- package/machinery/compiler.js +3 -0
- package/package.json +1 -1
- package/presets/{grid.jux → default/layout.jux} +1 -1
- package/presets/index.jux +1 -1
- package/presets/styles/base.css +0 -1380
- package/presets/styles/notion.css +0 -127
- /package/presets/{styles → default}/layout.css +0 -0
package/bin/cli.js
CHANGED
|
@@ -233,20 +233,6 @@ async function buildProject(isServe = false) {
|
|
|
233
233
|
// Create structure
|
|
234
234
|
fs.mkdirSync(juxDir, { recursive: true });
|
|
235
235
|
|
|
236
|
-
// Copy hey.jux as the starter template
|
|
237
|
-
const heyJuxSrc = path.join(PATHS.packageRoot, 'presets', 'hey.jux');
|
|
238
|
-
const heyJuxDest = path.join(juxDir, 'index.jux');
|
|
239
|
-
|
|
240
|
-
if (fs.existsSync(heyJuxSrc)) {
|
|
241
|
-
fs.copyFileSync(heyJuxSrc, heyJuxDest);
|
|
242
|
-
console.log('+ Created jux/index.jux from hey.jux template');
|
|
243
|
-
} else {
|
|
244
|
-
console.warn('⚠️ hey.jux template not found, creating basic file');
|
|
245
|
-
const basicContent = `import { jux } from 'juxscript';\n\njux.heading('welcome').text('Welcome to JUX').render('#app');`;
|
|
246
|
-
fs.writeFileSync(heyJuxDest, basicContent);
|
|
247
|
-
console.log('+ Created jux/index.jux');
|
|
248
|
-
}
|
|
249
|
-
|
|
250
236
|
// Copy entire presets folder to jux/presets/
|
|
251
237
|
const presetsSrc = path.join(PATHS.packageRoot, 'presets');
|
|
252
238
|
const presetsDest = path.join(juxDir, 'presets');
|
|
@@ -261,11 +247,6 @@ async function buildProject(isServe = false) {
|
|
|
261
247
|
const srcPath = path.join(src, entry.name);
|
|
262
248
|
const destPath = path.join(dest, entry.name);
|
|
263
249
|
|
|
264
|
-
// Skip hey.jux since we already copied it to index.jux
|
|
265
|
-
if (entry.isFile() && entry.name === 'hey.jux') {
|
|
266
|
-
continue;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
250
|
if (entry.isDirectory()) {
|
|
270
251
|
fs.mkdirSync(destPath, { recursive: true });
|
|
271
252
|
copyRecursive(srcPath, destPath);
|
package/machinery/compiler.js
CHANGED
|
@@ -662,6 +662,9 @@ export function generateIndexHtml(distDir, routes, mainJsFilename = 'main.js') {
|
|
|
662
662
|
<title>Jux Application</title>
|
|
663
663
|
</head>
|
|
664
664
|
<body data-theme="">
|
|
665
|
+
<nav style="padding: 20px; background: #f5f5f5; border-bottom: 2px solid #ddd;">
|
|
666
|
+
${navLinks}
|
|
667
|
+
</nav>
|
|
665
668
|
<!-- App container - router renders here -->
|
|
666
669
|
<div id="app"></div>
|
|
667
670
|
${importMapScript}
|
package/package.json
CHANGED
package/presets/index.jux
CHANGED