-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
1,887 additions
and
474 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 |
---|---|---|
|
@@ -21,6 +21,7 @@ cypress/videos/ | |
out/ | ||
build/ | ||
local/ | ||
dist/ | ||
|
||
# next-sitemap | ||
public/robots.txt | ||
|
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 @@ | ||
strict-peer-dependencies=false |
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,2 @@ | ||
**/.next | ||
.next |
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,2 @@ | ||
CHANGELOG.md | ||
.github/workflows/codeql-analysis.yml |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Sentry | ||
.sentryclirc |
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,6 +1,38 @@ | ||
module.exports = { | ||
// This file sets a custom webpack configuration to use your Next.js app | ||
// with Sentry. | ||
// https://nextjs.org/docs/api-reference/next.config.js/introduction | ||
// https://docs.sentry.io/platforms/javascript/guides/nextjs/ | ||
|
||
const { withSentryConfig } = require('@sentry/nextjs') | ||
|
||
const moduleExports = { | ||
reactStrictMode: true, | ||
experimental: { | ||
transpilePackages: ['ui'], | ||
// https://beta.nextjs.org/docs/api-reference/next.config.js#transpilepackages | ||
transpilePackages: ['@wayofdev/ui'], | ||
|
||
sentry: { | ||
// Use `hidden-source-map` rather than `source-map` as the Webpack `devtool` | ||
// for client-side builds. (This will be the default starting in | ||
// `@sentry/nextjs` version 8.0.0.) See | ||
// https://webpack.js.org/configuration/devtool/ and | ||
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#use-hidden-source-map | ||
// for more information. | ||
hideSourceMaps: true, | ||
}, | ||
} | ||
|
||
const sentryWebpackPluginOptions = { | ||
// Additional config options for the Sentry Webpack plugin. Keep in mind that | ||
// the following options are set automatically, and overriding them is not | ||
// recommended: | ||
// release, url, org, project, authToken, configFile, stripPrefix, | ||
// urlPrefix, include, ignore | ||
|
||
silent: true, // Suppresses all logs | ||
// For all available options, see: | ||
// https://github.com/getsentry/sentry-webpack-plugin#options. | ||
} | ||
|
||
// Make sure adding Sentry options is the last code to run before exporting, to | ||
// ensure that your source maps include changes from all other Webpack plugins | ||
module.exports = withSentryConfig(moduleExports, sentryWebpackPluginOptions) |
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 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,35 @@ | ||
// Customized postcss | ||
// @link https://nextjs.org/docs/advanced-features/customizing-postcss-config | ||
// @link https://tailwindcss.com/docs/using-with-preprocessors | ||
|
||
const isProd = process.env.NODE_ENV === 'production' | ||
const supportsIE11 = false | ||
const enableCssGrid = false | ||
|
||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
...(isProd | ||
? { | ||
'tailwindcss/nesting': {}, | ||
'postcss-100vh-fix': {}, | ||
'postcss-flexbugs-fixes': {}, | ||
'postcss-preset-env': { | ||
autoprefixer: { | ||
flexbox: 'no-2009', | ||
// https://github.com/postcss/autoprefixer#does-autoprefixer-polyfill-grid-layout-for-ie | ||
...(enableCssGrid | ||
? { | ||
grid: 'autoplace', | ||
} | ||
: {}), | ||
}, | ||
stage: 3, | ||
features: { | ||
'custom-properties': supportsIE11, | ||
}, | ||
}, | ||
} | ||
: {}), | ||
}, | ||
} |
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,32 @@ | ||
// This file configures the initialization of Sentry on the browser. | ||
// The config you add here will be used whenever a page is visited. | ||
// https://docs.sentry.io/platforms/javascript/guides/nextjs/ | ||
|
||
import { init as sentryInit } from '@sentry/nextjs' | ||
|
||
sentryInit({ | ||
dsn: process.env.NEXT_SENTRY_DSN, | ||
|
||
// Adjust this value in production, or use tracesSampler for greater control | ||
// @see https://develop.sentry.dev/sdk/performance/ | ||
tracesSampleRate: ['false', '0'].includes(process.env.NEXT_SENTRY_TRACING ?? '') ? undefined : 1, | ||
|
||
// ... | ||
// Note: if you want to override the automatic release value, do not set a | ||
// `release` value here - use the environment variable `SENTRY_RELEASE`, so | ||
// that it will also get attached to your source maps | ||
beforeSend: async (event, hint) => { | ||
if (process.env.NODE_ENV === 'development') { | ||
console.log('Sentry event', event) | ||
console.log('Sentry hint', hint) | ||
} | ||
return event | ||
}, | ||
ignoreErrors: [ | ||
/** | ||
* @link https://github.com/WICG/ResizeObserver/issues/38#issuecomment-422126006, | ||
* @link https://stackoverflow.com/questions/49384120/resizeobserver-loop-limit-exceeded/50387233#50387233 | ||
*/ | ||
'ResizeObserver loop limit exceeded', | ||
], | ||
}) |
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,27 @@ | ||
// This file configures the initialization of Sentry on the server. | ||
// The config you add here will be used whenever the server handles a request. | ||
// https://docs.sentry.io/platforms/javascript/guides/nextjs/ | ||
|
||
import { init as sentryInit } from '@sentry/nextjs' | ||
|
||
sentryInit({ | ||
dsn: process.env.SENTRY_DSN || process.env.NEXT_SENTRY_DSN, | ||
|
||
// Adjust this value in production, or use tracesSampler for greater control | ||
// @see https://develop.sentry.dev/sdk/performance/ | ||
// To turn it off, remove the line | ||
// @see https://github.com/getsentry/sentry-javascript/discussions/4503#discussioncomment-2143116 | ||
tracesSampleRate: 1, | ||
|
||
// ... | ||
// Note: if you want to override the automatic release value, do not set a | ||
// `release` value here - use the environment variable `SENTRY_RELEASE`, so | ||
// that it will also get attached to your source maps | ||
beforeSend: async (event, hint) => { | ||
if (process.env.NODE_ENV === 'development') { | ||
console.log('Sentry event', event) | ||
console.log('Sentry hint', hint) | ||
} | ||
return event | ||
}, | ||
}) |
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,17 @@ | ||
import { Button } from '@wayofdev/ui' | ||
import * as React from 'react' | ||
|
||
export default function Web() { | ||
return ( | ||
<> | ||
<h1 className="text-3xl font-bold underline">Hello world!</h1> | ||
<div> | ||
<h1>Web</h1> | ||
<Button /> | ||
</div> | ||
<button className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"> | ||
Boop | ||
</button> | ||
</> | ||
) | ||
} |
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 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
content: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'], | ||
theme: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
} |
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,15 +1,22 @@ | ||
{ | ||
"extends": "tsconfig-config/next.json", | ||
"exclude": ["node_modules", "dist", "coverage"], | ||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], | ||
"include": ["next-env.d.ts", "**/*.d.ts", "**/*.ts", "**/*.tsx"], | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"baseUrl": "./", | ||
// "paths": { | ||
// "@/*": [ | ||
// "src/*" | ||
// ] | ||
// } | ||
"moduleResolution": "node" | ||
"target": "esnext", | ||
"baseUrl": "./src", | ||
"allowJs": true, | ||
"moduleResolution": "node", | ||
|
||
"noEmit": true, | ||
"module": "esnext", | ||
|
||
"jsx": "preserve", | ||
"paths": { | ||
"@/pages/*": ["./pages/*"], | ||
"@/public/*": ["../public/*"], | ||
"@wayofdev/ui/*": ["../../../packages/ui/src/*"], | ||
"@wayofdev/ui": ["../../../packages/ui/src/index"] | ||
} | ||
} | ||
} |
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 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,22 @@ | ||
{ | ||
"root": true, | ||
"extends": "custom", | ||
"plugins": ["import"], | ||
"rules": { | ||
"import/extensions": "off", | ||
"unicorn/prevent-abbreviations": [ | ||
"error", | ||
{ | ||
"replacements": { | ||
"env": { | ||
"environment": false | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"ignorePatterns": ["dist/**", ".next/**"], | ||
"parserOptions": { | ||
"project": ["tsconfig.json"] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.