@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 +25 -14
- package/package.json +13 -13
- package/styx.js +63 -61
- package/src/commands/make_command.ts +0 -167
- package/src/commands/make_controller.ts +0 -272
- package/src/commands/make_job.ts +0 -178
- package/src/commands/make_middleware.ts +0 -138
- package/src/commands/make_model.ts +0 -195
- package/src/commands/make_repository.ts +0 -220
- package/src/commands/make_service.ts +0 -196
- package/src/commands/make_validator.ts +0 -142
- package/src/commands/migration_generate.ts +0 -69
- package/src/commands/migration_run.ts +0 -145
- package/src/config.ts +0 -99
- package/src/utils.ts +0 -23
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
|
|
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
|
|
19
|
-
bun styx
|
|
20
|
-
bun styx
|
|
21
|
-
bun styx
|
|
22
|
-
bun styx
|
|
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
|
|
28
|
+
To manage migrations:
|
|
26
29
|
|
|
27
30
|
```bash
|
|
28
|
-
bun styx
|
|
31
|
+
bun styx migration:generate [options]
|
|
32
|
+
bun styx migration:run [options]
|
|
29
33
|
```
|
|
30
34
|
|
|
31
|
-
To
|
|
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
|
|
45
|
+
bun styx serve
|
|
35
46
|
```
|
|
36
47
|
|
|
37
|
-
To
|
|
48
|
+
To execute a custom command:
|
|
38
49
|
|
|
39
50
|
```bash
|
|
40
|
-
bun styx
|
|
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](
|
|
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.
|
|
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/
|
|
10
|
+
"url": "https://github.com/workbud/elysium"
|
|
14
11
|
},
|
|
15
|
-
"homepage": "https://github.com/
|
|
12
|
+
"homepage": "https://github.com/workbud/elysium",
|
|
16
13
|
"scripts": {
|
|
17
14
|
"format": "prettier --write \"./src/**/*.ts\"",
|
|
18
|
-
"build": "bun build
|
|
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.
|
|
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
|
}
|