- vite
- Typescript/tsx
- Typescript references
- pnpm workspace
For multi-package projects managed by lerna, there are plugins and cores in the packages directory, and examples are in the examples directory
Node.js >= 14.19
git clone http://github.com/dream-num/univer
cd univer
npm i -g pnpm # MacOS : sudo npm i -g pnpm
npx playwright install
pnmp install
npm run dev
Execute a command in a subpackage
pnpm run --filter [package name] [command]
For example, start the dev
development mode of the packages/sheets-plugin-sort
project
pnpm run --filter @univerjs/sheets-plugin-sort dev
If you encounter any npm installation problems, please try one-click reinstallation of dependencies first
npm run clean
- Quickly generate plug-in template directory
npm run cli
-
For example, select the
plugin-temp
template and enter the plugin namefilter
to generate thepackages/sheets-plugin-filter
plugin. -
Execute the following command to start the plug-in development mode
pnpm run --filter @univerjs/sheets-plugin-filter dev
- There will be an additional
filter
plugin button in the toolbar on the interface
English is preferred, if the comment is longer, you can add bilingual
/*
en: get result
zh: 得出结果
*/
function(){
}
pnpm update