generated from theholocron/react-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add in dependabot & lighthouse workflows (#10)
* feat: add in dependabot & lighthouse workflows Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * chore: fix types Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * chore: fix build Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * chore: more fixes Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * chore: fix linting issues Signed-off-by: super-linter <super-linter@super-linter.dev> * chore: fix lighthouse config Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * chore: fix lighthouse Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * chore: fix linting issues Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * chore: fix linting Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * chore: fix linting issues Signed-off-by: super-linter <super-linter@super-linter.dev> * chore: fix lighthouse build directory Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> * chore: fix linting Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> --------- Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> Signed-off-by: super-linter <super-linter@super-linter.dev> Co-authored-by: iamnewton <iamnewton@users.noreply.github.com>
- Loading branch information
Showing
22 changed files
with
589 additions
and
409 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 |
---|---|---|
@@ -1 +1 @@ | ||
NEXT_PUBLIC_ENVIRONMENT="production" | ||
NEXT_PUBLIC_ENVIRONMENT=production |
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 @@ | ||
NEXT_PUBLIC_ENVIRONMENT="development" | ||
NEXT_PUBLIC_ENVIRONMENT=development |
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,26 @@ | ||
name: Dependabot auto-merge | ||
on: | ||
- pull_request | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
dependabot: | ||
name: Update the dependencies | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'theholocron/nextjs-template' | ||
steps: | ||
- uses: dependabot/fetch-metadata@4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d | ||
name: Fetch Dependabot metadata | ||
id: metadata | ||
with: | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
- run: gh pr merge --auto --merge "$PR_URL" | ||
name: Enable auto-merge for Dependabot PRs | ||
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GH_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
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 |
---|---|---|
|
@@ -88,7 +88,6 @@ reports | |
dist | ||
super-linter-output | ||
.next | ||
next-env.d.ts | ||
out | ||
build | ||
.vercel | ||
|
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,7 +1,4 @@ | ||
import { handlers as authHandlers } from "../../src/auth/handlers"; | ||
import { handlers as taskHandlers } from "../../src/tasks/handlers"; | ||
|
||
export const handlers = [ | ||
...taskHandlers, | ||
...authHandlers, | ||
]; | ||
export const handlers = [...taskHandlers, ...authHandlers]; |
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,14 @@ | ||
{ | ||
"ci": { | ||
"collect": { | ||
"url": ["http://localhost:3000/"], | ||
"startServerCommand": "npx serve@latest out" | ||
}, | ||
"assert": { | ||
"preset": "lighthouse:recommended" | ||
}, | ||
"upload": { | ||
"target": "temporary-public-storage" | ||
} | ||
} | ||
} |
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,5 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/image-types/global" /> | ||
|
||
// NOTE: This file should not be edited | ||
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information. |
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,5 +1,15 @@ | ||
/** @type {import('next').NextConfig} */ | ||
/** | ||
* @see https://nextjs.org/docs/app/building-your-application/configuring | ||
* @type {import('next').NextConfig} | ||
*/ | ||
import bundleAnalyzer from "@next/bundle-analyzer"; | ||
|
||
const nextConfig = {}; | ||
const config = { | ||
output: "export", | ||
}; | ||
|
||
export default nextConfig; | ||
const withBundleAnalyzer = bundleAnalyzer({ | ||
enabled: process.env.ANALYZE === "true", | ||
}); | ||
|
||
export default withBundleAnalyzer(config); |
Oops, something went wrong.