create-hua 1.0.0
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/README.md +25 -0
- package/bin/create-hua.js +34 -0
- package/package.json +37 -0
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# create-hua
|
|
2
|
+
|
|
3
|
+
Create HUA-UX projects with ease.
|
|
4
|
+
|
|
5
|
+
This is an alias for [`create-hua-ux`](https://www.npmjs.com/package/create-hua-ux).
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx create-hua my-app
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Or use the full package name:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npx create-hua-ux my-app
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Documentation
|
|
20
|
+
|
|
21
|
+
Visit [https://hua-labs.com/docs](https://hua-labs.com/docs) for full documentation.
|
|
22
|
+
|
|
23
|
+
## License
|
|
24
|
+
|
|
25
|
+
MIT
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* create-hua
|
|
5
|
+
*
|
|
6
|
+
* This is an alias for create-hua-ux.
|
|
7
|
+
* Usage: npx create-hua [project-name]
|
|
8
|
+
*
|
|
9
|
+
* For more options, see: https://github.com/HUA-Labs/hua
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
const { spawn } = require('child_process');
|
|
13
|
+
const path = require('path');
|
|
14
|
+
|
|
15
|
+
// Pass all arguments to create-hua-ux
|
|
16
|
+
const args = process.argv.slice(2);
|
|
17
|
+
|
|
18
|
+
console.log('\n🚀 create-hua - HUA-UX Project Generator\n');
|
|
19
|
+
|
|
20
|
+
// Try to run create-hua-ux directly via npx
|
|
21
|
+
const child = spawn('npx', ['create-hua-ux@latest', ...args], {
|
|
22
|
+
stdio: 'inherit',
|
|
23
|
+
shell: true
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
child.on('error', (err) => {
|
|
27
|
+
console.error('Failed to start create-hua-ux:', err.message);
|
|
28
|
+
console.log('\nTry running directly: npx create-hua-ux@latest');
|
|
29
|
+
process.exit(1);
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
child.on('close', (code) => {
|
|
33
|
+
process.exit(code || 0);
|
|
34
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "create-hua",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Create HUA-UX projects with ease. Alias for create-hua-ux.",
|
|
5
|
+
"bin": {
|
|
6
|
+
"create-hua": "./bin/create-hua.js"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
"bin"
|
|
10
|
+
],
|
|
11
|
+
"keywords": [
|
|
12
|
+
"hua",
|
|
13
|
+
"hua-labs",
|
|
14
|
+
"hua-ux",
|
|
15
|
+
"create-hua",
|
|
16
|
+
"scaffolding",
|
|
17
|
+
"cli",
|
|
18
|
+
"create-app",
|
|
19
|
+
"boilerplate",
|
|
20
|
+
"nextjs",
|
|
21
|
+
"react",
|
|
22
|
+
"typescript",
|
|
23
|
+
"starter"
|
|
24
|
+
],
|
|
25
|
+
"author": "HUA Labs",
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "https://github.com/HUA-Labs/HUA-Labs-public.git"
|
|
30
|
+
},
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=18.0.0"
|
|
33
|
+
},
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public"
|
|
36
|
+
}
|
|
37
|
+
}
|