JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13
  • Score
    100M100P100Q53715F
  • License MIT

创建一个基于 Cloudflare Worker、React 和 Rust WASM 的模板项目

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (create-worker-rs-template) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    create-worker-rs-template

    用于初始化 worker-rs-template 项目的 npm 脚手架。

    用法

    pnpm create worker-rs-template my-app

    或:

    npm create worker-rs-template@latest my-app

    如果不传项目名:

    pnpm create worker-rs-template

    脚手架会提示输入项目名称;如果直接回车,会自动生成 worker-rs-<6位随机hash> 形式的目录名。

    创建完成后,脚手架会自动探测本机包管理器,并按 pnpm -> npm -> yarn 的优先级执行依赖安装和轻量初始化构建。初始化只会生成 WASM 与前端产物,不会触发 Worker 的 deploy 检查。

    发布

    在脚手架目录下可直接执行:

    pnpm run publish

    本地发布前检查

    cd tools/create-worker-rs-template
    npm pack