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
5 changes: 5 additions & 0 deletions .changeset/eight-jokes-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"google-workspace-vscode-extension": patch
---

Change to monorepo structure.
20 changes: 12 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,17 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- 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
with:
node-version: "lts/*"
cache: "pnpm"
- run: pnpm i
- run: pnpm build
- run: pnpm lint
- run: pnpm check
- run: pnpm test
- run: pnpm ci:package
- run: |
git config --global user.name "googleworkspace-bot"
git config --global user.email "[email protected]"
Expand All @@ -49,5 +53,5 @@ jobs:
commit: "chore: release"
commitMode: github-api
setupGitUser: false
publish: "npm run ci:release"
version: "npm run ci:version"
publish: "pnpm ci:release"
version: "pnpm ci:version"
16 changes: 10 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- 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
with:
node-version: "lts/*"
cache: "pnpm"
- run: pnpm i
- run: pnpm build
- run: pnpm lint
- run: pnpm check
- run: pnpm test
- run: pnpm ci:package
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- run: npm ci
- run: npm run fetch-apis
with:
node-version: "lts/*"
cache: "pnpm"
- run: pnpm i
- run: pnpm ci:update
- run: pnpm lint
- run: pnpm check
- run: pnpm test
- name: Check for changes
id: changes
uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47.0.0
with:
files: src/apis.ts
files: packages/vscode-extension/src/apis.ts
- name: Create Changeset
if: steps.changes.outputs.any_changed == 'true'
run: |
cat <<EOF > .changeset/update-apis.md
---
"google-workspace-developer-tools": patch
"@google-workspace/vscode-extension": patch
---

Update APIs and scopes via the Discovery service
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ dist
node_modules
.vscode-test/
*.vsix
.env
.turbo
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

npx lint-staged
pnpx 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

npm run lint
npm run check
pnpm run lint
pnpm run check
13 changes: 13 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@ use GitHub pull requests for this purpose. Consult
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
information on using pull requests.

## Changesets

This project uses [Changesets](https://github.com/changesets/changesets) to manage releases.
If you are making a change that should be included in the release notes, you must add a changeset.

To add a changeset, run the following command:

```sh
pnpm changeset
```

You will be prompted to select the packages that have been changed, the type of change (major, minor, or patch), and to provide a description of the change.

## Community Guidelines

This project follows [Google's Open Source Community
Expand Down
42 changes: 4 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,7 @@
# Google Workspace Developer Tools
# Google Workspace Developer Tools Monorepo

This VS Code extension provides a set of tools to help Google Workspace developers.
This repository is a monorepo for tools that help Google Workspace developers.

## Features
## Packages

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

![OAuth2 Scope Linting](./assets/scope-diagnostics.png)

## Usage

### OAuth2 Scope Linting

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

## Installation

You can install the Google Workspace Developer Tools extension in a few ways.

### From within VS Code (Recommended)

1. Launch Visual Studio Code.
2. Go to the **Extensions** view (`Ctrl+Shift+X` or `Cmd+Shift+X`).
3. Search for `Google Workspace Developer Tools`.
4. Click **Install**.

### From a Marketplace

Install the extension from your preferred marketplace:

- [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=google-workspace.google-workspace-developer-tools)
- [Open VSX Registry](https://open-vsx.org/extension/google-workspace/google-workspace-developer-tools)

### Using the Command Line

If you have the `code` command-line tool installed, you can install the extension with this command:

```sh
code --install-extension google-workspace.google-workspace-developer-tools
```
- [`@google-workspace/vscode-extension`](./packages/vscode-extension): A VS Code extension with tools to help Google Workspace developers.
Loading