create-exam-cli 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.
Files changed (2) hide show
  1. package/index.js +15 -0
  2. package/package.json +30 -0
package/index.js ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env node
2
+
3
+ const inquirer = require("inquirer")
4
+ const fs = require("fs-extra")
5
+ const path = require("path")
6
+
7
+ console.log("🚀 Creating your project...")
8
+
9
+ const templatePath = path.join(__dirname, "template")
10
+
11
+ const targetPath = path.join(process.cwd(), "my-app")
12
+
13
+ fs.copySync(templatePath, targetPath)
14
+
15
+ console.log("✅ Project created successfully at:", targetPath)
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "create-exam-cli",
3
+ "version": "1.0.0",
4
+ "description": "CLI tool to generate exam/project templates",
5
+ "main": "index.js",
6
+ "bin": {
7
+ "create-exam-cli": "./index.js"
8
+ },
9
+ "scripts": {
10
+ "test": "echo \"No tests specified\" && exit 1"
11
+ },
12
+ "keywords": [
13
+ "cli",
14
+ "generator",
15
+ "exam",
16
+ "templates",
17
+ "node"
18
+ ],
19
+ "author": "",
20
+ "license": "ISC",
21
+ "dependencies": {
22
+ "chalk": "^4.1.2",
23
+ "fs-extra": "^11.3.5",
24
+ "inquirer": "^13.4.3"
25
+ },
26
+ "files": [
27
+ "index.js",
28
+ "templates"
29
+ ]
30
+ }