@pulse-editor/cli 0.1.1-beta.5 → 0.1.1-beta.7
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/dist/cli.js
CHANGED
|
@@ -34,7 +34,12 @@ export default function Dev({ cli }) {
|
|
|
34
34
|
}
|
|
35
35
|
// Start dev server
|
|
36
36
|
await cleanDist();
|
|
37
|
-
await execa(
|
|
37
|
+
await execa(getDepsBinPath('concurrently'), [
|
|
38
|
+
'--prefix',
|
|
39
|
+
'none',
|
|
40
|
+
'"npx webpack --mode development --watch"',
|
|
41
|
+
'"tsx watch --clear-screen=false node_modules/@pulse-editor/cli/dist/lib/server/express.js"',
|
|
42
|
+
], {
|
|
38
43
|
stdio: 'inherit',
|
|
39
44
|
shell: true,
|
|
40
45
|
env: {
|
|
@@ -4,5 +4,6 @@ import { commandsManual } from '../../lib/manual.js';
|
|
|
4
4
|
import Header from '../header.js';
|
|
5
5
|
export default function Help({ cli }) {
|
|
6
6
|
const subCommand = cli.input[1];
|
|
7
|
-
return (_jsx(_Fragment, { children: subCommand ? (_jsx(Text, { children: commandsManual[subCommand]
|
|
7
|
+
return (_jsx(_Fragment, { children: subCommand ? (_jsx(Text, { children: commandsManual[subCommand]?.trimEnd() ??
|
|
8
|
+
`No help found for command: ${subCommand}` })) : (_jsxs(_Fragment, { children: [_jsx(Header, {}), _jsx(Text, { children: cli.help })] })) }));
|
|
8
9
|
}
|
|
@@ -37,7 +37,12 @@ export default function Preview({ cli }) {
|
|
|
37
37
|
}
|
|
38
38
|
// Start preview server
|
|
39
39
|
await cleanDist();
|
|
40
|
-
await execa(
|
|
40
|
+
await execa(getDepsBinPath('concurrently'), [
|
|
41
|
+
'--prefix',
|
|
42
|
+
'none',
|
|
43
|
+
'"npx webpack --mode development --watch"',
|
|
44
|
+
'"tsx watch --clear-screen=false node_modules/@pulse-editor/cli/dist/lib/server/express.js"',
|
|
45
|
+
], {
|
|
41
46
|
stdio: 'inherit',
|
|
42
47
|
shell: true,
|
|
43
48
|
env: {
|
package/dist/lib/manual.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const help = `\
|
|
2
2
|
help [command] Show help for a command.
|
|
3
|
+
|
|
3
4
|
`;
|
|
4
5
|
const chat = `\
|
|
5
6
|
chat [message] (WIP) Chat with the Pulse Editor AI assistant.
|
|
@@ -22,9 +23,11 @@ const login = `\
|
|
|
22
23
|
`;
|
|
23
24
|
const logout = `\
|
|
24
25
|
logout Logout from the Pulse Editor Platform.
|
|
26
|
+
|
|
25
27
|
`;
|
|
26
28
|
const publish = `\
|
|
27
29
|
publish Publish Pulse Editor Extension in current directory to the Pulse Editor Platform.
|
|
30
|
+
|
|
28
31
|
`;
|
|
29
32
|
const create = `\
|
|
30
33
|
create Create a new Pulse App using the starter template.
|
|
@@ -38,6 +41,36 @@ const create = `\
|
|
|
38
41
|
--visibility, -v [visibility]
|
|
39
42
|
The visibility of the new project. Options are private,
|
|
40
43
|
public, and unlisted.
|
|
44
|
+
|
|
45
|
+
`;
|
|
46
|
+
const preview = `\
|
|
47
|
+
preview Build the Pulse App in development mode and
|
|
48
|
+
start a preview server accessible via browser
|
|
49
|
+
with live reloading.
|
|
50
|
+
|
|
51
|
+
`;
|
|
52
|
+
const dev = `\
|
|
53
|
+
dev Build the Pulse App in development mode and
|
|
54
|
+
start a local development server for Pulse Editor
|
|
55
|
+
to load the app from, with live reloading.
|
|
56
|
+
|
|
57
|
+
`;
|
|
58
|
+
const build = `\
|
|
59
|
+
build Build the Pulse App for production deployment.
|
|
60
|
+
Flags:
|
|
61
|
+
--target, -t [target]
|
|
62
|
+
The build target. Options are 'client', 'server', or
|
|
63
|
+
unspecified (both client and server).
|
|
64
|
+
|
|
65
|
+
`;
|
|
66
|
+
const start = `\
|
|
67
|
+
start Build the Pulse App in production mode and
|
|
68
|
+
start a local server for Pulse Editor to load the app from.
|
|
69
|
+
|
|
70
|
+
`;
|
|
71
|
+
const clean = `\
|
|
72
|
+
clean Clean the dist/ directory.
|
|
73
|
+
|
|
41
74
|
`;
|
|
42
75
|
export const commandsManual = {
|
|
43
76
|
help,
|
|
@@ -46,4 +79,9 @@ export const commandsManual = {
|
|
|
46
79
|
logout,
|
|
47
80
|
publish,
|
|
48
81
|
create,
|
|
82
|
+
preview,
|
|
83
|
+
dev,
|
|
84
|
+
build,
|
|
85
|
+
start,
|
|
86
|
+
clean,
|
|
49
87
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulse-editor/cli",
|
|
3
|
-
"version": "0.1.1-beta.
|
|
3
|
+
"version": "0.1.1-beta.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bin": {
|
|
6
6
|
"pulse": "dist/cli.js"
|
|
@@ -19,13 +19,11 @@
|
|
|
19
19
|
"dist"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@module-federation/enhanced": "0.19.1",
|
|
23
|
-
"@module-federation/node": "2.7.17",
|
|
24
|
-
"@module-federation/runtime": "0.19.1",
|
|
25
22
|
"concurrently": "^9.2.1",
|
|
26
23
|
"connect-livereload": "^0.6.1",
|
|
27
24
|
"cors": "^2.8.5",
|
|
28
25
|
"cross-env": "^10.1.0",
|
|
26
|
+
"dotenv": "^17.2.3",
|
|
29
27
|
"execa": "^9.6.0",
|
|
30
28
|
"express": "^5.1.0",
|
|
31
29
|
"ink": "^6.5.0",
|
|
@@ -36,16 +34,21 @@
|
|
|
36
34
|
"meow": "^14.0.0",
|
|
37
35
|
"openid-client": "^6.8.1",
|
|
38
36
|
"react": "^19.2.0",
|
|
37
|
+
"react-dom": "^19.2.0",
|
|
39
38
|
"rimraf": "^6.1.0",
|
|
40
39
|
"tsx": "^4.20.6"
|
|
41
40
|
},
|
|
42
41
|
"devDependencies": {
|
|
42
|
+
"@module-federation/enhanced": "0.21.4",
|
|
43
|
+
"@module-federation/node": "2.7.23",
|
|
44
|
+
"@module-federation/runtime": "0.21.4",
|
|
43
45
|
"@sindresorhus/tsconfig": "^8.1.0",
|
|
44
46
|
"@types/connect-livereload": "^0.6.3",
|
|
45
47
|
"@types/cors": "^2.8.19",
|
|
46
48
|
"@types/express": "^5.0.5",
|
|
47
49
|
"@types/livereload": "^0.9.5",
|
|
48
|
-
"@types/react": "^19.2.
|
|
50
|
+
"@types/react": "^19.2.6",
|
|
51
|
+
"@types/react-dom": "^19.2.3",
|
|
49
52
|
"@vdemedes/prettier-config": "^2.0.1",
|
|
50
53
|
"ava": "^6.4.1",
|
|
51
54
|
"chalk": "^5.6.2",
|
package/readme.md
CHANGED
|
@@ -17,6 +17,7 @@ npm run link
|
|
|
17
17
|
|
|
18
18
|
Commands
|
|
19
19
|
help [command] Show help for a command.
|
|
20
|
+
|
|
20
21
|
chat [message] (WIP) Chat with the Pulse Editor AI assistant.
|
|
21
22
|
|
|
22
23
|
Flags:
|
|
@@ -33,13 +34,40 @@ npm run link
|
|
|
33
34
|
Login using a browser flow.
|
|
34
35
|
|
|
35
36
|
logout Logout from the Pulse Editor Platform.
|
|
37
|
+
|
|
36
38
|
publish Publish Pulse Editor Extension in current directory to the Pulse Editor Platform.
|
|
39
|
+
|
|
37
40
|
create Create a new Pulse App using the starter template.
|
|
38
41
|
Flags:
|
|
39
42
|
--framework, -f [framework]
|
|
40
43
|
The framework to use for the new app.
|
|
41
44
|
Currently available options: react.
|
|
42
45
|
Future options: vue, angular, etc.
|
|
46
|
+
--name, -n [project-name]
|
|
47
|
+
The name of the new project.
|
|
48
|
+
--visibility, -v [visibility]
|
|
49
|
+
The visibility of the new project. Options are private,
|
|
50
|
+
public, and unlisted.
|
|
51
|
+
|
|
52
|
+
preview Build the Pulse App in development mode and
|
|
53
|
+
start a preview server accessible via browser
|
|
54
|
+
with live reloading.
|
|
55
|
+
|
|
56
|
+
dev Build the Pulse App in development mode and
|
|
57
|
+
start a local development server for Pulse Editor
|
|
58
|
+
to load the app from, with live reloading.
|
|
59
|
+
|
|
60
|
+
build Build the Pulse App for production deployment.
|
|
61
|
+
Flags:
|
|
62
|
+
--target, -t [target]
|
|
63
|
+
The build target. Options are 'client', 'server', or
|
|
64
|
+
unspecified (both client and server).
|
|
65
|
+
|
|
66
|
+
start Build the Pulse App in production mode and
|
|
67
|
+
start a local server for Pulse Editor to load the app from.
|
|
68
|
+
|
|
69
|
+
clean Clean the dist/ directory.
|
|
70
|
+
|
|
43
71
|
|
|
44
72
|
Examples
|
|
45
73
|
pulse help publish
|