-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Monorepo to PNPM and Changesets (#1037)
* fix: add missing deps and update to use pnpm * fix: missing deps * fix: ci * fix: dep update * fix: missing types * fix: add @types/jest to all * fix: add @types/node * fix: types dep * fix: missing logger plugin dep * fix: temp ts-ignore * fix: missing logger * fix: missing logger * fix: types * fix: missing deps * fix: missing deps * fix: missing deps * fix: missing deps * fix: types * fix: types * fix: deps * fix: deps * test: remove utils ts test * fix: lint * fix: ci jobs * fix: types * fix: lint * fix: types * fix: dep versions * chore: changeset * fix: Remove changelog from pr template * chore: update changelog headings * docs: changesets * ci: added release workflow * fix: pr feedback --------- Co-authored-by: Kawika Bader <[email protected]>
- Loading branch information
1 parent
3fb21db
commit 29f72a5
Showing
255 changed files
with
29,567 additions
and
48,952 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
"@gasket/plugin-dynamic-plugins": minor | ||
"@gasket/plugin-service-worker": minor | ||
"@gasket/plugin-docs-graphs": minor | ||
"@gasket/plugin-elastic-apm": minor | ||
"@gasket/plugin-https-proxy": minor | ||
"@gasket/plugin-docusaurus": minor | ||
"@gasket/plugin-middleware": minor | ||
"@gasket/plugin-typescript": minor | ||
"@gasket/plugin-happyfeet": minor | ||
"@gasket/typescript-tests": minor | ||
"@gasket/plugin-manifest": minor | ||
"@gasket/plugin-metadata": minor | ||
"@gasket/plugin-analyze": minor | ||
"@gasket/plugin-command": minor | ||
"@gasket/plugin-cypress": minor | ||
"@gasket/plugin-express": minor | ||
"@gasket/plugin-fastify": minor | ||
"@gasket/plugin-swagger": minor | ||
"@gasket/plugin-webpack": minor | ||
"@gasket/plugin-winston": minor | ||
"@gasket/plugin-workbox": minor | ||
"@gasket/plugin-logger": minor | ||
"@gasket/plugin-morgan": minor | ||
"@gasket/plugin-nextjs": minor | ||
"@gasket/preset-nextjs": minor | ||
"@gasket/plugin-https": minor | ||
"@gasket/plugin-mocha": minor | ||
"@gasket/plugin-redux": minor | ||
"@gasket/plugin-data": minor | ||
"@gasket/plugin-docs": minor | ||
"@gasket/plugin-intl": minor | ||
"@gasket/plugin-jest": minor | ||
"@gasket/plugin-lint": minor | ||
"generate-docs-index": minor | ||
"create-gasket-app": minor | ||
"@gasket/plugin-git": minor | ||
"@gasket/preset-api": minor | ||
"@gasket/react-intl": minor | ||
"@gasket/request": minor | ||
"@gasket/assets": minor | ||
"@gasket/nextjs": minor | ||
"@gasket/fetch": minor | ||
"@gasket/redux": minor | ||
"@gasket/utils": minor | ||
"@gasket/core": minor | ||
"@gasket/data": minor | ||
"@gasket/intl": minor | ||
--- | ||
|
||
Migrated packages to use PNPM and changesets. Fixed issues with types and dependencies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,61 @@ | ||
# Simple workflow for deploying static content to GitHub Pages | ||
name: Deploy Docs Site | ||
name: Deploy Docs Site to Github Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: [main] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow one concurrent deployment | ||
concurrency: | ||
group: "pages" | ||
group: pages | ||
cancel-in-progress: true | ||
|
||
env: | ||
# Hosted GitHub runners have 7 GB of memory available, let's use 6 GB | ||
NODE_OPTIONS: --max-old-space-size=6144 | ||
|
||
jobs: | ||
# Single deploy job since we're just deploying | ||
deploy: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: npm | ||
cache: pnpm | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
- name: Build Docs | ||
run: npm run docs | ||
- name: Build Docs Site | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Build documentation | ||
run: pnpm run docs | ||
|
||
- name: Build site | ||
working-directory: site | ||
run: npm run build | ||
- name: Setup Pages | ||
run: pnpm run build | ||
|
||
- name: Configure GitHub Pages | ||
uses: actions/configure-pages@v5 | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: site/build | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: Setup Node.js 20.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22.x | ||
cache: pnpm | ||
|
||
- name: Install Dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Create Release Pull Request or Publish to npm | ||
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
# This expects you to have a script called release which does a build for your packages and calls changeset publish | ||
publish: pnpm run release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
# - name: Send a Slack notification if a publish happens | ||
# if: steps.changesets.outputs.published == 'true' | ||
# # You can do something when a publish happens. | ||
# run: my-slack-bot send-notification --message "A new version of ${GITHUB_REPOSITORY} was published!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
registry=https://registry.npmjs.org/ | ||
package-manager=pnpm@latest | ||
link-workspace-packages=true | ||
strict-peer-dependencies=true | ||
strict-dependencies=true | ||
auto-install-peers=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.