mirror of
https://github.com/mathuo/dockview
synced 2025-01-23 01:45:58 +00:00
Merge pull request #606 from mathuo/562-dockview-framework-wrappers-vuejs-angular-javascript-etc-2
562 dockview framework wrappers vuejs angular javascript etc 2
This commit is contained in:
commit
fc84942b9b
@ -2,6 +2,7 @@
|
|||||||
"packages": [
|
"packages": [
|
||||||
"packages/dockview-core",
|
"packages/dockview-core",
|
||||||
"packages/dockview-vue",
|
"packages/dockview-vue",
|
||||||
|
"packages/dockview-react",
|
||||||
"packages/dockview"
|
"packages/dockview"
|
||||||
],
|
],
|
||||||
"sandboxes": [
|
"sandboxes": [
|
||||||
|
2
.github/workflows/deploy-docs.yml
vendored
2
.github/workflows/deploy-docs.yml
vendored
@ -28,6 +28,8 @@ jobs:
|
|||||||
working-directory: packages/dockview
|
working-directory: packages/dockview
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
working-directory: packages/dockview-vue
|
working-directory: packages/dockview-vue
|
||||||
|
- run: npm run build
|
||||||
|
working-directory: packages/dockview-react
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
working-directory: packages/docs
|
working-directory: packages/docs
|
||||||
- run: npm run docs
|
- run: npm run docs
|
||||||
|
6
.github/workflows/publish.yml
vendored
6
.github/workflows/publish.yml
vendored
@ -38,6 +38,9 @@ jobs:
|
|||||||
- name: Publish dockview-vue
|
- name: Publish dockview-vue
|
||||||
run: npm publish --provenance
|
run: npm publish --provenance
|
||||||
working-directory: packages/dockview-vue
|
working-directory: packages/dockview-vue
|
||||||
|
- name: Publish dockview-react
|
||||||
|
run: npm publish --provenance
|
||||||
|
working-directory: packages/dockview-react
|
||||||
publish-experimental:
|
publish-experimental:
|
||||||
if: github.event_name == 'workflow_dispatch'
|
if: github.event_name == 'workflow_dispatch'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -70,3 +73,6 @@ jobs:
|
|||||||
- name: Publish dockview-vue
|
- name: Publish dockview-vue
|
||||||
run: npm publish --provenance --tag experimental
|
run: npm publish --provenance --tag experimental
|
||||||
working-directory: packages/dockview-vue
|
working-directory: packages/dockview-vue
|
||||||
|
- name: Publish dockview-react
|
||||||
|
run: npm publish --provenance --tag experimental
|
||||||
|
working-directory: packages/dockview-react
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "lerna run build --scope '{dockview-core,dockview,dockview-vue}'",
|
"build": "lerna run build --scope '{dockview-core,dockview,dockview-vue,dockview-react}'",
|
||||||
"clean": "lerna run clean",
|
"clean": "lerna run clean",
|
||||||
"docs": "typedoc",
|
"docs": "typedoc",
|
||||||
"generate-docs": "node scripts/docs.mjs",
|
"generate-docs": "node scripts/docs.mjs",
|
||||||
|
@ -44,16 +44,16 @@
|
|||||||
"build": "npm run build:package && npm run build:bundles",
|
"build": "npm run build:package && npm run build:bundles",
|
||||||
"build:bundles": "rollup -c",
|
"build:bundles": "rollup -c",
|
||||||
"build:cjs": "cross-env ../../node_modules/.bin/tsc --build ./tsconfig.json --verbose --extendedDiagnostics",
|
"build:cjs": "cross-env ../../node_modules/.bin/tsc --build ./tsconfig.json --verbose --extendedDiagnostics",
|
||||||
"build:css": "gulp sass",
|
"build:css": "node scripts/copy-css.js",
|
||||||
"build:esm": "cross-env ../../node_modules/.bin/tsc --build ./tsconfig.esm.json --verbose --extendedDiagnostics",
|
"build:esm": "cross-env ../../node_modules/.bin/tsc --build ./tsconfig.esm.json --verbose --extendedDiagnostics",
|
||||||
"build:package": "npm run build:cjs && npm run build:esm && npm run build:css",
|
"build:package": "npm run build:cjs && npm run build:esm && 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",
|
||||||
"test": "cross-env ../../node_modules/.bin/jest --selectProjects dockview",
|
"test": "cross-env ../../node_modules/.bin/jest --selectProjects dockview-react",
|
||||||
"test:cov": "cross-env ../../node_modules/.bin/jest --selectProjects dockview --coverage"
|
"test:cov": "cross-env ../../node_modules/.bin/jest --selectProjects dockview-react --coverage"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dockview": "^1.13.1"
|
"dockview": "^1.13.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
13
packages/dockview-react/scripts/copy-css.js
Normal file
13
packages/dockview-react/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')
|
||||||
|
);
|
@ -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')
|
||||||
|
);
|
@ -50,7 +50,7 @@ fs.writeFileSync(
|
|||||||
|
|
||||||
// dockview
|
// dockview
|
||||||
|
|
||||||
const depPackages = ['dockview', 'dockview-vue'];
|
const depPackages = ['dockview', 'dockview-vue', 'dockview-react'];
|
||||||
|
|
||||||
for (const depPackage of depPackages) {
|
for (const depPackage of depPackages) {
|
||||||
const dockviewPath = path.join(
|
const dockviewPath = path.join(
|
||||||
|
@ -9,6 +9,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "./packages/dockview-vue"
|
"path": "./packages/dockview-vue"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "./packages/dockview-react"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "./packages/dockview-angular"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user