generated from storybookjs/addon-kit
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from kickstartDS/feature/upgrade-to-storybook7
Upgrade addon to Storybook 7
- Loading branch information
Showing
26 changed files
with
5,405 additions
and
9,114 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
18.12 |
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,15 @@ | ||
import { StorybookConfig } from '@storybook/react-vite'; | ||
|
||
const config: StorybookConfig = { | ||
stories: [ | ||
"../stories/**/*.mdx", | ||
"../stories/**/*.stories.@(js|jsx|ts|tsx)", | ||
], | ||
addons: ["@storybook/addon-essentials", "../manager.js"], | ||
framework: { | ||
name: '@storybook/react-vite', | ||
options: {} | ||
}, | ||
}; | ||
|
||
export default config; |
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,20 @@ | ||
import { Preview } from '@storybook/react'; | ||
import { unpackDecorator } from "@kickstartds/core/lib/storybook"; | ||
|
||
import "@kickstartds/core/lib/design-tokens/tokens.css"; | ||
import "@kickstartds/base/lib/global/base.js"; | ||
import "@kickstartds/base/lib/global/base.css"; | ||
|
||
const preview: Preview = { | ||
parameters: { | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/, | ||
}, | ||
}, | ||
}, | ||
decorators: [unpackDecorator], | ||
} | ||
|
||
export default preview; |
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 @@ | ||
const esbuild = require("esbuild"); | ||
const { nodeExternalsPlugin } = require("esbuild-node-externals"); | ||
|
||
/** @type import("esbuild").BuildOptions */ | ||
const sharedConfig = { | ||
entryPoints: ["src/index.ts", "src/manager.ts"], | ||
bundle: true, | ||
platform: "browser", | ||
minify: true, | ||
plugins: [ | ||
nodeExternalsPlugin({ | ||
dependencies: true, | ||
devDependencies: false, | ||
peerDependencies: true, | ||
}), | ||
], | ||
logLevel: "info", | ||
}; | ||
|
||
esbuild.build({ | ||
...sharedConfig, | ||
format: "esm", | ||
outdir: "dist/esm", | ||
splitting: true, | ||
}); | ||
esbuild.build({ | ||
...sharedConfig, | ||
format: "cjs", | ||
outdir: "dist/cjs", | ||
}); |
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 @@ | ||
export * from "./dist/esm/manager"; |
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 @@ | ||
diff --git a/node_modules/decomment/lib/utils.js b/node_modules/decomment/lib/utils.js | ||
index bca12da..b9daf81 100644 | ||
--- a/node_modules/decomment/lib/utils.js | ||
+++ b/node_modules/decomment/lib/utils.js | ||
@@ -1,7 +1,7 @@ | ||
'use strict'; | ||
|
||
const esprima = require('esprima'); | ||
-const os = require('os'); | ||
+// const os = require('os'); | ||
|
||
//////////////////////////////////////////////////// | ||
// Automatically calculates and returns End of Line, | ||
@@ -20,9 +20,9 @@ function getEOL(text) { | ||
} | ||
idx++; | ||
} | ||
- if (unix === windows) { | ||
- return os.EOL; | ||
- } | ||
+ // if (unix === windows) { | ||
+ // return os.EOL; | ||
+ // } | ||
return unix > windows ? '\n' : '\r\n'; | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.