create-akan-workspace 1.0.19 → 2.0.0-beta.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/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "sourceType": "module",
3
3
  "name": "create-akan-workspace",
4
- "version": "1.0.19",
4
+ "version": "2.0.0-beta.0",
5
5
  "bin": {
6
- "create-akan-workspace": "cjs/index.js"
6
+ "create-akan-workspace": "index.js"
7
7
  },
8
8
  "publishConfig": {
9
9
  "access": "public"
@@ -13,20 +13,15 @@
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "https://github.com/akan-team/akanjs.git",
16
- "directory": "pkgs/@akanjs/cli"
16
+ "directory": "pkgs/akanjs/cli"
17
17
  },
18
18
  "main": "./index.js",
19
- "engines": {
20
- "node": ">=20"
21
- },
22
19
  "dependencies": {
23
- "commander": "^14.0.2"
20
+ "commander": "^14.0.3"
21
+ },
22
+ "type": "module",
23
+ "engines": {
24
+ "bun": ">=1.3.13"
24
25
  },
25
- "exports": {
26
- ".": {
27
- "require": "./cjs/index.js",
28
- "import": "./esm/index.js",
29
- "types": "./index.d.ts"
30
- }
31
- }
32
- }
26
+ "devDependencies": {}
27
+ }
package/README.md DELETED
@@ -1,103 +0,0 @@
1
- # 🚀 Create Akan Workspace
2
-
3
- The quickest way to bootstrap a new Akan.js workspace with a single command. This package provides a streamlined entry point that automatically installs the Akan.js CLI and creates your workspace in one step.
4
-
5
- ## ⚡ Get Started
6
-
7
- The fastest way to create a new Akan.js workspace:
8
-
9
- ```bash
10
- npx create-akan-workspace
11
- ```
12
-
13
- That's it! This single command will:
14
-
15
- 1. Install the latest `@akanjs/cli` globally
16
- 2. Run the interactive workspace creation wizard
17
- 3. Set up your development environment
18
-
19
- ### Quick Setup Examples
20
-
21
- ```bash
22
- # Interactive mode (recommended)
23
- npx create-akan-workspace
24
-
25
- # Specify organization name
26
- npx create-akan-workspace "my-company"
27
-
28
- # Full setup with options
29
- npx create-akan-workspace "my-company" --app "web-app" --dir "./projects"
30
- ```
31
-
32
- ## 📋 Options
33
-
34
- | Option | Description | Example |
35
- | ------------------ | ------------------------------ | ------------------ |
36
- | `[org]` | Organization name (positional) | `my-company` |
37
- | `-a, --app <name>` | Initial application name | `--app web-app` |
38
- | `-d, --dir <path>` | Target directory | `--dir ./projects` |
39
-
40
- ## 🎯 What Happens Next
41
-
42
- After running `create-akan-workspace`, you'll have:
43
-
44
- 1. **✅ Akan.js CLI installed globally** - Access to all `akan` commands
45
- 2. **🏗️ Workspace created** - Organized project structure
46
- 3. **📱 Initial application** - Ready-to-run starter app
47
- 4. **🔧 Development environment** - Configured tooling and dependencies
48
-
49
- ### Start developing immediately:
50
-
51
- ```bash
52
- cd <workspace-name>
53
- akan start <app-name> --open
54
- ```
55
-
56
- Navigate to http://localhost:4200 to see your app running!
57
-
58
- ## 🛠️ Requirements
59
-
60
- - **Node.js** >=20.x
61
- - **pnpm** >=10.x
62
-
63
- ## 🔗 What's Next?
64
-
65
- After creating your workspace, explore the full power of Akan.js CLI:
66
-
67
- ```bash
68
- # AI-powered module creation
69
- akan create-module
70
-
71
- # Set up AI assistant
72
- akan set-llm
73
-
74
- # Build for production
75
- akan build <app-name>
76
- ```
77
-
78
- ## 📚 Learn More
79
-
80
- - [`@akanjs/cli`](../cli) - Full CLI documentation and features
81
- - [Akan.js Documentation](https://docs.akanjs.com) - Complete development guide
82
- - [Examples](https://github.com/akan-team/examples) - Sample projects and tutorials
83
-
84
- ## 🤝 Contributing
85
-
86
- This package is part of the Akan.js ecosystem. Contributions are welcome!
87
-
88
- 1. Fork the repository
89
- 2. Create your feature branch
90
- 3. Commit your changes
91
- 4. Push to the branch
92
- 5. Open a Pull Request
93
-
94
- ## 📄 License
95
-
96
- This project is part of the Akan.js ecosystem. See the main repository for license information.
97
-
98
- ---
99
-
100
- <p align="center">
101
- <strong>Built with ❤️ by the Akan.js team</strong><br>
102
- <em></em>
103
- </p>
package/cjs/index.js DELETED
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env node
2
- var import_child_process = require("child_process");
3
- var import_commander = require("commander");
4
- import_commander.program.name("create-akan-workspace");
5
- const spawnProcess = (command, args, options = {}) => {
6
- const proc = (0, import_child_process.spawn)(command, args, { cwd: process.cwd(), stdio: "inherit", ...options });
7
- return new Promise((resolve, reject) => {
8
- proc.on("exit", (code, signal) => {
9
- if (!!code || signal)
10
- reject({ code, signal });
11
- else
12
- resolve({ code, signal });
13
- });
14
- });
15
- };
16
- import_commander.program.argument("[org]", "organization name").option("-a, --app <string>", "application name").option("-d, --dir <string>", "directory").option("-l, --libs <boolean>", "install shared and util libraries", false).action(async (org, options, command) => {
17
- await spawnProcess("npm", ["install", "-g", "@akanjs/cli", "--latest"]);
18
- await spawnProcess("akan", [
19
- "create-workspace",
20
- ...org ? [org] : [],
21
- ...options.app ? [`--app=${options.app}`] : [],
22
- ...options.dir ? [`--dir=${options.dir}`] : [],
23
- ...options.libs ? [`--libs=${options.libs}`] : []
24
- ]);
25
- });
26
- const run = async () => {
27
- await import_commander.program.parseAsync(process.argv);
28
- };
29
- void run();
package/esm/index.js DELETED
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env node
2
- import { spawn } from "child_process";
3
- import { program } from "commander";
4
- program.name("create-akan-workspace");
5
- const spawnProcess = (command, args, options = {}) => {
6
- const proc = spawn(command, args, { cwd: process.cwd(), stdio: "inherit", ...options });
7
- return new Promise((resolve, reject) => {
8
- proc.on("exit", (code, signal) => {
9
- if (!!code || signal)
10
- reject({ code, signal });
11
- else
12
- resolve({ code, signal });
13
- });
14
- });
15
- };
16
- program.argument("[org]", "organization name").option("-a, --app <string>", "application name").option("-d, --dir <string>", "directory").option("-l, --libs <boolean>", "install shared and util libraries", false).action(async (org, options, command) => {
17
- await spawnProcess("npm", ["install", "-g", "@akanjs/cli", "--latest"]);
18
- await spawnProcess("akan", [
19
- "create-workspace",
20
- ...org ? [org] : [],
21
- ...options.app ? [`--app=${options.app}`] : [],
22
- ...options.dir ? [`--dir=${options.dir}`] : [],
23
- ...options.libs ? [`--libs=${options.libs}`] : []
24
- ]);
25
- });
26
- const run = async () => {
27
- await program.parseAsync(process.argv);
28
- };
29
- void run();
package/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};