mirror of
https://github.com/mathuo/dockview
synced 2025-02-02 06:25:44 +00:00
chore: configure dockview-vue package
This commit is contained in:
parent
9306d9fcdc
commit
3fcbf6515e
@ -43,7 +43,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build:js": "vite build",
|
"build:js": "vite build",
|
||||||
"build:types": "vue-tsc --project tsconfig.build-types.json --declaration --emitDeclarationOnly --outDir dist/types",
|
"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/",
|
"clean": "rimraf dist/ .build/ .rollup.cache/",
|
||||||
"prepublishOnly": "npm run rebuild && npm run test",
|
"prepublishOnly": "npm run rebuild && npm run test",
|
||||||
"rebuild": "npm run clean && npm run build",
|
"rebuild": "npm run clean && npm run build",
|
||||||
|
13
packages/dockview-vue/scripts/copy-css.js
Normal file
13
packages/dockview-vue/scripts/copy-css.js
Normal file
@ -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')
|
||||||
|
);
|
Loading…
Reference in New Issue
Block a user