codeweaver 1.0.9 → 1.0.11
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 +8 -1
- package/command.js +17 -0
- package/package.json +15 -3
- package/tsconfig.json +1 -1
package/README.md
CHANGED
|
@@ -28,9 +28,16 @@ To get started with the project, follow these steps:
|
|
|
28
28
|
|
|
29
29
|
1. **Clone the repository**:
|
|
30
30
|
|
|
31
|
+
You can either use:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npx create-codeweaver-app
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
or manually run:
|
|
38
|
+
|
|
31
39
|
```bash
|
|
32
40
|
git clone https://github.com/@js-code-crafter/codeweaver.git
|
|
33
|
-
cd codeweaver
|
|
34
41
|
```
|
|
35
42
|
|
|
36
43
|
2. **Install dependencies**:
|
package/command.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { exec } = require("child_process");
|
|
4
|
+
const path = require("path");
|
|
5
|
+
|
|
6
|
+
const repoUrl = "https://github.com/js-code-crafter/codeweaver.git";
|
|
7
|
+
const projectName = process.argv[2] || "codeweaver"; // Allow project name as an argument
|
|
8
|
+
|
|
9
|
+
exec(`git clone ${repoUrl} ${projectName}`, (error) => {
|
|
10
|
+
if (error) {
|
|
11
|
+
console.error(`Error cloning repository: ${error.message}`);
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
console.log(
|
|
15
|
+
`Successfully cloned codeweaver into ${path.resolve(projectName)}`
|
|
16
|
+
);
|
|
17
|
+
});
|
package/package.json
CHANGED
|
@@ -1,19 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeweaver",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"main": "src/app.ts",
|
|
5
|
+
"bin": {
|
|
6
|
+
"create-codeweaver-app": "./command.js"
|
|
7
|
+
},
|
|
5
8
|
"scripts": {
|
|
6
9
|
"start": "nodemon src/app.ts",
|
|
7
10
|
"build": "tsc",
|
|
8
11
|
"serve": "node dist/app.js"
|
|
9
12
|
},
|
|
10
13
|
"keywords": [
|
|
11
|
-
"
|
|
14
|
+
"codeweaver",
|
|
15
|
+
"node framework",
|
|
16
|
+
"js framework",
|
|
17
|
+
"javascript",
|
|
18
|
+
"typescript",
|
|
19
|
+
"code",
|
|
20
|
+
"weaver",
|
|
12
21
|
"framework",
|
|
13
22
|
"boilerplate",
|
|
14
23
|
"bootstrap",
|
|
15
24
|
"lightweight",
|
|
16
|
-
"nested routers"
|
|
25
|
+
"nested routers",
|
|
26
|
+
"decorator",
|
|
27
|
+
"swagger",
|
|
28
|
+
"zod"
|
|
17
29
|
],
|
|
18
30
|
"author": "Ehsan Afzali",
|
|
19
31
|
"license": "MIT",
|