Skip to content

Commit

Permalink
chore: configure dockview-vue package
Browse files Browse the repository at this point in the history
  • Loading branch information
mathuo committed May 14, 2024
1 parent 9306d9f commit 3fcbf65
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/dockview-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"scripts": {
"build:js": "vite build",
"build:types": "vue-tsc --project tsconfig.build-types.json --declaration --emitDeclarationOnly --outDir dist/types",
"build": "npm run build:js && npm run build:types",
"build:css": "node scripts/copy-css.js",
"build": "npm run build:js && npm run build:types && npm run build:css",
"clean": "rimraf dist/ .build/ .rollup.cache/",
"prepublishOnly": "npm run rebuild && npm run test",
"rebuild": "npm run clean && npm run build",
Expand Down
13 changes: 13 additions & 0 deletions packages/dockview-vue/scripts/copy-css.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const path = require('path');
const fs = require('fs');

const outDir = path.join(__dirname, '../dist/styles');

if (!fs.existsSync(outDir)) {
fs.mkdirSync(outDir);
}

fs.copyFileSync(
path.join(__dirname, '../../dockview-core/dist/styles/dockview.css'),
path.join(outDir, 'dockview.css')
);

0 comments on commit 3fcbf65

Please sign in to comment.