platformatic 0.27.0 → 0.29.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/cli.js +3 -1
- package/help/help.txt +4 -3
- package/help/start.txt +7 -1
- package/package.json +13 -12
- package/test/start.test.js +2 -0
package/cli.js
CHANGED
|
@@ -8,6 +8,7 @@ import { runService } from '@platformatic/service/service.mjs'
|
|
|
8
8
|
import { runComposer } from '@platformatic/composer/composer.mjs'
|
|
9
9
|
import platformaticStart from '@platformatic/start'
|
|
10
10
|
import { login } from '@platformatic/authenticate/authenticate.js'
|
|
11
|
+
import { command as frontend } from '@platformatic/frontend-template'
|
|
11
12
|
import { command as client } from '@platformatic/client-cli'
|
|
12
13
|
import { readFile } from 'fs/promises'
|
|
13
14
|
import { join } from 'desm'
|
|
@@ -42,7 +43,7 @@ const ensureCommand = async ({ output, help }) => {
|
|
|
42
43
|
program.register('db', async (args) => ensureCommand(await runDB(args)))
|
|
43
44
|
program.register('runtime', async (args) => ensureCommand(await runRuntime(args)))
|
|
44
45
|
program.register('service', async (args) => ensureCommand(await runService(args)))
|
|
45
|
-
program.register('start', platformaticStart.
|
|
46
|
+
program.register('start', platformaticStart.startCommandInRuntime)
|
|
46
47
|
program.register('composer', async (args) => ensureCommand(await runComposer(args)))
|
|
47
48
|
program.register('upgrade', upgrade)
|
|
48
49
|
program.register('client', client)
|
|
@@ -53,6 +54,7 @@ program.register('help service', async (args) => runService(['help', ...args]))
|
|
|
53
54
|
program.register({ command: 'login', strict: true }, login)
|
|
54
55
|
program.register('gh', gh)
|
|
55
56
|
program.register('deploy', deploy)
|
|
57
|
+
program.register('frontend', frontend)
|
|
56
58
|
|
|
57
59
|
const args = minimist(process.argv.slice(2), {
|
|
58
60
|
boolean: ['help', 'version'],
|
package/help/help.txt
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
Welcome to Platformatic. Available commands are:
|
|
2
2
|
|
|
3
|
-
* help -
|
|
4
|
-
* help <command> -
|
|
3
|
+
* help - display this message
|
|
4
|
+
* help <command> - show more information about a command.
|
|
5
5
|
* db - start Platformatic DB; type `platformatic db help` to know more.
|
|
6
6
|
* service - start Platformatic Service; type `platformatic service help` to know more.
|
|
7
7
|
* upgrade - upgrade the Platformatic configuration to the latest version.
|
|
8
|
-
* gh -
|
|
8
|
+
* gh - create a new gh action for Platformatic deployments
|
|
9
9
|
* deploy - deploy a Platformatic application to the cloud
|
|
10
10
|
* runtime - start Platformatic Runtime; type `platformatic runtime help` to know more.
|
|
11
11
|
* start - start a Platformatic application
|
|
12
|
+
* frontend - create frontend code to consume the REST APIs
|
package/help/start.txt
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
Start a Platformatic application with the following command:
|
|
2
2
|
|
|
3
|
-
```
|
|
3
|
+
```bash
|
|
4
4
|
$ platformatic start
|
|
5
5
|
```
|
|
6
|
+
|
|
7
|
+
Options:
|
|
8
|
+
|
|
9
|
+
* `-c, --config <path>`: Path to the configuration file.
|
|
10
|
+
* `--inspect[=[host:]port]`: Start the Node.js debugger. `host` defaults to `'127.0.0.1'`. `port` defaults to 9229. Use caution when binding to a public host:port combination.
|
|
11
|
+
* `--inspect-brk[=[host:]port]`: Start the Node.js debugger and block until a client has attached. `host` defaults to `'127.0.0.1'`. `port` defaults to 9229. Use caution when binding to a public host:port combination.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "platformatic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"description": "Platformatic CLI",
|
|
5
5
|
"main": "cli.js",
|
|
6
6
|
"type": "module",
|
|
@@ -48,17 +48,18 @@
|
|
|
48
48
|
"minimist": "^1.2.8",
|
|
49
49
|
"pino": "^8.14.1",
|
|
50
50
|
"pino-pretty": "^10.0.0",
|
|
51
|
-
"@platformatic/authenticate": "0.
|
|
52
|
-
"@platformatic/client-cli": "0.
|
|
53
|
-
"@platformatic/composer": "0.
|
|
54
|
-
"@platformatic/config": "0.
|
|
55
|
-
"@platformatic/db": "0.
|
|
56
|
-
"@platformatic/deploy-client": "0.
|
|
57
|
-
"@platformatic/
|
|
58
|
-
"@platformatic/
|
|
59
|
-
"@platformatic/
|
|
60
|
-
"@platformatic/
|
|
61
|
-
"
|
|
51
|
+
"@platformatic/authenticate": "0.29.0",
|
|
52
|
+
"@platformatic/client-cli": "0.29.0",
|
|
53
|
+
"@platformatic/composer": "0.29.0",
|
|
54
|
+
"@platformatic/config": "0.29.0",
|
|
55
|
+
"@platformatic/db": "0.29.0",
|
|
56
|
+
"@platformatic/deploy-client": "0.29.0",
|
|
57
|
+
"@platformatic/frontend-template": "0.29.0",
|
|
58
|
+
"@platformatic/metaconfig": "0.29.0",
|
|
59
|
+
"@platformatic/runtime": "0.29.0",
|
|
60
|
+
"@platformatic/service": "0.29.0",
|
|
61
|
+
"@platformatic/start": "0.29.0",
|
|
62
|
+
"create-platformatic": "0.29.0"
|
|
62
63
|
},
|
|
63
64
|
"scripts": {
|
|
64
65
|
"test": "standard | snazzy && c8 --100 tap --no-coverage test/*.test.js",
|