Skip to content

Commit

Permalink
Merge pull request #97 from grucloud/github-action
Browse files Browse the repository at this point in the history
GitHub action
  • Loading branch information
FredericHeem authored Nov 13, 2023
2 parents ac543fd + d04c27e commit 3bbb817
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 18 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
Expand All @@ -23,3 +23,9 @@ jobs:
cd bau/examples/bau-ts-test
npm install
npm run build
- name: build bau-ui/examples/bau-storybook
run: |
cd bau-ui/examples/bau-storybook
npm install
npm run build
3 changes: 2 additions & 1 deletion bau-css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"files": [
"bau-css.js",
"bau-css.d.ts",
"classNames.js"
"classNames.js",
"classNames.d.ts"
],
"types": "bau-css.d.ts",
"keywords": [
Expand Down
11 changes: 2 additions & 9 deletions bau-ui/examples/bau-storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"bundle-visualizer": "vite-bundle-visualizer",
"test": "vitest",
"coverage": "vitest run --coverage",
"bundle-visualizer": "npx vite-bundle-visualizer",
"deploy": "gh-pages -d ../../../dist"
},
"dependencies": {
Expand All @@ -29,14 +27,9 @@
"highlight.js": "11.8.0"
},
"devDependencies": {
"@vitest/coverage-c8": "0.32.0",
"gh-pages": "5.0.0",
"happy-dom": "9.20.3",
"typescript": "5.0.2",
"vite": "4.3.9",
"vite-bundle-visualizer": "0.7.0",
"vite-plugin-svg-sprite": "0.3.2",
"vitest": "0.31.4"
"vite": "4.3.9"
},
"repository": {
"type": "git",
Expand Down
7 changes: 0 additions & 7 deletions bau-ui/examples/bau-storybook/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { resolve } from "path";
import pkg from "./package.json";
import { defineConfig } from "vite";
import createSvgSpritePlugin from "vite-plugin-svg-sprite";

export default defineConfig(({ command, mode, ssrBuild }) => {
return {
Expand All @@ -19,10 +17,5 @@ export default defineConfig(({ command, mode, ssrBuild }) => {
define: {
__VERSION__: JSON.stringify(pkg.version),
},
plugins: [
createSvgSpritePlugin({
symbolId: "icon-[name]-[hash]",
}),
],
};
});

0 comments on commit 3bbb817

Please sign in to comment.