Skip to content

Commit 4c11b3b

Browse files
committed
Add web pulse app
1 parent 26338f4 commit 4c11b3b

31 files changed

+1680
-5390
lines changed

.changeset/cruel-waves-double.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@pulse-editor/shared-utils": patch
3+
"@pulse-editor/react-api": patch
4+
---
5+
6+
Rebuild packages

.changeset/few-wasps-beam.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@pulse-editor/shared-utils": patch
3+
"@pulse-editor/react-api": patch
4+
---
5+
6+
Fix getwindowid IMC issue

.changeset/fruity-goats-look.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@pulse-editor/shared-utils": patch
3+
"@pulse-editor/react-api": patch
4+
---
5+
6+
Add imc debug message for ignored messages

.changeset/pre.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@
1717
"beige-pandas-rhyme",
1818
"calm-rivers-march",
1919
"chatty-trains-beam",
20+
"cruel-waves-double",
2021
"cruel-zoos-play",
2122
"curvy-places-wash",
2223
"dirty-swans-rescue",
2324
"early-pumas-listen",
25+
"few-wasps-beam",
26+
"fruity-goats-look",
2427
"hot-symbols-fry",
2528
"large-moose-tap",
2629
"lazy-zebras-mate",
@@ -30,6 +33,7 @@
3033
"sad-tables-join",
3134
"slick-roses-fix",
3235
"social-donkeys-cross",
36+
"stale-groups-poke",
3337
"tender-jeans-occur",
3438
"wicked-spoons-fry"
3539
]

.changeset/stale-groups-poke.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@pulse-editor/shared-utils": patch
3+
"@pulse-editor/react-api": patch
4+
---
5+
6+
Add new AI modality

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ node_modules
2323
*.secrets
2424

2525
dist/
26+
.git

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ Pulse Editor
4444
- [Desktop Development](#desktop-development)
4545
- [VSCode Extension Development](#vscode-extension-development)
4646
- [Pulse Editor Extension Development](#pulse-editor-extension-development)
47+
- [Pulse Editor NPM libraries development](#pulse-editor-npm-libraries-development)
48+
- [Versioning](#versioning)
4749

4850
</span>
4951

@@ -243,3 +245,36 @@ Some of our official extensions are also open-source. Feel free to take examples
243245

244246
- [Pulse Editor Code View](https://github.com/ClayPulse/pulse-editor-code-view)
245247
- [Pulse Editor Terminal](https://github.com/ClayPulse/pulse-editor-terminal)
248+
249+
## Pulse Editor NPM libraries development
250+
### Versioning
251+
Use changeset to version each release of npm library.
252+
253+
Enter/Exit prerelease
254+
```bash
255+
npx changeset pre enter alpha
256+
npx changeset pre exit
257+
```
258+
259+
Add a new version
260+
```bash
261+
npx changeset
262+
```
263+
264+
Commit the new version
265+
```bash
266+
npx changeset version
267+
```
268+
269+
Publish npm libraries
270+
```bash
271+
# Run build before publishing
272+
npm run shared-utils-build && npm run react-api-build
273+
npx changeset publish
274+
```
275+
276+
For developing main client and using recently modified npm libraries without publishing, you can change web/package.json to have the following:
277+
```json
278+
"@pulse-editor/shared-utils": "../npm-packages/shared-utils",
279+
```
280+
Make sure to change back if using published versions.

desktop/main.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,13 @@ function createWindow() {
5858
}
5959
// Development launch
6060
else {
61-
win.loadURL("http://localhost:3000");
61+
// Choose either http or https by trying both
62+
if (process.env.HTTPS === "true") {
63+
win.loadURL("https://localhost:3000");
64+
} else {
65+
win.loadURL("http://localhost:3000");
66+
}
67+
6268
win.webContents.openDevTools();
6369
win.webContents.on("did-fail-load", (e, code, desc) => {
6470
win.webContents.reloadIgnoringCache();

desktop/package-lock.json

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

desktop/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"type": "module",
77
"scripts": {
88
"dev": "electron .",
9+
"dev-https": "cross-env HTTPS=true electron .",
910
"build": "electron-forge package",
1011
"rebuild-native": "electron-rebuild -v 36.1.0"
1112
},
@@ -21,6 +22,7 @@
2122
"@electron-forge/cli": "^7.8.0",
2223
"@electron/rebuild": "^3.7.2",
2324
"@types/node": "^22",
25+
"cross-env": "^10.0.0",
2426
"electron": "^36.1.0",
2527
"esbuild": "^0.25.3",
2628
"esbuild-register": "^3.6.0"

0 commit comments

Comments
 (0)