Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Commit

Permalink
feat(styles-fonts): added fonts and styles css file to the build
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzschoff committed Apr 17, 2022
1 parent 1c924c3 commit 4ba9cc0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

cp ./src/styles/main.css ./dist
cp -r ./src/fonts ./dist/fonts/
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
"/dist"
],
"scripts": {
"build": "rm -rf dist && yarn build:esm && yarn build:cjs",
"build": "rm -rf dist && yarn build:esm && yarn build:cjs && ./build.sh",
"build:esm": "tsc",
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
"storybook": "start-storybook -p 6006 -c .storybook watch-css -s ./src",
"build-storybook": "build-storybook",
"commit": "cz",
"deploy-storybook": "yarn build-storybook && mkdir -p ./storybook-static/styles/fonts && cp ./src/styles/fonts/* ./storybook-static/styles/fonts/ && gh-pages -d storybook-static",
"yalc-publish": "yarn build && yalc push --update"
"yalc-publish": "yarn build && yalc push --update",
"permission": "chmod u+r+x build.sh"
},
"devDependencies": {
"@commitlint/cli": "16.2.3",
Expand Down

0 comments on commit 4ba9cc0

Please sign in to comment.