Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@

* @jpoehnelt
pnpm-lock.yaml @googleworkspace-bot @jpoehnelt
package-lock.json @googleworkspace-bot @jpoehnelt
19 changes: 8 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,13 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
cache: "pnpm"
- run: pnpm install
- run: pnpm build
- run: pnpm lint
- run: pnpm check
- run: xvfb-run -a pnpm test
- run: pnpm ci:package
- run: npm ci
- run: npm run build
- run: npm run lint
- run: npm run check
- run: xvfb-run -a npm test
- run: npm run ci:package
- run: |
git config --global user.name "googleworkspace-bot"
git config --global user.email "[email protected]"
Expand All @@ -51,5 +48,5 @@ jobs:
commit: "chore: release"
commitMode: github-api
setupGitUser: false
publish: "pnpm ci:release"
version: "pnpm ci:version"
publish: "npm run ci:release"
version: "npm run ci:version"
15 changes: 6 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
cache: "pnpm"
- run: pnpm install
- run: pnpm build
- run: pnpm lint
- run: pnpm check
- run: xvfb-run -a pnpm test
- run: pnpm ci:package
- run: npm ci
- run: npm run build
- run: npm run lint
- run: npm run check
- run: xvfb-run -a npm test
- run: npm run ci:package
3 changes: 1 addition & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/sh

pnpm exec lint-staged
pnpm readme
npx lint-staged
4 changes: 2 additions & 2 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh

pnpm lint
pnpm check
npm run lint
npm run check
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,10 @@ This VS Code extension provides a set of tools to help Google Workspace develope

## Features

- **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.
- **OAuth2 Scope Linting**: Get warnings and additional information for Google Workspace [OAuth2 scopes](https://developers.google.com/identity/protocols/oauth2/scopes) in your code.

## Usage

### Preview Google Workspace Cards

1. Open a file containing a Google Workspace Card JSON.
2. Select the JSON content you want to preview.
3. Run the **Preview Google Workspace Card JSON** command from the command palette.

### OAuth2 Scope Linting

Warnings and suggestions will automatically appear for OAuth2 scopes in your code.
71 changes: 7 additions & 64 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 7 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@
"onStartupFinished"
],
"scripts": {
"ci:release": "changeset publish && pnpm ci:publish",
"ci:version": "changeset version && pnpm install --lockfile-only --engine-strict=false",
"ci:package": "vsce package --no-dependencies",
"ci:publish": "vsce publish --no-dependencies",
"vscode:prepublish": "pnpm build",
"ci:release": "changeset publish && npm run ci:publish",
"ci:version": "changeset version && npm run install --lockfile-only --engine-strict=false",
"ci:package": "vsce package",
"ci:publish": "vsce publish",
"vscode:prepublish": "npm run build",
"build": "tsup",
"dev": "tsup --watch",
"pretest": "pnpm build",
"pretest": "npm run build",
"format": "prettier --write . && biome check --write .",
"lint": "prettier --check . && biome check",
"check": "tsc --noEmit",
Expand All @@ -83,7 +83,6 @@
"tsup": "^8.5.0",
"typescript": "^5.8.3"
},
"packageManager": "[email protected]",
"husky": {
"hooks": {
"pre-commit": "lint-staged"
Expand All @@ -96,8 +95,5 @@
"**/*.{html,yaml,yml,md}": [
"prettier --write"
]
},
"dependencies": {
"@googleworkspace/card-dev-assist": "^0.4.0"
}
}
}
Loading