mono项目开发模板,内置cli管理构建
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
谢亚昕 f294aeeebb feat: add release script to package.json and mark dm package as private 21 hours ago
.changeset feat: 更新依赖项,优化配置,添加 README 文档 2 days ago
.vscode feat: add crypto-wasm package for SM4 encryption/decryption, update dependencies, and enhance build scripts 21 hours ago
buildin/dm feat: add release script to package.json and mark dm package as private 21 hours ago
packages feat: add crypto-wasm package for SM4 encryption/decryption, update dependencies, and enhance build scripts 21 hours ago
.gitignore feat: add crypto-wasm package for SM4 encryption/decryption, update dependencies, and enhance build scripts 21 hours ago
.oxlintrc.json init 4 days ago
.prettierrc.json init 4 days ago
bun.lock feat: add crypto-wasm package for SM4 encryption/decryption, update dependencies, and enhance build scripts 21 hours ago
lefthook.yml init 4 days ago
package.json feat: add release script to package.json and mark dm package as private 21 hours ago
readme.md feat: add crypto-wasm package for SM4 encryption/decryption, update dependencies, and enhance build scripts 21 hours ago
tsconfig.base.json feat: add crypto-wasm package for SM4 encryption/decryption, update dependencies, and enhance build scripts 21 hours ago
tsconfig.json feat: 更新 dm 包及其子包,添加新功能和配置 3 days ago
tsconfig.node.json feat: 更新 dm 包及其子包,添加新功能和配置 3 days ago
tsconfig.vitest.json feat: 更新 dm 包及其子包,添加新功能和配置 3 days ago
vitest.workspace.ts feat: rename package to dm-root and update workspace scripts 3 days ago

readme.md

要求

  • bun@1.3.11

wasm

  • 安装rust环境
  • cargo install wasm-pack

开发

安装依赖bun install,之后需要运行bun run cli:build命令安装内部命令行.

注意

  1. 开发时不同包之间的的引用最好直接写报名,不要携带路径,统一导出
  2. 最好统一包的入口为src/index.ts
  3. 包的导出记得加上"development": "./src/index.ts"
  4. wasm包文件夹类似与*-wasm

子包安装依赖

cd packages/stuff-a
bun add zod