forked from shadowwalker/next-pwa
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(next-pwa): removed
clean-webpack-plugin
[bump]
- Loading branch information
Showing
82 changed files
with
10,293 additions
and
8,261 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
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,7 @@ | ||
--- | ||
"@ducanh2912/next-pwa": patch | ||
--- | ||
|
||
chore(next-pwa): removed `clean-webpack-plugin` | ||
|
||
- This plugin is... unmaintained, and we could use `fs.rmSync` anyway. |
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,48 @@ | ||
name: Bug report for `next-pwa` | ||
description: Create a bug report for `@ducanh2912/next-pwa`. | ||
title: "[Bug - next-pwa]: " | ||
labels: ["bug", "next-pwa", "triage"] | ||
assignees: | ||
- DuCanhGH | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: Provide environment information | ||
description: Please provide the version of `next` and `@ducanh2912/next-pwa` that you are currently using. | ||
validations: | ||
required: true | ||
- type: input | ||
attributes: | ||
label: Link to reproduction - Issues with a link to complete (but minimal) reproduction code help us address them faster | ||
description: A link to a GitHub repository of a minimal reproduction. Minimal reproductions should be created from [our bug report template with `npx create-next-app -e https://github.com/DuCanhGH/next-pwa/tree/master/examples/reproduction-template`](https://github.com/DuCanhGH/next-pwa/tree/master/examples/reproduction-template) and should include only changes that contribute to the issue. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: To reproduce | ||
description: Steps to reproduce the behavior, please provide a clear description of how to reproduce the issue, based on the linked minimal reproduction. If you are using code blocks, make sure that [syntax highlighting is correct](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#syntax-highlighting) and double check that the rendered preview is not broken. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Describe the bug | ||
description: A clear and concise description of what the bug is. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Expected behavior | ||
description: A clear and concise description of what you expected to happen. | ||
validations: | ||
required: true | ||
- type: markdown | ||
attributes: | ||
value: Before posting the issue go through the steps you've written down to make sure the steps provided are detailed and clear. | ||
- type: textarea | ||
attributes: | ||
label: Screenshots (if relevant) | ||
description: Please also provide some screenshots if you can :) Thanks! | ||
- type: textarea | ||
attributes: | ||
label: Additional information (if relevant) | ||
description: Please also provide some additional information about the issue if you can :) Thanks! |
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,31 @@ | ||
name: Feature request | ||
description: Create a feature request | ||
title: "[Feature request]: " | ||
labels: ["feature-request", "triage"] | ||
assignees: | ||
- DuCanhGH | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: Thanks for taking the time to file a feature request! Please fill out this form as completely as possible. | ||
- type: markdown | ||
attributes: | ||
value: 'Feature requests will be converted to the GitHub Discussions "Ideas" section when suitable.' | ||
- type: textarea | ||
attributes: | ||
label: Describe the feature you'd like to request | ||
description: A clear and concise description of what you want and what your use case is. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Describe the solution you'd like | ||
description: A clear and concise description of what you want to happen. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Describe alternatives you've considered | ||
description: A clear and concise description of any alternative solutions or features you've considered. | ||
validations: | ||
required: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Documentation feedback | ||
description: Create a feedback for the documentation. | ||
title: "[Docs]: " | ||
labels: ["docs", "triage"] | ||
assignees: | ||
- DuCanhGH | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: Provide environment information | ||
description: Please provide the version of `next` and `@ducanh2912/next-pwa` that you are currently using. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Describe the problem | ||
description: A clear and concise description of what the problem is. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Expected behavior | ||
description: A clear and concise description of what you expected to see. | ||
validations: | ||
required: true | ||
- type: markdown | ||
attributes: | ||
value: Before posting the issue go through the steps you've written down to make sure the steps provided are detailed and clear. | ||
- type: textarea | ||
attributes: | ||
label: Screenshots (if relevant) | ||
description: Please also provide some screenshots if you can :) Thanks! | ||
- type: textarea | ||
attributes: | ||
label: Additional information (if relevant) | ||
description: Please also provide some additional information about the issue if you can :) Thanks! |
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,41 @@ | ||
name: Build and test | ||
on: [workflow_call] | ||
env: | ||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | ||
TURBO_REMOTE_ONLY: true | ||
jobs: | ||
build_and_lint_check: | ||
name: 🔎 Typecheck | ||
uses: ./.github/workflows/build-reusable.yml | ||
with: | ||
afterBuild: pnpm typecheck | ||
secrets: inherit | ||
test-integration-dev: | ||
name: ⚫️ Run Jest (development mode) integration tests | ||
uses: ./.github/workflows/build-reusable.yml | ||
with: | ||
afterBuild: | | ||
NEXT_TEST_MODE=dev pnpm test -- -- __tests__/integration --ci --runInBand | ||
secrets: inherit | ||
test-integration-prod: | ||
name: ⚫️ Run Jest (production mode) integration tests | ||
uses: ./.github/workflows/build-reusable.yml | ||
with: | ||
afterBuild: | | ||
NEXT_TEST_MODE=start pnpm test -- -- __tests__/integration --ci --runInBand | ||
secrets: inherit | ||
test-e2e-dev: | ||
name: ⚫️ Run Jest (development mode) E2E tests | ||
uses: ./.github/workflows/build-reusable.yml | ||
with: | ||
afterBuild: | | ||
NEXT_TEST_MODE=dev pnpm test -- -- __tests__/e2e --ci --runInBand | ||
secrets: inherit | ||
test-e2e-prod: | ||
name: ⚫️ Run Jest (production mode) E2E tests | ||
uses: ./.github/workflows/build-reusable.yml | ||
with: | ||
afterBuild: | | ||
NEXT_TEST_MODE=start pnpm test -- -- __tests__/e2e --ci --runInBand | ||
secrets: inherit |
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,53 @@ | ||
name: Build reusable | ||
on: | ||
workflow_call: | ||
inputs: | ||
skipInstallBuild: | ||
required: false | ||
description: "whether to skip pnpm install && pnpm build" | ||
type: string | ||
nodeVersion: | ||
required: false | ||
description: "version of Node.js to use" | ||
type: string | ||
pnpmVersion: | ||
required: false | ||
description: "version of pnpm to use" | ||
type: string | ||
afterBuild: | ||
required: false | ||
description: "additional steps to run" | ||
type: string | ||
env: | ||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | ||
TURBO_REMOTE_ONLY: true | ||
jobs: | ||
build: | ||
name: ⬣, 🔎, 🔨 Typecheck, lint, and build on Node ${{ matrix.node-version }} and ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
node-version: ${{ fromJson(inputs.nodeVersion || '["20.x"]') }} | ||
pnpm-version: ${{ fromJson(inputs.pnpmVersion || '["9.x"]') }} | ||
os: [ubuntu-latest] | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
- name: Use pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: ${{ matrix.pnpm-version }} | ||
- name: Use Node ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "pnpm" | ||
- name: Install dependencies | ||
run: pnpm install | ||
if: ${{ inputs.skipInstallBuild != 'yes' }} | ||
- name: Build | ||
run: pnpm build | ||
if: ${{ inputs.skipInstallBuild != 'yes' }} | ||
- name: Run after build | ||
run: /bin/bash -c "${{ inputs.afterBuild }}" |
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,30 @@ | ||
name: Close inactive issues | ||
on: | ||
schedule: | ||
- cron: "30 1 * * *" | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
close-issues: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # only for delete-branch option | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/stale@v8 | ||
with: | ||
days-before-issue-stale: 30 | ||
days-before-issue-close: 14 | ||
stale-issue-label: "stale" | ||
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity." | ||
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." | ||
days-before-pr-stale: 30 | ||
days-before-pr-close: 14 | ||
stale-pr-label: "stale" | ||
stale-pr-message: "This PR is stale because it has been open for 30 days with no activity." | ||
close-pr-message: "This PR was closed because it has been inactive for 14 days since being marked as stale." | ||
exempt-issue-labels: "no-stale,needs-help,wip" | ||
exempt-pr-labels: "no-stale,needs-help,wip" | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
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,52 @@ | ||
name: Publish packages to npm | ||
on: | ||
push: | ||
branches: | ||
- master | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
env: | ||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | ||
TURBO_REMOTE_ONLY: true | ||
jobs: | ||
test: | ||
name: ⬣, 🔎, 🔨 Test before releasing | ||
uses: ./.github/workflows/build-and-test.yml | ||
secrets: inherit | ||
publish: | ||
name: 🚀 Release packages | ||
needs: [test] | ||
runs-on: [ubuntu-latest] | ||
permissions: | ||
contents: write | ||
id-token: write | ||
strategy: | ||
matrix: | ||
node-version: ["20.x"] | ||
pnpm-version: ["9.x"] | ||
if: "${{ contains(github.event.head_commit.message, '[bump]') || contains(github.event.head_commit.message, 'chore(packages): publish packages') }}" | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
- name: Use pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: ${{ matrix.pnpm-version }} | ||
- name: Use Node ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "pnpm" | ||
- name: Install dependencies | ||
run: pnpm install | ||
- name: Publish to npm | ||
uses: changesets/action@v1 | ||
with: | ||
commit: "chore(packages): publish packages" | ||
title: "chore(packages): publish packages" | ||
publish: pnpm publish-packages | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
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,38 @@ | ||
name: Check a pull request | ||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
env: | ||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | ||
TURBO_REMOTE_ONLY: true | ||
jobs: | ||
ensure_changelog_exists: | ||
name: 🔎 Ensure that .changeset is not empty | ||
runs-on: [ubuntu-latest] | ||
strategy: | ||
matrix: | ||
node-version: ["20.x"] | ||
pnpm-version: ["9.x"] | ||
if: "${{ !contains(github.event.pull_request.title, 'chore(packages): publish packages') }}" | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: 0 | ||
- name: Use Node ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install changeset CLI | ||
run: npm i -g @changesets/cli@$(node -p "require('./package.json').devDependencies['@changesets/cli']") | ||
- name: Ensure that a changelog is added | ||
run: npx changeset status --since=origin/master | ||
test: | ||
name: ⬣, 🔎, 🔨 Test PR | ||
uses: ./.github/workflows/build-and-test.yml | ||
secrets: inherit |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.