@elysiumjs/styx 0.4.0 → 0.6.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @elysiumjs/styx
2
2
 
3
- CLI tool for Elysium.
3
+ CLI tool for Elysium.js framework.
4
4
 
5
5
  ## Installation
6
6
 
@@ -10,34 +10,45 @@ bun install @elysiumjs/styx
10
10
 
11
11
  ## Usage
12
12
 
13
- The `styx` command needs to be run from the root of your Elysium project.
13
+ The `styx` command needs to be run inside an Elysium.js project.
14
14
 
15
15
  To create new items:
16
16
 
17
17
  ```bash
18
- bun styx exec make:controller [options]
19
- bun styx exec make:job [options]
20
- bun styx exec make:middleware [options]
21
- bun styx exec make:service [options]
22
- bun styx exec make:command [options]
18
+ bun styx make:command [options]
19
+ bun styx make:controller [options]
20
+ bun styx make:job [options]
21
+ bun styx make:middleware [options]
22
+ bun styx make:model [options]
23
+ bun styx make:repository [options]
24
+ bun styx make:service [options]
25
+ bun styx make:validator [options]
23
26
  ```
24
27
 
25
- To start the Elysium project:
28
+ To manage migrations:
26
29
 
27
30
  ```bash
28
- bun styx serve
31
+ bun styx migration:generate [options]
32
+ bun styx migration:run [options]
29
33
  ```
30
34
 
31
- To execute a custom command:
35
+ To manage modules:
36
+
37
+ ```bash
38
+ bun styx module:new [options]
39
+ bun styx module:rename [options]
40
+ ```
41
+
42
+ To start the Elysium.js project:
32
43
 
33
44
  ```bash
34
- bun styx exec <command>
45
+ bun styx serve
35
46
  ```
36
47
 
37
- To run a worker:
48
+ To execute a custom command:
38
49
 
39
50
  ```bash
40
- bun styx work --queue queue1 --queue queue2
51
+ bun styx <command>
41
52
  ```
42
53
 
43
54
  To show all available commands:
@@ -60,4 +71,4 @@ Feel free to open issues for any bugs or questions you may have. Pull requests a
60
71
 
61
72
  ## License
62
73
 
63
- This project is licensed under the Apache License, Version 2.0. See the [LICENSE](../../LICENSE) file for more information.
74
+ This project is licensed under the Apache License, Version 2.0. See the [LICENSE](https://github.com/workbud/elysium/blob/main/LICENSE) file for more information.
package/package.json CHANGED
@@ -1,45 +1,45 @@
1
1
  {
2
2
  "name": "@elysiumjs/styx",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "license": "Apache-2.0",
5
- "description": "The CLI tool for the Elysium framework.",
5
+ "description": "The CLI tool for the Elysium.js framework.",
6
6
  "private": false,
7
- "author": {
8
- "name": "Axel Nana",
9
- "email": "axel.nana@workbud.com"
10
- },
7
+ "author": "Workbud Technologies Inc.",
11
8
  "repository": {
12
9
  "type": "git",
13
- "url": "https://github.com/Workerly/elysium"
10
+ "url": "https://github.com/workbud/elysium"
14
11
  },
15
- "homepage": "https://github.com/Workerly/elysium",
12
+ "homepage": "https://github.com/workbud/elysium",
16
13
  "scripts": {
17
14
  "format": "prettier --write \"./src/**/*.ts\"",
18
- "build": "bun build index.ts --outfile=styx.js --target bun --minify -e @elysiumjs/core"
15
+ "build": "bun build ./src/styx.ts --outdir=./ --root ./src --target bun --minify -e @elysiumjs/* -e reflect-metadata",
16
+ "prepublishOnly": "bun run build"
19
17
  },
20
18
  "keywords": [
21
19
  "elysium",
22
20
  "framework",
23
21
  "web",
24
22
  "api",
25
- "typescript"
23
+ "typescript",
24
+ "cli"
26
25
  ],
27
26
  "type": "module",
28
27
  "bin": {
29
28
  "styx": "./styx.js"
30
29
  },
31
30
  "devDependencies": {
32
- "@ianvs/prettier-plugin-sort-imports": "^4.4.1",
31
+ "@ianvs/prettier-plugin-sort-imports": "^4.4.2",
33
32
  "@types/bun": "latest",
34
33
  "@types/prompts": "^2.4.9",
35
34
  "@types/string-template": "^1.0.6",
36
- "type-fest": "^4.40.1",
37
35
  "prompts": "^2.4.2",
38
36
  "radash": "^12.1.0",
39
- "string-template": "^1.0.0"
37
+ "string-template": "^1.0.0",
38
+ "type-fest": "^4.41.0"
40
39
  },
41
40
  "peerDependencies": {
42
41
  "@elysiumjs/core": "latest",
42
+ "@elysiumjs/heracles": "latest",
43
43
  "typescript": "^5.8.3"
44
44
  }
45
45
  }