-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: upgrade and make boilerplate client focus again (#44)
* refactor: make client focus again * fix: build * chore: add verbose for commitlint * chore: upgrade node version * chore: update cypress actions env * fix: remove trpc + make client focus (#45) * fix: remove trpc + make client focus * fix: build error * fix: lock file * fix: cypress build command * chore: update required node version * fix: generate swagger script * chore: clean up * chore: upgrade node version * chore: update readme --------- Co-authored-by: Chinh Le <[email protected]>
- Loading branch information
1 parent
810da5b
commit d28d397
Showing
83 changed files
with
13,273 additions
and
14,491 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 |
---|---|---|
@@ -1,2 +1 @@ | ||
NEXT_PUBLIC_BASE_URL='https://demo-api.dwarvesf.com/api/v1' | ||
NEXT_PUBLIC_API_MOCKING=disabled | ||
NEXT_PUBLIC_BASE_URL='/api' |
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,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no-install commitlint --edit "" | ||
pnpm dlx commitlint --edit $1 --verbose |
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,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
pnpm lint-staged |
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 @@ | ||
v20 |
This file was deleted.
Oops, something went wrong.
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,56 @@ | ||
import type { StorybookConfig } from '@storybook/nextjs' | ||
import path from 'path' | ||
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin') | ||
|
||
const storybookConfig: StorybookConfig = { | ||
framework: { | ||
name: '@storybook/nextjs', | ||
options: { builder: { useSWC: true } }, | ||
}, | ||
staticDirs: ['../public'], | ||
stories: [ | ||
'../src/components/**/*.stories.mdx', | ||
'../src/components/**/*.stories.@(js|jsx|ts|tsx)', | ||
], | ||
addons: [ | ||
'@storybook/addon-essentials', | ||
'@storybook/addon-storysource', | ||
'@storybook/addon-styling-webpack', | ||
], | ||
webpackFinal: async (config) => { | ||
if (config.resolve) { | ||
config.resolve.plugins = [ | ||
new TsconfigPathsPlugin({ | ||
configFile: path.resolve(__dirname, '../tsconfig.json'), | ||
}), | ||
] | ||
} | ||
|
||
if (config.module?.rules) { | ||
// This modifies the existing image rule to exclude `.svg` files | ||
// since we handle those with `@svgr/webpack`. | ||
const imageRule = config.module.rules.find((rule: any) => { | ||
if (typeof rule !== 'string' && rule.test instanceof RegExp) { | ||
return rule.test.test('.svg') | ||
} | ||
}) | ||
if (typeof imageRule !== 'string') { | ||
;(imageRule as any).exclude = /\.svg$/ | ||
} | ||
|
||
config.module.rules.push({ | ||
test: /\.svg$/, | ||
use: ['@svgr/webpack'], | ||
}) | ||
} | ||
|
||
config.module?.rules?.push({ | ||
test: /\.mjs$/, | ||
include: [/node_modules/], | ||
type: 'javascript/auto', | ||
}) | ||
|
||
return config | ||
}, | ||
} | ||
export default storybookConfig |
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
File renamed without changes.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
d28d397
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://df-nextjs-boilerplate-storybook.netlify.app as production
🚀 Deployed on https://66b5ed603bacca45a4bb5a9a--df-nextjs-boilerplate-storybook.netlify.app