From 9ab1dbde6f96cc12daa7007a1ef25d7d4547df17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E7=86=B1?= Date: Wed, 24 Apr 2024 17:27:20 +0800 Subject: [PATCH] feat(umd): create all-in-one UMD bundle --- .github/workflows/ci-lint.yml | 45 ----- .github/workflows/ci-test.yml | 34 ++++ .github/workflows/release.yml | 4 +- common/storybook/.storybook/main.ts | 5 +- package.json | 2 +- packages/core/package.json | 3 +- packages/data-validation/package.json | 2 +- .../package.json | 2 +- packages/sheets-formula/package.json | 1 - packages/sheets-numfmt/package.json | 1 - packages/sheets/package.json | 3 +- packages/umd/README-zh.md | 10 ++ packages/umd/README.md | 10 ++ packages/umd/package.json | 79 ++++++++ packages/umd/scripts/index.mjs | 168 ++++++++++++++++++ pnpm-lock.yaml | 143 ++++++++++++--- turbo.json | 11 +- 17 files changed, 443 insertions(+), 80 deletions(-) delete mode 100644 .github/workflows/ci-lint.yml create mode 100644 packages/umd/README-zh.md create mode 100644 packages/umd/README.md create mode 100644 packages/umd/package.json create mode 100644 packages/umd/scripts/index.mjs diff --git a/.github/workflows/ci-lint.yml b/.github/workflows/ci-lint.yml deleted file mode 100644 index cace06fe812..00000000000 --- a/.github/workflows/ci-lint.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: 🩺 CI Lint - -on: - push: - branches: [main, dev] - pull_request: - branches: [main, dev] - -permissions: - contents: read - -jobs: - eslint: - runs-on: ubuntu-latest - - env: - TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} - TURBO_TEAM: ${{ vars.TURBO_TEAM }} - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: ./.github/actions/setup-node - - - name: 🌡️ Run ESLint - run: pnpm lint --quiet - - typecheck: - runs-on: ubuntu-latest - - env: - TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} - TURBO_TEAM: ${{ vars.TURBO_TEAM }} - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: ./.github/actions/setup-node - - - name: 🧼 Type checking - run: npm run lint:types diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 29195fdae3b..1629beb8c78 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -29,3 +29,37 @@ jobs: uses: codecov/codecov-action@v3 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + + eslint: + runs-on: ubuntu-latest + + env: + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: ${{ vars.TURBO_TEAM }} + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: ./.github/actions/setup-node + + - name: 🌡️ Run ESLint + run: pnpm lint --quiet + + typecheck: + runs-on: ubuntu-latest + + env: + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: ${{ vars.TURBO_TEAM }} + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: ./.github/actions/setup-node + + - name: 🧼 Type checking + run: pnpm lint:types diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9993873f12c..6302c695622 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -104,7 +104,7 @@ jobs: - name: 🚚 Install dependencies and build run: | pnpm install - pnpm run build + pnpm build - name: Install Node.js uses: actions/setup-node@v4 @@ -139,7 +139,7 @@ jobs: # ================= Deploy Demo ================= - name: 📦 Build demo - run: pnpm run build:demo + run: pnpm build:demo - name: Copy demo to workspace run: | diff --git a/common/storybook/.storybook/main.ts b/common/storybook/.storybook/main.ts index 72cdd53c19a..2d98f3d8e40 100644 --- a/common/storybook/.storybook/main.ts +++ b/common/storybook/.storybook/main.ts @@ -39,8 +39,9 @@ const config: StorybookConfig = { const rootDir = resolve(__dirname, rootPath); if (existsSync(rootDir)) { readdirSync(rootDir).forEach((pkg) => { - const pkgDir = resolve(rootDir, pkg, 'package.json'); - if (existsSync(pkgDir)) { + const pkgPath = resolve(rootDir, pkg, 'package.json'); + const srcDir = resolve(rootDir, pkg, 'src'); + if (existsSync(pkgPath) && existsSync(srcDir)) { stories.push({ directory: `${rootPath}/${pkg}/src`, files: '**/*.stories.@(js|jsx|mjs|ts|tsx)', diff --git a/package.json b/package.json index 33ff709e4f6..5894a33d061 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "lint:types": "turbo lint:types", "test": "turbo test -- --passWithNoTests", "coverage": "turbo coverage -- --passWithNoTests", - "build": "turbo build", + "build": "turbo build && pnpm --filter @univerjs/umd build:umd", "build:demo": "turbo build:demo", "build:e2e": "pnpm --filter univer-examples build:e2e", "serve:e2e": "serve ./examples/local", diff --git a/packages/core/package.json b/packages/core/package.json index 6cec3be1457..2b52854f89a 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -2,7 +2,6 @@ "name": "@univerjs/core", "version": "0.1.7", "private": false, - "packageManager": "pnpm@9.0.5", "description": "Core library for Univer.", "author": "DreamNum ", "license": "Apache-2.0", @@ -68,7 +67,7 @@ "rxjs": ">=7.0.0" }, "dependencies": { - "@univerjs/protocol": "^0.1.19", + "@univerjs/protocol": "^0.1.20", "nanoid": "5.0.7", "numeral": "^2.0.6" }, diff --git a/packages/data-validation/package.json b/packages/data-validation/package.json index bf1857cca08..abe1794219a 100644 --- a/packages/data-validation/package.json +++ b/packages/data-validation/package.json @@ -68,7 +68,7 @@ "rxjs": ">=7.0.0" }, "dependencies": { - "@univerjs/protocol": "^0.1.19" + "@univerjs/protocol": "^0.1.20" }, "devDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/sheets-conditional-formatting/package.json b/packages/sheets-conditional-formatting/package.json index 02d87a2a106..c77ce17f14c 100644 --- a/packages/sheets-conditional-formatting/package.json +++ b/packages/sheets-conditional-formatting/package.json @@ -73,7 +73,7 @@ "rxjs": ">=7.0.0" }, "dependencies": { - "@univerjs/protocol": "^0.1.19" + "@univerjs/protocol": "^0.1.20" }, "devDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/sheets-formula/package.json b/packages/sheets-formula/package.json index 4a4f439ad6c..34164415bed 100644 --- a/packages/sheets-formula/package.json +++ b/packages/sheets-formula/package.json @@ -65,7 +65,6 @@ "@univerjs/engine-formula": "workspace:*", "@univerjs/engine-render": "workspace:*", "@univerjs/sheets": "workspace:*", - "@univerjs/sheets-numfmt": "workspace:*", "@univerjs/sheets-ui": "workspace:*", "@univerjs/ui": "workspace:*", "@wendellhu/redi": "^0.13.3", diff --git a/packages/sheets-numfmt/package.json b/packages/sheets-numfmt/package.json index 5a82ae88e14..284ea3583d1 100644 --- a/packages/sheets-numfmt/package.json +++ b/packages/sheets-numfmt/package.json @@ -68,7 +68,6 @@ "peerDependencies": { "@univerjs/core": "workspace:*", "@univerjs/design": "workspace:*", - "@univerjs/engine-formula": "workspace:*", "@univerjs/engine-numfmt": "workspace:*", "@univerjs/engine-render": "workspace:*", "@univerjs/sheets": "workspace:*", diff --git a/packages/sheets/package.json b/packages/sheets/package.json index 388e86a638c..44e4deea91e 100644 --- a/packages/sheets/package.json +++ b/packages/sheets/package.json @@ -65,12 +65,13 @@ "peerDependencies": { "@univerjs/core": "workspace:*", "@univerjs/engine-formula": "workspace:*", + "@univerjs/engine-numfmt": "workspace:*", "@univerjs/engine-render": "workspace:*", "@wendellhu/redi": "^0.13.3", "rxjs": ">=7.0.0" }, "dependencies": { - "@univerjs/protocol": "^0.1.19" + "@univerjs/protocol": "^0.1.20" }, "devDependencies": { "@univerjs/core": "workspace:*", diff --git a/packages/umd/README-zh.md b/packages/umd/README-zh.md new file mode 100644 index 00000000000..a0f31348187 --- /dev/null +++ b/packages/umd/README-zh.md @@ -0,0 +1,10 @@ +# @univerjs/umd + +[![npm version](https://img.shields.io/npm/v/@univerjs/umd)](https://npmjs.org/package/@univerjs/umd) +[![license](https://img.shields.io/npm/l/@univerjs/umd)](https://img.shields.io/npm/l/@univerjs/umd) + +## 简介 + +## 使用指南 + +### 安装 diff --git a/packages/umd/README.md b/packages/umd/README.md new file mode 100644 index 00000000000..bde6d3d41c0 --- /dev/null +++ b/packages/umd/README.md @@ -0,0 +1,10 @@ +# @univerjs/umd + +[![npm version](https://img.shields.io/npm/v/@univerjs/umd)](https://npmjs.org/package/@univerjs/umd) +[![license](https://img.shields.io/npm/l/@univerjs/umd)](https://img.shields.io/npm/l/@univerjs/umd) + +## Introduction + +## Usage + +### Installation diff --git a/packages/umd/package.json b/packages/umd/package.json new file mode 100644 index 00000000000..03ab10964ee --- /dev/null +++ b/packages/umd/package.json @@ -0,0 +1,79 @@ +{ + "name": "@univerjs/umd", + "version": "0.1.7", + "private": false, + "description": "UMD bundle for Univer", + "author": "DreamNum ", + "license": "Apache-2.0", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/univer" + }, + "homepage": "https://univer.ai", + "repository": { + "type": "git", + "url": "https://github.com/dream-num/univer" + }, + "bugs": { + "url": "https://github.com/dream-num/univer/issues" + }, + "keywords": [ + "univer" + ], + "main": "./lib/univer.full.umd.js", + "publishConfig": { + "access": "public", + "exports": { + "./lib/*": "./lib/*" + } + }, + "directories": { + "lib": "lib" + }, + "files": [ + "lib" + ], + "engines": { + "node": ">=16.0.0", + "npm": ">=8.0.0" + }, + "scripts": { + "build:umd": "node ./scripts/index.mjs" + }, + "dependencies": { + "@univerjs/core": "workspace:*", + "@univerjs/data-validation": "workspace:*", + "@univerjs/design": "workspace:*", + "@univerjs/docs": "workspace:*", + "@univerjs/docs-ui": "workspace:*", + "@univerjs/engine-formula": "workspace:*", + "@univerjs/engine-numfmt": "workspace:*", + "@univerjs/engine-render": "workspace:*", + "@univerjs/facade": "workspace:*", + "@univerjs/find-replace": "workspace:*", + "@univerjs/image": "workspace:*", + "@univerjs/network": "workspace:*", + "@univerjs/protocol": "^0.1.20", + "@univerjs/rpc": "workspace:*", + "@univerjs/sheets": "workspace:*", + "@univerjs/sheets-conditional-formatting": "workspace:*", + "@univerjs/sheets-conditional-formatting-ui": "workspace:*", + "@univerjs/sheets-data-validation": "workspace:*", + "@univerjs/sheets-find-replace": "workspace:*", + "@univerjs/sheets-formula": "workspace:*", + "@univerjs/sheets-numfmt": "workspace:*", + "@univerjs/sheets-ui": "workspace:*", + "@univerjs/sheets-zen-editor": "workspace:*", + "@univerjs/slides": "workspace:*", + "@univerjs/slides-ui": "workspace:*", + "@univerjs/ui": "workspace:*", + "@univerjs/uniscript": "workspace:*", + "@wendellhu/redi": "^0.13.3", + "clsx": "^2.1.1", + "dayjs": "^1.11.10", + "monaco-editor": "0.48.0", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "rxjs": "^7.8.1" + } +} diff --git a/packages/umd/scripts/index.mjs b/packages/umd/scripts/index.mjs new file mode 100644 index 00000000000..a67c0de6b91 --- /dev/null +++ b/packages/umd/scripts/index.mjs @@ -0,0 +1,168 @@ +/** + * Copyright 2023-present DreamNum Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +/** + * TODO: @jikkai + * 1. monaco-editor is not included in the build. User may not able to use uniscript by default. + * 2. lodash is not included in the build. + * 3. vue is not included in the build. User may not able to extend the UI with Vue. + */ + +import fs from 'node:fs'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); + +const nodeModulesPath = path.resolve(__dirname, '../node_modules'); + +function buildCSS() { + const libs = [ + '@univerjs/design', + '@univerjs/ui', + '@univerjs/docs-ui', + '@univerjs/sheets-ui', + '@univerjs/sheets-formula', + '@univerjs/sheets-numfmt', + '@univerjs/sheets-zen-editor', + '@univerjs/sheets-data-validation', + '@univerjs/sheets-conditional-formatting-ui', + '@univerjs/slides-ui', + '@univerjs/find-replace', + '@univerjs/uniscript', + ]; + + const output = libs.map((lib) => { + const file = path.resolve(nodeModulesPath, lib, 'lib/index.css'); + + if (!fs.existsSync(file)) { + throw new Error(`File not found: ${file}`); + } + + return fs.readFileSync(file, 'utf-8'); + }); + + return output.join('\n'); +} + +function buildExternalLib({ react, rxjs }) { + const libs = [ + 'clsx/dist/clsx.min.js', + 'dayjs/dayjs.min.js', + '@wendellhu/redi/dist/redi.js', + '@wendellhu/redi/dist/react-bindings.js', + ]; + if (react) { + libs.unshift( + 'react/umd/react.production.min.js', + 'react-dom/umd/react-dom.production.min.js' + ); + } + if (rxjs) { + libs.unshift('rxjs/dist/bundles/rxjs.umd.min.js'); + } + + const output = libs.map((lib) => { + const file = path.resolve(nodeModulesPath, lib); + + if (!fs.existsSync(file)) { + throw new Error(`File not found: ${file}`); + } + + return fs.readFileSync(file, 'utf-8'); + }); + + return output.join('\n'); +} + +function buildJS() { + const libs = [ + '@univerjs/protocol', + '@univerjs/core', + '@univerjs/design', + '@univerjs/engine-render', + '@univerjs/engine-numfmt', + '@univerjs/engine-formula', + '@univerjs/ui', + '@univerjs/docs', + '@univerjs/docs-ui', + '@univerjs/sheets', + '@univerjs/sheets-ui', + '@univerjs/sheets-formula', + '@univerjs/sheets-numfmt', + '@univerjs/sheets-zen-editor', + '@univerjs/sheets-conditional-formatting', + '@univerjs/sheets-conditional-formatting-ui', + '@univerjs/find-replace', + '@univerjs/sheets-find-replace', + '@univerjs/data-validation', + '@univerjs/sheets-data-validation', + '@univerjs/slides', + '@univerjs/slides-ui', + '@univerjs/rpc', + '@univerjs/network', + '@univerjs/facade', + '@univerjs/uniscript', + ]; + + const output = libs.map((lib) => { + const file = path.resolve(nodeModulesPath, lib, 'lib/umd/index.js'); + + if (!fs.existsSync(file)) { + throw new Error(`File not found: ${file}`); + } + + return fs.readFileSync(file, 'utf-8'); + }); + + return output.join('\n'); +} + +function generateOutput(filename, output) { + const outputFile = path.resolve(__dirname, `../lib/${filename}`); + + if (!fs.existsSync(outputFile)) { + fs.mkdirSync(path.dirname(outputFile), { recursive: true }); + } + + fs.writeFileSync(outputFile, output, 'utf-8'); +} + +function main() { + generateOutput('univer.css', buildCSS()); + + const outputJS = buildJS(); + + const fullLib = buildExternalLib({ + react: true, + rxjs: true, + }); + generateOutput('univer.full.umd.js', `${fullLib}\n${outputJS}`); + + const slimLib = buildExternalLib({ + react: false, + rxjs: false, + }); + generateOutput('univer.slim.umd.js', `${slimLib}\n${outputJS}`); + + // eslint-disable-next-line no-console + console.log('\u001B[32m[@univerjs/umd] Build completed.'); +} + +main(); + diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9d9b69853ac..986331b806e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -329,8 +329,8 @@ importers: packages/core: dependencies: '@univerjs/protocol': - specifier: ^0.1.19 - version: 0.1.19(@grpc/grpc-js@1.10.4)(rxjs@7.8.1) + specifier: ^0.1.20 + version: 0.1.20(@grpc/grpc-js@1.10.4)(rxjs@7.8.1) nanoid: specifier: 5.0.7 version: 5.0.7 @@ -366,8 +366,8 @@ importers: packages/data-validation: dependencies: '@univerjs/protocol': - specifier: ^0.1.19 - version: 0.1.19(@grpc/grpc-js@1.10.4)(rxjs@7.8.1) + specifier: ^0.1.20 + version: 0.1.20(@grpc/grpc-js@1.10.4)(rxjs@7.8.1) devDependencies: '@univerjs/core': specifier: workspace:* @@ -856,8 +856,8 @@ importers: packages/sheets: dependencies: '@univerjs/protocol': - specifier: ^0.1.19 - version: 0.1.19(@grpc/grpc-js@1.10.4)(rxjs@7.8.1) + specifier: ^0.1.20 + version: 0.1.20(@grpc/grpc-js@1.10.4)(rxjs@7.8.1) devDependencies: '@univerjs/core': specifier: workspace:* @@ -893,8 +893,8 @@ importers: packages/sheets-conditional-formatting: dependencies: '@univerjs/protocol': - specifier: ^0.1.19 - version: 0.1.19(@grpc/grpc-js@1.10.4)(rxjs@7.8.1) + specifier: ^0.1.20 + version: 0.1.20(@grpc/grpc-js@1.10.4)(rxjs@7.8.1) devDependencies: '@univerjs/core': specifier: workspace:* @@ -1511,6 +1511,111 @@ importers: specifier: ^1.5.0 version: 1.5.0(@types/node@20.12.7)(happy-dom@13.3.8)(jsdom@24.0.0)(less@4.2.0)(sass@1.72.0)(terser@5.30.0) + packages/umd: + dependencies: + '@univerjs/core': + specifier: workspace:* + version: link:../core + '@univerjs/data-validation': + specifier: workspace:* + version: link:../data-validation + '@univerjs/design': + specifier: workspace:* + version: link:../design + '@univerjs/docs': + specifier: workspace:* + version: link:../docs + '@univerjs/docs-ui': + specifier: workspace:* + version: link:../docs-ui + '@univerjs/engine-formula': + specifier: workspace:* + version: link:../engine-formula + '@univerjs/engine-numfmt': + specifier: workspace:* + version: link:../engine-numfmt + '@univerjs/engine-render': + specifier: workspace:* + version: link:../engine-render + '@univerjs/facade': + specifier: workspace:* + version: link:../facade + '@univerjs/find-replace': + specifier: workspace:* + version: link:../find-replace + '@univerjs/image': + specifier: workspace:* + version: link:../image + '@univerjs/network': + specifier: workspace:* + version: link:../network + '@univerjs/protocol': + specifier: ^0.1.20 + version: 0.1.20(@grpc/grpc-js@1.10.4)(rxjs@7.8.1) + '@univerjs/rpc': + specifier: workspace:* + version: link:../rpc + '@univerjs/sheets': + specifier: workspace:* + version: link:../sheets + '@univerjs/sheets-conditional-formatting': + specifier: workspace:* + version: link:../sheets-conditional-formatting + '@univerjs/sheets-conditional-formatting-ui': + specifier: workspace:* + version: link:../sheets-conditional-formatting-ui + '@univerjs/sheets-data-validation': + specifier: workspace:* + version: link:../sheets-data-validation + '@univerjs/sheets-find-replace': + specifier: workspace:* + version: link:../sheets-find-replace + '@univerjs/sheets-formula': + specifier: workspace:* + version: link:../sheets-formula + '@univerjs/sheets-numfmt': + specifier: workspace:* + version: link:../sheets-numfmt + '@univerjs/sheets-ui': + specifier: workspace:* + version: link:../sheets-ui + '@univerjs/sheets-zen-editor': + specifier: workspace:* + version: link:../sheets-zen-editor + '@univerjs/slides': + specifier: workspace:* + version: link:../slides + '@univerjs/slides-ui': + specifier: workspace:* + version: link:../slides-ui + '@univerjs/ui': + specifier: workspace:* + version: link:../ui + '@univerjs/uniscript': + specifier: workspace:* + version: link:../uniscript + '@wendellhu/redi': + specifier: ^0.13.3 + version: 0.13.3 + clsx: + specifier: ^2.1.1 + version: 2.1.1 + dayjs: + specifier: ^1.11.10 + version: 1.11.10 + monaco-editor: + specifier: 0.48.0 + version: 0.48.0 + react: + specifier: ^18.2.0 + version: 18.2.0 + react-dom: + specifier: ^18.2.0 + version: 18.2.0(react@18.2.0) + rxjs: + specifier: ^7.8.1 + version: 7.8.1 + packages/uniscript: dependencies: react: @@ -3813,8 +3918,8 @@ packages: react: '*' react-dom: '*' - '@univerjs/protocol@0.1.19': - resolution: {integrity: sha512-FmSezbI29MZr9IS8U9cGlWHbxMiM4NO3cCrhG3S5sH+69BGUppHqHI7psoP7CqGyowxaZN5dDDfSNTbrHenYVQ==} + '@univerjs/protocol@0.1.20': + resolution: {integrity: sha512-obplLf02e+x+E/Hezh3ES9H/JsFtHgYla7C1G1ffTVbbrqmRssebQ5birqgMcVx1Sj3WG5vsCJ0forISNRjkLg==} engines: {node: '>=16.0.0', npm: '>=8.0.0'} peerDependencies: '@grpc/grpc-js': ^1.9.14 @@ -6755,11 +6860,6 @@ packages: resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} hasBin: true - loose-envify@https://r2.cnpmjs.org/loose-envify/-/loose-envify-1.4.0.tgz: - resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==, tarball: https://r2.cnpmjs.org/loose-envify/-/loose-envify-1.4.0.tgz} - version: 1.4.0 - hasBin: true - loupe@2.3.7: resolution: {integrity: sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==} @@ -6972,6 +7072,9 @@ packages: monaco-editor@0.47.0: resolution: {integrity: sha512-VabVvHvQ9QmMwXu4du008ZDuyLnHs9j7ThVFsiJoXSOQk18+LF89N4ADzPbFenm0W4V2bGHnFBztIRQTgBfxzw==} + monaco-editor@0.48.0: + resolution: {integrity: sha512-goSDElNqFfw7iDHMg8WDATkfcyeLTNpBHQpO8incK6p5qZt5G/1j41X0xdGzpIkGojGXM+QiRQyLjnfDVvrpwA==} + moo-color@1.0.3: resolution: {integrity: sha512-i/+ZKXMDf6aqYtBhuOcej71YSlbjT3wCO/4H1j8rPvxDJEifdwgg5MaFyu6iYAT8GBZJg2z0dkgK4YMzvURALQ==} @@ -12107,7 +12210,7 @@ snapshots: react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - '@univerjs/protocol@0.1.19(@grpc/grpc-js@1.10.4)(rxjs@7.8.1)': + '@univerjs/protocol@0.1.20(@grpc/grpc-js@1.10.4)(rxjs@7.8.1)': dependencies: '@grpc/grpc-js': 1.10.4 rxjs: 7.8.1 @@ -15465,10 +15568,6 @@ snapshots: long@5.2.3: {} loose-envify@1.4.0: - dependencies: - js-tokens: 4.0.0 - - loose-envify@https://r2.cnpmjs.org/loose-envify/-/loose-envify-1.4.0.tgz: dependencies: js-tokens: https://r2.cnpmjs.org/js-tokens/-/js-tokens-4.0.0.tgz @@ -15656,6 +15755,8 @@ snapshots: monaco-editor@0.47.0: {} + monaco-editor@0.48.0: {} + moo-color@1.0.3: dependencies: color-name: 1.1.4 @@ -16199,7 +16300,7 @@ snapshots: prop-types@15.8.1: dependencies: - loose-envify: https://r2.cnpmjs.org/loose-envify/-/loose-envify-1.4.0.tgz + loose-envify: 1.4.0 object-assign: 4.1.1 react-is: 16.13.1 diff --git a/turbo.json b/turbo.json index cf875f34ea2..53aa50feb76 100644 --- a/turbo.json +++ b/turbo.json @@ -5,17 +5,24 @@ ], "pipeline": { "test": { - "cache": false }, + "coverage": { "cache": false }, - "build": {}, + + "build": { + "cache": false + }, + "build:demo": {}, + "build:e2e": {}, + "dev:demo": { "cache": false }, + "lint:types": {} } }