Skip to content

Commit

Permalink
chore: asset dir
Browse files Browse the repository at this point in the history
  • Loading branch information
hyochan committed Feb 7, 2024
1 parent 061c0b1 commit 164befe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = {
'../stories/**/*.stories.mdx',
'../stories/**/*.stories.@(js|jsx|ts|tsx)',
],
staticDirs: [{ from: '../public', to: '/assets' }],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
Expand Down
4 changes: 2 additions & 2 deletions .storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<link rel="shortcut icon" href="/static/icon.ico" />
<link rel="icon" type="image/png" href="/static/icon.png" sizes="192x192" />
<link rel="shortcut icon" href="/icon.ico" />
<link rel="icon" type="image/png" href="/icon.png" sizes="192x192" />
<style>
html {
font-size: 16px;
Expand Down
2 changes: 1 addition & 1 deletion .storybook/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {create} from '@storybook/theming';
const commonTheme = {
brandTitle: 'dooboo-ui',
brandUrl: 'https://dooboo-ui.dooboolab.com',
brandImage: '/static/icon.png',
brandImage: '/icon.png',
brandTarget: '_self',
stylePreview: true,
};
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"homepage": "https://dooboolab.github.io/dooboo-ui",
"homepage": "https://dooboo-ui.dooboolab.com",
"private": true,
"main": "node_modules/expo/AppEntry.js",
"scripts": {
Expand All @@ -25,7 +25,7 @@
"cp:main": "cp -r main/* ./lib",
"postbuild": "cp ./main/react-native.config.cjs ./lib/react-native.config.cjs && rm -rf ./lib/tsconfig* && cp README.md ./lib/README.md && cp -R main/__assets__ lib && cp ./main/uis/Icon/**.otf ./lib/uis/Icon/",
"storybook": "storybook dev -p 6006",
"storybook:build": "storybook build --docs -o ./doc-build -c ./.storybook && cp -r ./public/* ./doc-build/static",
"storybook:build": "storybook build --docs -o ./doc-build -c ./.storybook",
"storybook:serve": "npx http-server ./doc-build",
"export": "expo export -p web",
"storybook-generate": "sb-rn-get-stories",
Expand Down

0 comments on commit 164befe

Please sign in to comment.