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:
mathuo 2024-05-14 21:03:21 +01:00 committed by GitHub
commit fc84942b9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 49 additions and 7 deletions

View File

@ -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": [

View File

@ -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

View File

@ -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

View File

@ -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",

View File

@ -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"
} }
} }

View 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')
);

View File

@ -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",

View 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')
);

View File

@ -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(

View File

@ -9,6 +9,12 @@
}, },
{ {
"path": "./packages/dockview-vue" "path": "./packages/dockview-vue"
},
{
"path": "./packages/dockview-react"
},
{
"path": "./packages/dockview-angular"
} }
] ]
} }