Skip to content

Commit

Permalink
Merge pull request #606 from mathuo/562-dockview-framework-wrappers-v…
Browse files Browse the repository at this point in the history
…uejs-angular-javascript-etc-2

562 dockview framework wrappers vuejs angular javascript etc 2
  • Loading branch information
mathuo authored May 14, 2024
2 parents 84d02b9 + e3eb851 commit fc84942
Show file tree
Hide file tree
Showing 10 changed files with 49 additions and 7 deletions.
1 change: 1 addition & 0 deletions .codesandbox/ci.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"packages": [
"packages/dockview-core",
"packages/dockview-vue",
"packages/dockview-react",
"packages/dockview"
],
"sandboxes": [
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
working-directory: packages/dockview
- run: npm run build
working-directory: packages/dockview-vue
- run: npm run build
working-directory: packages/dockview-react
- run: npm run build
working-directory: packages/docs
- run: npm run docs
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:
- name: Publish dockview-vue
run: npm publish --provenance
working-directory: packages/dockview-vue
- name: Publish dockview-react
run: npm publish --provenance
working-directory: packages/dockview-react
publish-experimental:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
Expand Down Expand Up @@ -70,3 +73,6 @@ jobs:
- name: Publish dockview-vue
run: npm publish --provenance --tag experimental
working-directory: packages/dockview-vue
- name: Publish dockview-react
run: npm publish --provenance --tag experimental
working-directory: packages/dockview-react
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"packages/*"
],
"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",
"docs": "typedoc",
"generate-docs": "node scripts/docs.mjs",
Expand Down
8 changes: 4 additions & 4 deletions packages/dockview-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@
"build": "npm run build:package && npm run build:bundles",
"build:bundles": "rollup -c",
"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:package": "npm run build:cjs && npm run build:esm && npm run build:css",
"clean": "rimraf dist/ .build/ .rollup.cache/",
"prepublishOnly": "npm run rebuild && npm run test",
"rebuild": "npm run clean && npm run build",
"test": "cross-env ../../node_modules/.bin/jest --selectProjects dockview",
"test:cov": "cross-env ../../node_modules/.bin/jest --selectProjects dockview --coverage"
"test": "cross-env ../../node_modules/.bin/jest --selectProjects dockview-react",
"test:cov": "cross-env ../../node_modules/.bin/jest --selectProjects dockview-react --coverage"
},
"dependencies": {
"dockview": "^1.13.1"
}
}
}
13 changes: 13 additions & 0 deletions packages/dockview-react/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')
);
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')
);
2 changes: 1 addition & 1 deletion scripts/set-experimental-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fs.writeFileSync(

// dockview

const depPackages = ['dockview', 'dockview-vue'];
const depPackages = ['dockview', 'dockview-vue', 'dockview-react'];

for (const depPackage of depPackages) {
const dockviewPath = path.join(
Expand Down
6 changes: 6 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
},
{
"path": "./packages/dockview-vue"
},
{
"path": "./packages/dockview-react"
},
{
"path": "./packages/dockview-angular"
}
]
}

0 comments on commit fc84942

Please sign in to comment.