Skip to content

Commit 940044e

Browse files
authored
fix: use npm and remove card preview for now (#4)
Including playwright was causing issues. pnpm doesn't play nicely with vscode extensions.
1 parent 489be26 commit 940044e

File tree

12 files changed

+33
-5149
lines changed

12 files changed

+33
-5149
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@
1616

1717
* @jpoehnelt
1818
pnpm-lock.yaml @googleworkspace-bot @jpoehnelt
19+
package-lock.json @googleworkspace-bot @jpoehnelt

.github/workflows/release.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,13 @@ jobs:
2828
id-token: write
2929
steps:
3030
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31-
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
3231
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
33-
with:
34-
cache: "pnpm"
35-
- run: pnpm install
36-
- run: pnpm build
37-
- run: pnpm lint
38-
- run: pnpm check
39-
- run: xvfb-run -a pnpm test
40-
- run: pnpm ci:package
32+
- run: npm ci
33+
- run: npm run build
34+
- run: npm run lint
35+
- run: npm run check
36+
- run: xvfb-run -a npm test
37+
- run: npm run ci:package
4138
- run: |
4239
git config --global user.name "googleworkspace-bot"
4340
git config --global user.email "[email protected]"
@@ -51,5 +48,5 @@ jobs:
5148
commit: "chore: release"
5249
commitMode: github-api
5350
setupGitUser: false
54-
publish: "pnpm ci:release"
55-
version: "pnpm ci:version"
51+
publish: "npm run ci:release"
52+
version: "npm run ci:version"

.github/workflows/test.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,10 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25-
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
2625
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
27-
with:
28-
cache: "pnpm"
29-
- run: pnpm install
30-
- run: pnpm build
31-
- run: pnpm lint
32-
- run: pnpm check
33-
- run: xvfb-run -a pnpm test
34-
- run: pnpm ci:package
26+
- run: npm ci
27+
- run: npm run build
28+
- run: npm run lint
29+
- run: npm run check
30+
- run: xvfb-run -a npm test
31+
- run: npm run ci:package

.husky/pre-commit

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/bin/sh
22

3-
pnpm exec lint-staged
4-
pnpm readme
3+
npx lint-staged

.husky/pre-push

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22

3-
pnpm lint
4-
pnpm check
3+
npm run lint
4+
npm run check

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,10 @@ This VS Code extension provides a set of tools to help Google Workspace develope
44

55
## Features
66

7-
- **Preview Google Workspace Cards**: Live preview of [Card-based interfaces](https://developers.google.com/workspace/add-ons/concepts/card-interfaces) for Google Workspace Add-ons and Google Chat apps.
87
- **OAuth2 Scope Linting**: Get warnings and additional information for Google Workspace [OAuth2 scopes](https://developers.google.com/identity/protocols/oauth2/scopes) in your code.
98

109
## Usage
1110

12-
### Preview Google Workspace Cards
13-
14-
1. Open a file containing a Google Workspace Card JSON.
15-
2. Select the JSON content you want to preview.
16-
3. Run the **Preview Google Workspace Card JSON** command from the command palette.
17-
1811
### OAuth2 Scope Linting
1912

2013
Warnings and suggestions will automatically appear for OAuth2 scopes in your code.

package-lock.json

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

package.json

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@
5555
"onStartupFinished"
5656
],
5757
"scripts": {
58-
"ci:release": "changeset publish && pnpm ci:publish",
59-
"ci:version": "changeset version && pnpm install --lockfile-only --engine-strict=false",
60-
"ci:package": "vsce package --no-dependencies",
61-
"ci:publish": "vsce publish --no-dependencies",
62-
"vscode:prepublish": "pnpm build",
58+
"ci:release": "changeset publish && npm run ci:publish",
59+
"ci:version": "changeset version && npm run install --lockfile-only --engine-strict=false",
60+
"ci:package": "vsce package",
61+
"ci:publish": "vsce publish",
62+
"vscode:prepublish": "npm run build",
6363
"build": "tsup",
6464
"dev": "tsup --watch",
65-
"pretest": "pnpm build",
65+
"pretest": "npm run build",
6666
"format": "prettier --write . && biome check --write .",
6767
"lint": "prettier --check . && biome check",
6868
"check": "tsc --noEmit",
@@ -83,7 +83,6 @@
8383
"tsup": "^8.5.0",
8484
"typescript": "^5.8.3"
8585
},
86-
"packageManager": "[email protected]",
8786
"husky": {
8887
"hooks": {
8988
"pre-commit": "lint-staged"
@@ -96,8 +95,5 @@
9695
"**/*.{html,yaml,yml,md}": [
9796
"prettier --write"
9897
]
99-
},
100-
"dependencies": {
101-
"@googleworkspace/card-dev-assist": "^0.4.0"
10298
}
103-
}
99+
}

0 commit comments

Comments
 (0)