-
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.
feat: migrate setup to pnpm, vitest and tsup
- Loading branch information
1 parent
46f8fe5
commit 3ef176c
Showing
94 changed files
with
916 additions
and
16,698 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 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,52 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json", | ||
"files": { | ||
"ignore": [ | ||
".idea/**", | ||
"node_modules/**", | ||
"dist/**", | ||
"coverage/**", | ||
"storybook-static/**", | ||
"pnpm-lock.yaml" | ||
] | ||
}, | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "space" | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true, | ||
"complexity": { | ||
"noForEach": "off" | ||
}, | ||
"style": { | ||
"noVar": "off" | ||
}, | ||
"a11y": { | ||
"noSvgWithoutTitle": "off" | ||
} | ||
} | ||
}, | ||
"overrides": [ | ||
{ | ||
"include": ["**/*.test.ts", "**/*.test.tsx"], | ||
"linter": { | ||
"rules": { | ||
"style": { | ||
"noUnusedTemplateLiteral": "off" | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"vcs": { | ||
"enabled": true, | ||
"clientKind": "git", | ||
"useIgnoreFile": 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
extends: ["@commitlint/config-conventional"], | ||
rules: { | ||
// Scopes are case insensitive (rather than lower case), most notably to support React components, e.g. fix(Button): | ||
'scope-case': [0], | ||
"scope-case": [0], | ||
}, | ||
} | ||
}; |
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
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 @@ | ||
it('should include hooks', () => {}) | ||
it("should include hooks", () => {}); |
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,9 +1,9 @@ | ||
export { default as useElementSize } from '@charlietango/use-element-size' | ||
export { default as useFocusTrap } from '@charlietango/use-focus-trap' | ||
export { default as useMedia } from '@charlietango/use-media' | ||
export { default as useScript } from '@charlietango/use-script' | ||
export { default as useToggle } from '@charlietango/use-toggle' | ||
export { default as useWindowSize } from '@charlietango/use-window-size' | ||
export { default as useInteraction } from '@charlietango/use-interaction' | ||
export { default as useClientHydrated } from '@charlietango/use-client-hydrated' | ||
export { default as useLazyRef } from '@charlietango/use-lazy-ref' | ||
export { default as useElementSize } from "@charlietango/use-element-size"; | ||
export { default as useFocusTrap } from "@charlietango/use-focus-trap"; | ||
export { default as useMedia } from "@charlietango/use-media"; | ||
export { default as useScript } from "@charlietango/use-script"; | ||
export { default as useToggle } from "@charlietango/use-toggle"; | ||
export { default as useWindowSize } from "@charlietango/use-window-size"; | ||
export { default as useInteraction } from "@charlietango/use-interaction"; | ||
export { default as useClientHydrated } from "@charlietango/use-client-hydrated"; | ||
export { default as useLazyRef } from "@charlietango/use-lazy-ref"; |
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,31 @@ | ||
import type { StorybookConfig } from "@storybook/react-vite"; | ||
|
||
const config: StorybookConfig = { | ||
framework: "@storybook/react-vite", | ||
stories: [ | ||
"../stories/*.@(story|stories).@(ts|tsx|js|jsx|mdx)", | ||
], | ||
addons: ["@storybook/addon-essentials"], | ||
core: { | ||
builder: "@storybook/builder-vite", | ||
}, | ||
typescript: { | ||
reactDocgen: "react-docgen", // or false if you don't need docgen at all | ||
}, | ||
/** | ||
* In preparation for the vite build plugin, add the needed config here. | ||
*/ | ||
async viteFinal(config) { | ||
if (config.optimizeDeps) { | ||
config.optimizeDeps.include = [ | ||
...(config.optimizeDeps.include ?? []), | ||
"@storybook/theming", | ||
"@storybook/addon-essentials/docs/mdx-react-shim", | ||
"@storybook/addon-actions", | ||
]; | ||
} | ||
return config; | ||
}, | ||
}; | ||
|
||
export default config; |
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,10 @@ | ||
import { addons } from "@storybook/manager-api"; | ||
import { themes } from "@storybook/theming"; | ||
|
||
addons.setConfig({ | ||
theme: { | ||
...themes.normal, | ||
brandTitle: "Hooks", | ||
brandUrl: "https://github.com/charlie-tango/hooks", | ||
}, | ||
}); |
Oops, something went wrong.