Skip to content

Commit

Permalink
feat(type-designer): add css files to deloyment (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
michelguerin authored and Siu Cheng committed Nov 12, 2024
1 parent 7147e11 commit 3135fdf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ jobs:
cp -f $GITHUB_WORKSPACE/packages/plugins/${{ inputs.plugin-name }}/dist/index.js $GITHUB_WORKSPACE/_build_/${{ inputs.plugin-name }}/
cp -f $GITHUB_WORKSPACE/packages/plugins/${{ inputs.plugin-name }}/dist/index.js $GITHUB_WORKSPACE/_build_/${{ inputs.plugin-name }}/${{steps.version.outputs.version}}/
cp -f $GITHUB_WORKSPACE/packages/plugins/${{ inputs.plugin-name }}/package.json $GITHUB_WORKSPACE/_build_/${{ inputs.plugin-name }}/
cp -f $GITHUB_WORKSPACE/packages/plugins/${{ inputs.plugin-name }}/dist/*.css $GITHUB_WORKSPACE/_build_/${{ inputs.plugin-name }}/
cp -f $GITHUB_WORKSPACE/packages/plugins/${{ inputs.plugin-name }}/dist/*.css $GITHUB_WORKSPACE/_build_/${{ inputs.plugin-name }}/${{steps.version.outputs.version}}/
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
"//====== PREPARE ======//": "",
"prepare": "husky install",
"//====== LOCAL DEPENDENCIES INSTALL ======//": "",
"install:core": "pnpm --filter @oscd-plugins/core i",
"install:ui": "pnpm --filter @oscd-plugins/ui i",
"install:core": "pnpm --filter @oscd-plugins/core i --frozen-lockfile",
"install:ui": "pnpm --filter @oscd-plugins/ui i --frozen-lockfile",
"install:dependencies": "pnpm install:core && pnpm install:ui",
"//====== STORYBOOK ======//": "",
"storybook": "pnpm install:ui && pnpm --filter @oscd-plugins/ui storybook",
"//====== PLUGIN INSTALL ======//": "",
"install:type-designer": "pnpm install:dependencies && pnpm --filter @oscd-plugins/type-designer i",
"install:auto-doc": "pnpm install:dependencies && pnpm --filter @oscd-plugins/auto-doc i",
"install:type-designer": "pnpm install:dependencies && pnpm --filter @oscd-plugins/type-designer i --frozen-lockfile",
"install:auto-doc": "pnpm install:dependencies && pnpm --filter @oscd-plugins/auto-doc i --frozen-lockfile",
"//====== PLUGIN STAND ALONE MODE ======//": "",
"dev:type-designer": "pnpm --filter @oscd-plugins/type-designer dev",
"dev:type-designer:install": "pnpm install:type-designer && pnpm --filter @oscd-plugins/type-designer dev",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/type-designer/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oscd-plugins/type-designer",
"private": true,
"version": "1.0.0",
"version": "1.1.0",
"type": "module",
"scripts": {
"dev": "vite --mode STAND_ALONE",
Expand Down
1 change: 1 addition & 0 deletions packages/plugins/type-designer/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const isDevelopment = process.env.NODE_ENV === 'development'

// https://vitejs.dev/config/
export default defineConfig({
base: isDevelopment ? '' : '/oscd-plugins/type-designer/',
plugins: [
svelte({
compilerOptions: {
Expand Down

0 comments on commit 3135fdf

Please sign in to comment.