frontend-hamroun 1.2.68 → 1.2.69

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 CHANGED
@@ -149,13 +149,15 @@ async function chooseTemplate() {
149
149
  'basic-app': '🚀',
150
150
  'ssr-template': '🌐',
151
151
  'fullstack-app': '⚡',
152
+ 'go-wasm-app': '🔄',
152
153
  };
153
154
 
154
155
  // Detailed descriptions
155
156
  const templateDescriptions = {
156
157
  'basic-app': 'Single-page application with just the essentials. Perfect for learning the framework or building simple apps.',
157
158
  'ssr-template': 'Server-side rendered application with hydration. Optimized for SEO and fast initial load.',
158
- 'fullstack-app': 'Complete solution with API routes, authentication, and database integration ready to go.'
159
+ 'fullstack-app': 'Complete solution with API routes, authentication, and database integration ready to go.',
160
+ 'go-wasm-app': 'WebAssembly integration with Go for high-performance computing in the browser and Node.js.'
159
161
  };
160
162
 
161
163
  console.log(boxen(
@@ -253,6 +255,23 @@ async function chooseTemplate() {
253
255
  '• Full production applications',
254
256
  '• Apps needing authentication',
255
257
  '• Projects requiring database integration'
258
+ ],
259
+ 'go-wasm-app': [
260
+ `${chalk.bold('Go WASM App Template')} ${templateIcons['go-wasm-app'] || '🔄'}`,
261
+ '',
262
+ `${chalk.dim('WebAssembly integration with Go programming language.')}`,
263
+ '',
264
+ `${chalk.yellow('Features:')}`,
265
+ '• Go + WebAssembly integration',
266
+ '• High-performance computation in browser',
267
+ '• Server-side WASM processing',
268
+ '• Shared code between Go and JavaScript',
269
+ '• Optimized build pipeline',
270
+ '',
271
+ `${chalk.yellow('Best for:')}`,
272
+ '• Computation-heavy applications',
273
+ '• Projects requiring Go libraries',
274
+ '• Performance-critical features'
256
275
  ]
257
276
  }[answers.template] || ['No detailed information available for this template'];
258
277
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frontend-hamroun",
3
- "version": "1.2.68",
3
+ "version": "1.2.69",
4
4
  "description": "A lightweight full-stack JavaScript framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "go-wasm-app",
3
+ "version": "1.0.0",
4
+ "description": "WebAssembly integration with Go for Frontend Hamroun",
5
+ "type": "module",
6
+ "main": "index.js",
7
+ "scripts": {
8
+ "build:wasm": "node build-wasm.js",
9
+ "dev": "npm run build:wasm && vite",
10
+ "build": "npm run build:wasm && vite build",
11
+ "serve": "vite preview",
12
+ "test": "echo \"Error: no test specified\" && exit 1"
13
+ },
14
+ "dependencies": {
15
+ "frontend-hamroun": "^1.2.68"
16
+ },
17
+ "devDependencies": {
18
+ "vite": "^4.4.9"
19
+ }
20
+ }
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Frontend Hamroun + Go WebAssembly</title>
7
+ <link rel="stylesheet" href="/styles.css">
8
+ </head>
9
+ <body>
10
+ <div id="root"></div>
11
+ <script type="module" src="/src/main.jsx"></script>
12
+ </body>
13
+ </html>
@@ -0,0 +1,28 @@
1
+ import { defineConfig } from 'vite';
2
+ import { resolve } from 'path';
3
+
4
+ export default defineConfig({
5
+ // Configure JSX
6
+ esbuild: {
7
+ jsxFactory: 'jsx',
8
+ jsxFragment: 'Fragment'
9
+ },
10
+
11
+ // Configure build
12
+ build: {
13
+ outDir: 'dist',
14
+ emptyOutDir: true,
15
+ rollupOptions: {
16
+ input: {
17
+ main: resolve(__dirname, 'public/index.html')
18
+ }
19
+ }
20
+ },
21
+
22
+ // Resolve aliases
23
+ resolve: {
24
+ alias: {
25
+ '@': resolve(__dirname, 'src')
26
+ }
27
+ }
28
+ });