mirror of
https://github.com/mathuo/dockview
synced 2025-11-01 12:48:09 +00:00
chore: script cleanup
This commit is contained in:
parent
e34d7caed1
commit
17faf5e924
2
.github/workflows/deploy-docs.yml
vendored
2
.github/workflows/deploy-docs.yml
vendored
@ -34,7 +34,7 @@ jobs:
|
|||||||
working-directory: packages/docs
|
working-directory: packages/docs
|
||||||
- run: npm run docs
|
- run: npm run docs
|
||||||
working-directory: .
|
working-directory: .
|
||||||
- run: npm run package-docs
|
- run: node scripts/package-docs.js
|
||||||
working-directory: .
|
working-directory: .
|
||||||
- name: Deploy 🚀
|
- name: Deploy 🚀
|
||||||
uses: JamesIves/github-pages-deploy-action@3.7.1
|
uses: JamesIves/github-pages-deploy-action@3.7.1
|
||||||
|
|||||||
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@ -63,7 +63,7 @@ jobs:
|
|||||||
${{ runner.os }}-node-
|
${{ runner.os }}-node-
|
||||||
|
|
||||||
- run: yarn
|
- run: yarn
|
||||||
- run: npm run set-experimental-versions
|
- run: node scripts/set-experimental-versions
|
||||||
- name: Publish dockview-core
|
- name: Publish dockview-core
|
||||||
run: npm publish --provenance --tag experimental
|
run: npm publish --provenance --tag experimental
|
||||||
working-directory: packages/dockview-core
|
working-directory: packages/dockview-core
|
||||||
|
|||||||
@ -19,13 +19,9 @@
|
|||||||
"build": "lerna run build --scope '{dockview-core,dockview,dockview-vue,dockview-react}'",
|
"build": "lerna run build --scope '{dockview-core,dockview,dockview-vue,dockview-react}'",
|
||||||
"pack": "lerna run pack --scope '{dockview-core,dockview,dockview-vue,dockview-react}'",
|
"pack": "lerna run pack --scope '{dockview-core,dockview,dockview-vue,dockview-react}'",
|
||||||
"clean": "lerna run clean",
|
"clean": "lerna run clean",
|
||||||
"docs": "typedoc",
|
"docs": "node scripts/docs.mjs",
|
||||||
"generate-docs": "node scripts/docs.mjs",
|
|
||||||
"lint": "eslint 'packages/*/src/**/*.{ts,tsx,js,jsx}'",
|
"lint": "eslint 'packages/*/src/**/*.{ts,tsx,js,jsx}'",
|
||||||
"lint:fix": "eslint 'packages/*/src/**/*.{ts,tsx,js,jsx}' --fix",
|
"lint:fix": "eslint 'packages/*/src/**/*.{ts,tsx,js,jsx}' --fix",
|
||||||
"package": "node scripts/package.js",
|
|
||||||
"package-docs": "node scripts/package-docs.js",
|
|
||||||
"set-experimental-versions": "node scripts/set-experimental-versions",
|
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"test:cov": "jest --coverage",
|
"test:cov": "jest --coverage",
|
||||||
"version": "lerna version"
|
"version": "lerna version"
|
||||||
|
|||||||
@ -46,7 +46,9 @@ const SKIP_DOC = ['Event'];
|
|||||||
|
|
||||||
console.log('running docs');
|
console.log('running docs');
|
||||||
|
|
||||||
if (!existsSync(TYPEDOC_OUTPUT_FILE)) {
|
const forceBuild = true
|
||||||
|
|
||||||
|
if (forceBuild || !existsSync(TYPEDOC_OUTPUT_FILE)) {
|
||||||
execSync(
|
execSync(
|
||||||
`typedoc --json ${TYPEDOC_OUTPUT_FILE}`,
|
`typedoc --json ${TYPEDOC_OUTPUT_FILE}`,
|
||||||
(error, stdout, stderr) => {
|
(error, stdout, stderr) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user