@pulse-editor/cli 0.1.1-beta.2 → 0.1.1-beta.20
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/app.js +2 -1
- package/dist/cli.js +1 -0
- package/dist/components/commands/build.js +18 -33
- package/dist/components/commands/dev.js +36 -4
- package/dist/components/commands/help.js +2 -1
- package/dist/components/commands/preview.js +51 -7
- package/dist/components/commands/publish.js +21 -35
- package/dist/components/commands/{preview copy.d.ts → upgrade.d.ts} +1 -1
- package/dist/components/commands/upgrade.js +53 -0
- package/dist/lib/backend/publish-app.d.ts +1 -0
- package/dist/lib/backend/publish-app.js +27 -0
- package/dist/lib/cli-flags.d.ts +7 -0
- package/dist/lib/cli-flags.js +7 -0
- package/dist/lib/execa-utils/clean.js +1 -1
- package/dist/lib/execa-utils/deps.js +10 -1
- package/dist/lib/manual.js +49 -0
- package/dist/lib/server/express.js +7 -7
- package/dist/lib/server/preview/backend/load-remote.cjs +23 -23
- package/dist/lib/server/preview/frontend/index.html +11 -11
- package/dist/lib/webpack/compile.d.ts +2 -0
- package/dist/lib/webpack/compile.js +28 -0
- package/dist/lib/webpack/webpack.config.d.ts +2 -0
- package/dist/lib/webpack/webpack.config.js +545 -0
- package/package.json +29 -15
- package/readme.md +28 -0
- package/dist/components/commands/preview copy.js +0 -14
- package/dist/components/commands/start copy.d.ts +0 -5
- package/dist/components/commands/start copy.js +0 -14
- package/dist/lib/deps.d.ts +0 -1
- package/dist/lib/deps.js +0 -5
- package/dist/lib/node_module_bin.d.ts +0 -1
- package/dist/lib/node_module_bin.js +0 -7
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.20",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bin": {
|
|
6
6
|
"pulse": "dist/cli.js"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsx build.ts",
|
|
14
|
-
"dev": "tsx watch --include \"./
|
|
14
|
+
"dev": "tsx watch --include \"./src/**/*\" build.ts",
|
|
15
15
|
"test": "prettier --check . && xo && ava",
|
|
16
16
|
"link": "npm link"
|
|
17
17
|
},
|
|
@@ -19,32 +19,41 @@
|
|
|
19
19
|
"dist"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@module-federation/enhanced": "0.
|
|
23
|
-
"@module-federation/node": "2.7.
|
|
24
|
-
"@module-federation/runtime": "0.
|
|
22
|
+
"@module-federation/enhanced": "0.21.6",
|
|
23
|
+
"@module-federation/node": "^2.7.25",
|
|
24
|
+
"@module-federation/runtime": "0.21.6",
|
|
25
|
+
"@pulse-editor/shared-utils": "^0.1.1-beta.67",
|
|
25
26
|
"concurrently": "^9.2.1",
|
|
26
27
|
"connect-livereload": "^0.6.1",
|
|
28
|
+
"copy-webpack-plugin": "^13.0.1",
|
|
27
29
|
"cors": "^2.8.5",
|
|
28
30
|
"cross-env": "^10.1.0",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
31
|
+
"dotenv": "^17.2.3",
|
|
32
|
+
"execa": "^9.6.1",
|
|
33
|
+
"express": "^5.2.1",
|
|
34
|
+
"glob": "^13.0.0",
|
|
35
|
+
"html-webpack-plugin": "^5.6.5",
|
|
36
|
+
"ink": "^6.5.1",
|
|
32
37
|
"ink-select-input": "^6.2.0",
|
|
33
38
|
"ink-spinner": "^5.0.0",
|
|
34
39
|
"ink-text-input": "^6.0.0",
|
|
40
|
+
"livereload": "^0.10.3",
|
|
35
41
|
"meow": "^14.0.0",
|
|
42
|
+
"mini-css-extract-plugin": "^2.9.4",
|
|
36
43
|
"openid-client": "^6.8.1",
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
44
|
+
"rimraf": "^6.1.2",
|
|
45
|
+
"tsx": "^4.21.0",
|
|
46
|
+
"webpack": "^5.104.0",
|
|
47
|
+
"webpack-dev-server": "^5.2.2"
|
|
40
48
|
},
|
|
41
49
|
"devDependencies": {
|
|
42
50
|
"@sindresorhus/tsconfig": "^8.1.0",
|
|
43
51
|
"@types/connect-livereload": "^0.6.3",
|
|
44
52
|
"@types/cors": "^2.8.19",
|
|
45
|
-
"@types/express": "^5.0.
|
|
53
|
+
"@types/express": "^5.0.6",
|
|
46
54
|
"@types/livereload": "^0.9.5",
|
|
47
|
-
"@types/react": "^19.2.
|
|
55
|
+
"@types/react": "^19.2.7",
|
|
56
|
+
"@types/react-dom": "^19.2.3",
|
|
48
57
|
"@vdemedes/prettier-config": "^2.0.1",
|
|
49
58
|
"ava": "^6.4.1",
|
|
50
59
|
"chalk": "^5.6.2",
|
|
@@ -52,12 +61,17 @@
|
|
|
52
61
|
"eslint-plugin-react": "^7.37.5",
|
|
53
62
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
54
63
|
"ink-testing-library": "^4.0.0",
|
|
55
|
-
"
|
|
56
|
-
"
|
|
64
|
+
"prettier": "^3.7.4",
|
|
65
|
+
"react": "19.2.3",
|
|
66
|
+
"react-dom": "19.2.3",
|
|
57
67
|
"ts-node": "^10.9.2",
|
|
58
68
|
"typescript": "^5.9.3",
|
|
59
69
|
"xo": "^1.2.3"
|
|
60
70
|
},
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"react": "19.2.3",
|
|
73
|
+
"react-dom": "19.2.3"
|
|
74
|
+
},
|
|
61
75
|
"ava": {
|
|
62
76
|
"extensions": {
|
|
63
77
|
"ts": "module",
|
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
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Text } from 'ink';
|
|
3
|
-
import { useEffect } from 'react';
|
|
4
|
-
import { execa } from 'execa';
|
|
5
|
-
export default function Preview({ cli }) {
|
|
6
|
-
useEffect(() => {
|
|
7
|
-
// Start dev server
|
|
8
|
-
execa('npm run preview', {
|
|
9
|
-
stdio: 'inherit',
|
|
10
|
-
shell: true,
|
|
11
|
-
});
|
|
12
|
-
}, []);
|
|
13
|
-
return (_jsx(_Fragment, { children: _jsx(Text, { children: "Starting preview server..." }) }));
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Text } from 'ink';
|
|
3
|
-
import { useEffect } from 'react';
|
|
4
|
-
import { execa } from 'execa';
|
|
5
|
-
export default function Start({ cli }) {
|
|
6
|
-
useEffect(() => {
|
|
7
|
-
// Start dev server
|
|
8
|
-
execa('npm run start', {
|
|
9
|
-
stdio: 'inherit',
|
|
10
|
-
shell: true,
|
|
11
|
-
});
|
|
12
|
-
}, []);
|
|
13
|
-
return (_jsx(_Fragment, { children: _jsx(Text, { children: "Starting prod server..." }) }));
|
|
14
|
-
}
|
package/dist/lib/deps.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getDepsBinPath(name: string): string;
|
package/dist/lib/deps.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
// Get deps bin at node_modules/@pulse-editor/cli/node_modules
|
|
2
|
-
export function getDepsBinPath(name) {
|
|
3
|
-
const workingDir = process.cwd();
|
|
4
|
-
return `${workingDir}/node_modules/@pulse-editor/cli/node_modules/.bin/${process.platform === 'win32' ? `${name}.cmd` : name}`;
|
|
5
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function bin(name: string): string;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import path from 'path';
|
|
2
|
-
import { fileURLToPath } from 'url';
|
|
3
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
4
|
-
const __dirname = path.dirname(__filename);
|
|
5
|
-
export function bin(name) {
|
|
6
|
-
return path.join(__dirname, 'node_modules', '.bin', process.platform === 'win32' ? `${name}.cmd` : name);
|
|
7
|
-
}
|