Skip to content

Commit abfc5e1

Browse files
authored
Merge pull request #25 from ClayPulse/dev
Add changeset
2 parents a6a95bf + 7f07e8d commit abfc5e1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+4220
-2715
lines changed

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.changeset/mighty-ghosts-crash.md

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

.changeset/pre.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"mode": "pre",
3+
"tag": "alpha",
4+
"initialVersions": {
5+
"pulse-editor-desktop": "0.0.1",
6+
"pulse-editor-mobile": "0.0.1",
7+
"@pulse-editor/react-api": "0.1.0",
8+
"@pulse-editor/shared-utils": "0.1.0",
9+
"pulse-editor-vscode": "0.0.3",
10+
"pulse-editor-web": "0.0.2"
11+
},
12+
"changesets": [
13+
"mighty-ghosts-crash"
14+
]
15+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3+
4+
name: Release NPM Package
5+
6+
permissions:
7+
contents: write
8+
9+
on:
10+
push:
11+
branches: ["main"]
12+
pull_request:
13+
branches: ["main"]
14+
15+
jobs:
16+
release:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node.js 20
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 20
26+
27+
- name: Install changesets
28+
run: npm i -D changesets
29+
30+
- name: Check for changesets
31+
run: npx changeset status --since=main
32+
33+
- name: Install dependencies
34+
run: npm i --workspace=npm-packages/shared-utils && npm i --workspace=npm-packages/react-api
35+
36+
- name: Build @pulse-editor/shared-utils
37+
run: npm run build --workspace=npm-packages/shared-utils
38+
39+
- name: Build @pulse-editor/react-api
40+
run: npm run build --workspace=npm-packages/react-api
41+
42+
- name: Create Release Pull Request or Publish to npm
43+
id: changesets
44+
uses: changesets/action@v1
45+
with:
46+
version: npx changeset version
47+
# This expects you to have a script called release which does a build for your packages and calls changeset publish
48+
publish: npx changeset publish
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}

npm-packages/cli/readme.md

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,43 @@
1-
# cli
2-
3-
> This readme is automatically generated by [create-ink-app](https://github.com/vadimdemedes/create-ink-app)
4-
1+
# Pulse CLI
52
## Install
63

74
```bash
8-
$ npm install --global cli
5+
$ npm install --global @pulse-editor/cli
96
```
107

11-
## CLI
8+
## CLI Manual
129

1310
```
14-
$ cli --help
15-
1611
Usage
17-
$ cli
18-
19-
Options
20-
--name Your name
12+
pulse [command] [flags]
13+
14+
Commands
15+
help [command] Show help for a command.
16+
chat [message] (WIP) Chat with the Pulse Editor AI assistant.
17+
18+
Flags:
19+
--interactive, -i
20+
Start an interactive chat session
21+
22+
login Login to the Pulse Editor Platform.
23+
24+
Flags:
25+
--token [token]
26+
Login using an access token. This is the default if the
27+
token is set in the environment variable PE_ACCESS_TOKEN.
28+
--flow
29+
Login using a browser flow.
30+
31+
logout Logout from the Pulse Editor Platform.
32+
publish Publish Pulse Editor Extension in current directory to the Pulse Editor Platform.
33+
create Create a new Pulse App using the starter template.
34+
Flags:
35+
--framework, -f [framework]
36+
The framework to use for the new app.
37+
Currently available options: react.
38+
Future options: vue, angular, etc.
2139
2240
Examples
23-
$ cli --name=Jane
24-
Hello, Jane
41+
pulse help publish
42+
2543
```

npm-packages/cli/source/cli.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {render} from 'ink';
44
import meow from 'meow';
55
import App from './app.js';
66
import {commandsManual} from './lib/manual.js';
7-
import { flags } from './lib/cli-flags.js';
7+
import {flags} from './lib/cli-flags.js';
88

99
const cli = meow(
1010
`\

npm-packages/cli/tsconfig.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
"compilerOptions": {
44
"outDir": "dist",
55
"noUnusedLocals": false,
6-
"noUnusedParameters": false,
6+
"noUnusedParameters": false
77
},
8-
"include": [
9-
"source"
10-
]
11-
}
8+
"include": ["source"]
9+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# @pulse-editor/react-api
2+
3+
## 0.1.1-alpha.0
4+
5+
### Patch Changes
6+
7+
- 0.1.1-alpha
8+
- Updated dependencies
9+
- @pulse-editor/shared-utils@0.1.1-alpha.0
10+
11+
## 0.1.0-alpha.0
12+
13+
### Minor Changes
14+
15+
- Support Module Federation extension sharing
16+
17+
### Patch Changes
18+
19+
- Updated dependencies
20+
- @pulse-editor/shared-utils@0.1.0-alpha.0
21+
- Remove dependencies
22+
- @pulse-editor/types@0.1.0-alpha.0

npm-packages/react-api/package.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
{
22
"name": "@pulse-editor/react-api",
3-
"version": "0.0.1",
4-
"main": "src/main.ts",
3+
"version": "0.1.1-alpha.0",
4+
"main": "dist/main.js",
55
"type": "module",
6+
"files": [
7+
"dist"
8+
],
9+
"publishConfig": {
10+
"access": "public"
11+
},
612
"scripts": {
713
"build": "rollup -c",
814
"lint": "eslint ."
@@ -16,7 +22,6 @@
1622
"@rollup/plugin-terser": "^0.4.4",
1723
"@rollup/plugin-typescript": "^12.1.2",
1824
"@types/react": "^19.1.2",
19-
"autoprefixer": "^10.4.21",
2025
"eslint": "^9.25.0",
2126
"eslint-plugin-react": "^7.37.5",
2227
"globals": "^16.0.0",
@@ -30,9 +35,8 @@
3035
"typescript-eslint": "^8.30.1"
3136
},
3237
"peerDependencies": {
38+
"@pulse-editor/shared-utils": "0.1.1-alpha.0",
3339
"react": "^19.0.0",
34-
"react-dom": "^19.0.0",
35-
"@pulse-editor/types": "*",
36-
"@pulse-editor/shared-utils": "*"
40+
"react-dom": "^19.0.0"
3741
}
3842
}

npm-packages/react-api/rollup.config.mjs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ export default {
99
input: "src/main.ts",
1010
output: [
1111
{
12-
file: "dist/bundle.js",
12+
file: "dist/main.js",
1313
format: "cjs",
1414
},
1515
{
16-
file: "dist/bundle.es.js",
16+
file: "dist/main.es.js",
1717
format: "es",
1818
exports: "named",
1919
},
@@ -28,7 +28,10 @@ export default {
2828
exclude: ["node_modules/**"],
2929
}),
3030
typescript({
31-
exclude: ["node_modules/**", "src/stories/**"],
31+
declaration: true,
32+
declarationDir: "dist",
33+
rootDir: "src",
34+
exclude: ["node_modules/**"],
3235
}),
3336
terser(),
3437
],

0 commit comments

Comments
 (0)