zyket 1.2.5 → 1.2.6

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 (3) hide show
  1. package/README.md +3 -4
  2. package/bin/cli.js +30 -12
  3. package/package.json +2 -1
package/README.md CHANGED
@@ -18,12 +18,9 @@ cd my-zyket-app
18
18
  # Install zyket
19
19
  npm install zyket
20
20
 
21
- # Initialize the project
21
+ # Initialize the project (one command!)
22
22
  npx zyket init
23
23
 
24
- # Install dependencies (if not already done)
25
- npm install
26
-
27
24
  # Start your application
28
25
  npm run dev
29
26
  ```
@@ -34,6 +31,8 @@ The `init` command will:
34
31
  - Create a `package.json` if one doesn't exist
35
32
  - Set up your project ready to run
36
33
 
34
+ You can also run `npx zyket` without arguments for an interactive menu with more options.
35
+
37
36
  ### Manual Setup (Alternative)
38
37
 
39
38
  If you prefer to set up manually, install Zyket in your project:
package/bin/cli.js CHANGED
@@ -9,17 +9,35 @@ const templateManager = new TemplateManager();
9
9
  (async () => {
10
10
  process.stdout.write("\u001b[2J\u001b[0;0H");
11
11
  await templateManager.boot();
12
- const response = await prompts({
13
- type: 'select',
14
- name: 'value',
15
- message: '[ZYKET] What do you want to do?',
16
- choices: [
17
- { title: 'Initialize Project', value: 'init-project', description: 'Set up a new Zyket project', disabled: false },
18
- { title: 'Install Template', value: 'install-template', description: 'Install a new template', disabled: false },
19
- /*{ title: 'Remove Template', value: 'remove-template', description: 'Remove an existing template', disabled: false },*/
20
- ],
21
- initial: 0
22
- });
12
+
13
+ // Check for direct command (e.g., npx zyket init)
14
+ const args = process.argv.slice(2);
15
+ const directCommand = args[0];
16
+
17
+ let actionToRun = null;
18
+
19
+ if (directCommand === 'init') {
20
+ actionToRun = 'init-project';
21
+ } else {
22
+ // Show interactive menu
23
+ const response = await prompts({
24
+ type: 'select',
25
+ name: 'value',
26
+ message: '[ZYKET] What do you want to do?',
27
+ choices: [
28
+ { title: 'Initialize Project', value: 'init-project', description: 'Set up a new Zyket project', disabled: false },
29
+ { title: 'Install Template', value: 'install-template', description: 'Install a new template', disabled: false },
30
+ /*{ title: 'Remove Template', value: 'remove-template', description: 'Remove an existing template', disabled: false },*/
31
+ ],
32
+ initial: 0
33
+ });
34
+ actionToRun = response.value;
35
+ }
36
+
37
+ if (!actionToRun) {
38
+ console.log('[ZYKET] No action selected. Exiting.');
39
+ return;
40
+ }
23
41
 
24
42
  const actions = {
25
43
  'init-project': async () => {
@@ -116,5 +134,5 @@ kernel.boot().then(() => {
116
134
  }*/
117
135
  };
118
136
 
119
- await actions[response.value]();
137
+ await actions[actionToRun]();
120
138
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zyket",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -17,6 +17,7 @@
17
17
  "@tailwindcss/vite": "^4.2.2",
18
18
  "@vitejs/plugin-react": "^6.0.1",
19
19
  "better-auth": "^1.5.6",
20
+ "better-sqlite3": "^12.8.0",
20
21
  "bullmq": "^5.71.0",
21
22
  "colors": "^1.4.0",
22
23
  "cors": "^2.8.6",