codeweaver 1.0.9 → 1.0.10

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 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,15 @@
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(`Successfully cloned codeweaver into ${path.resolve(projectName)}`);
15
+ });
package/package.json CHANGED
@@ -1,19 +1,31 @@
1
1
  {
2
2
  "name": "codeweaver",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
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
- "lightweight framework",
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",
package/tsconfig.json CHANGED
@@ -10,6 +10,6 @@
10
10
  "experimentalDecorators": true,
11
11
  "emitDecoratorMetadata": true
12
12
  },
13
- "include": ["src/**/*.ts", "src/**/*.js"],
13
+ "include": ["src/**/*.ts", "src/**/*.js", "command.js"],
14
14
  "exclude": ["node_modules"]
15
15
  }