@celljs/cli 3.9.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +442 -1
- package/agent/guide.md +39 -0
- package/bin/cell.js +2 -0
- package/lib/agent/agent-guide.d.ts +39 -0
- package/lib/agent/agent-guide.d.ts.map +1 -0
- package/lib/agent/agent-guide.js +67 -0
- package/lib/agent/agent-guide.js.map +1 -0
- package/lib/build/executable-compiler.d.ts +44 -0
- package/lib/build/executable-compiler.d.ts.map +1 -0
- package/lib/build/executable-compiler.js +145 -0
- package/lib/build/executable-compiler.js.map +1 -0
- package/lib/build/executable-compiler.spec.d.ts +2 -0
- package/lib/build/executable-compiler.spec.d.ts.map +1 -0
- package/lib/build/executable-compiler.spec.js +71 -0
- package/lib/build/executable-compiler.spec.js.map +1 -0
- package/lib/build/single-compile.spec.d.ts +2 -0
- package/lib/build/single-compile.spec.d.ts.map +1 -0
- package/lib/build/single-compile.spec.js +135 -0
- package/lib/build/single-compile.spec.js.map +1 -0
- package/lib/check/project-checker.d.ts +85 -0
- package/lib/check/project-checker.d.ts.map +1 -0
- package/lib/check/project-checker.js +332 -0
- package/lib/check/project-checker.js.map +1 -0
- package/lib/check/project-checker.spec.d.ts +2 -0
- package/lib/check/project-checker.spec.d.ts.map +1 -0
- package/lib/check/project-checker.spec.js +147 -0
- package/lib/check/project-checker.spec.js.map +1 -0
- package/lib/cli/agent-command.d.ts +15 -0
- package/lib/cli/agent-command.d.ts.map +1 -0
- package/lib/cli/agent-command.js +42 -0
- package/lib/cli/agent-command.js.map +1 -0
- package/lib/cli/build-command.d.ts +84 -0
- package/lib/cli/build-command.d.ts.map +1 -0
- package/lib/cli/build-command.js +170 -0
- package/lib/cli/build-command.js.map +1 -0
- package/lib/cli/cell-cli.d.ts +35 -0
- package/lib/cli/cell-cli.d.ts.map +1 -0
- package/lib/cli/cell-cli.js +159 -0
- package/lib/cli/cell-cli.js.map +1 -0
- package/lib/cli/cell-cli.spec.d.ts +2 -0
- package/lib/cli/cell-cli.spec.d.ts.map +1 -0
- package/lib/cli/cell-cli.spec.js +195 -0
- package/lib/cli/cell-cli.spec.js.map +1 -0
- package/lib/cli/check-command.d.ts +31 -0
- package/lib/cli/check-command.d.ts.map +1 -0
- package/lib/cli/check-command.js +67 -0
- package/lib/cli/check-command.js.map +1 -0
- package/lib/cli/command.d.ts +24 -0
- package/lib/cli/command.d.ts.map +1 -0
- package/lib/cli/command.js +10 -0
- package/lib/cli/command.js.map +1 -0
- package/lib/cli/config-command.d.ts +29 -0
- package/lib/cli/config-command.d.ts.map +1 -0
- package/lib/cli/config-command.js +71 -0
- package/lib/cli/config-command.js.map +1 -0
- package/lib/cli/config-command.spec.d.ts +2 -0
- package/lib/cli/config-command.spec.d.ts.map +1 -0
- package/lib/cli/config-command.spec.js +79 -0
- package/lib/cli/config-command.spec.js.map +1 -0
- package/lib/cli/deploy-command.d.ts +41 -0
- package/lib/cli/deploy-command.d.ts.map +1 -0
- package/lib/cli/deploy-command.js +114 -0
- package/lib/cli/deploy-command.js.map +1 -0
- package/lib/cli/dev-command.d.ts +47 -0
- package/lib/cli/dev-command.d.ts.map +1 -0
- package/lib/cli/dev-command.js +219 -0
- package/lib/cli/dev-command.js.map +1 -0
- package/lib/cli/dev-command.spec.d.ts +2 -0
- package/lib/cli/dev-command.spec.d.ts.map +1 -0
- package/lib/cli/dev-command.spec.js +149 -0
- package/lib/cli/dev-command.spec.js.map +1 -0
- package/lib/cli/docs-command.d.ts +19 -0
- package/lib/cli/docs-command.d.ts.map +1 -0
- package/lib/cli/docs-command.js +47 -0
- package/lib/cli/docs-command.js.map +1 -0
- package/lib/cli/info-command.d.ts +44 -0
- package/lib/cli/info-command.d.ts.map +1 -0
- package/lib/cli/info-command.js +39 -0
- package/lib/cli/info-command.js.map +1 -0
- package/lib/cli/info-command.spec.d.ts +2 -0
- package/lib/cli/info-command.spec.d.ts.map +1 -0
- package/lib/cli/info-command.spec.js +236 -0
- package/lib/cli/info-command.spec.js.map +1 -0
- package/lib/cli/init-command.d.ts +20 -0
- package/lib/cli/init-command.d.ts.map +1 -0
- package/lib/cli/init-command.js +43 -0
- package/lib/cli/init-command.js.map +1 -0
- package/lib/cli/main.d.ts +2 -0
- package/lib/cli/main.d.ts.map +1 -0
- package/lib/cli/main.js +3 -0
- package/lib/cli/main.js.map +1 -0
- package/lib/cli/mcp-command.d.ts +34 -0
- package/lib/cli/mcp-command.d.ts.map +1 -0
- package/lib/cli/mcp-command.js +85 -0
- package/lib/cli/mcp-command.js.map +1 -0
- package/lib/cli/mcp-command.spec.d.ts +2 -0
- package/lib/cli/mcp-command.spec.d.ts.map +1 -0
- package/lib/cli/mcp-command.spec.js +132 -0
- package/lib/cli/mcp-command.spec.js.map +1 -0
- package/lib/cli/preview-command.d.ts +24 -0
- package/lib/cli/preview-command.d.ts.map +1 -0
- package/lib/cli/preview-command.js +91 -0
- package/lib/cli/preview-command.js.map +1 -0
- package/lib/cli/reporter.d.ts +26 -0
- package/lib/cli/reporter.d.ts.map +1 -0
- package/lib/cli/reporter.js +58 -0
- package/lib/cli/reporter.js.map +1 -0
- package/lib/config/config-build.spec.d.ts +2 -0
- package/lib/config/config-build.spec.d.ts.map +1 -0
- package/lib/config/config-build.spec.js +111 -0
- package/lib/config/config-build.spec.js.map +1 -0
- package/lib/config/config-explainer.d.ts +48 -0
- package/lib/config/config-explainer.d.ts.map +1 -0
- package/lib/config/config-explainer.js +130 -0
- package/lib/config/config-explainer.js.map +1 -0
- package/lib/config/config-file-loader.d.ts +22 -0
- package/lib/config/config-file-loader.d.ts.map +1 -0
- package/lib/config/config-file-loader.js +63 -0
- package/lib/config/config-file-loader.js.map +1 -0
- package/lib/config/config-resolver.d.ts +111 -0
- package/lib/config/config-resolver.d.ts.map +1 -0
- package/lib/config/config-resolver.js +215 -0
- package/lib/config/config-resolver.js.map +1 -0
- package/lib/config/config-resolver.spec.d.ts +2 -0
- package/lib/config/config-resolver.spec.d.ts.map +1 -0
- package/lib/config/config-resolver.spec.js +159 -0
- package/lib/config/config-resolver.spec.js.map +1 -0
- package/lib/config/config-validator.d.ts +35 -0
- package/lib/config/config-validator.d.ts.map +1 -0
- package/lib/config/config-validator.js +160 -0
- package/lib/config/config-validator.js.map +1 -0
- package/lib/config/config-validator.spec.d.ts +2 -0
- package/lib/config/config-validator.spec.d.ts.map +1 -0
- package/lib/config/config-validator.spec.js +77 -0
- package/lib/config/config-validator.spec.js.map +1 -0
- package/lib/config/define-config.d.ts +4 -0
- package/lib/config/define-config.d.ts.map +1 -0
- package/lib/config/define-config.js +5 -0
- package/lib/config/define-config.js.map +1 -0
- package/lib/config/types.d.ts +53 -0
- package/lib/config/types.d.ts.map +1 -0
- package/lib/config/types.js +2 -0
- package/lib/config/types.js.map +1 -0
- package/lib/deploy/cloud-api.d.ts +58 -0
- package/lib/deploy/cloud-api.d.ts.map +1 -0
- package/lib/deploy/cloud-api.js +189 -0
- package/lib/deploy/cloud-api.js.map +1 -0
- package/lib/deploy/code-package.d.ts +15 -0
- package/lib/deploy/code-package.d.ts.map +1 -0
- package/lib/deploy/code-package.js +40 -0
- package/lib/deploy/code-package.js.map +1 -0
- package/lib/deploy/deploy-utils.spec.d.ts +2 -0
- package/lib/deploy/deploy-utils.spec.d.ts.map +1 -0
- package/lib/deploy/deploy-utils.spec.js +56 -0
- package/lib/deploy/deploy-utils.spec.js.map +1 -0
- package/lib/deploy/deployer-registry.d.ts +11 -0
- package/lib/deploy/deployer-registry.d.ts.map +1 -0
- package/lib/deploy/deployer-registry.js +40 -0
- package/lib/deploy/deployer-registry.js.map +1 -0
- package/lib/deploy/request-signer.d.ts +51 -0
- package/lib/deploy/request-signer.d.ts.map +1 -0
- package/lib/deploy/request-signer.js +109 -0
- package/lib/deploy/request-signer.js.map +1 -0
- package/lib/deploy/zip-writer.d.ts +32 -0
- package/lib/deploy/zip-writer.d.ts.map +1 -0
- package/lib/deploy/zip-writer.js +114 -0
- package/lib/deploy/zip-writer.js.map +1 -0
- package/lib/docs/docs-index.d.ts +54 -0
- package/lib/docs/docs-index.d.ts.map +1 -0
- package/lib/docs/docs-index.js +140 -0
- package/lib/docs/docs-index.js.map +1 -0
- package/lib/docs/docs-index.spec.d.ts +2 -0
- package/lib/docs/docs-index.spec.d.ts.map +1 -0
- package/lib/docs/docs-index.spec.js +52 -0
- package/lib/docs/docs-index.spec.js.map +1 -0
- package/lib/events/event-bus.d.ts +30 -0
- package/lib/events/event-bus.d.ts.map +1 -0
- package/lib/events/event-bus.js +81 -0
- package/lib/events/event-bus.js.map +1 -0
- package/lib/events/event-bus.spec.d.ts +2 -0
- package/lib/events/event-bus.spec.d.ts.map +1 -0
- package/lib/events/event-bus.spec.js +69 -0
- package/lib/events/event-bus.spec.js.map +1 -0
- package/lib/events/hook-runner.d.ts +27 -0
- package/lib/events/hook-runner.d.ts.map +1 -0
- package/lib/events/hook-runner.js +65 -0
- package/lib/events/hook-runner.js.map +1 -0
- package/lib/events/hook-runner.spec.d.ts +2 -0
- package/lib/events/hook-runner.spec.d.ts.map +1 -0
- package/lib/events/hook-runner.spec.js +36 -0
- package/lib/events/hook-runner.spec.js.map +1 -0
- package/lib/index.d.ts +57 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +57 -2
- package/lib/index.js.map +1 -1
- package/lib/info/project-inspector.d.ts +143 -0
- package/lib/info/project-inspector.d.ts.map +1 -0
- package/lib/info/project-inspector.js +244 -0
- package/lib/info/project-inspector.js.map +1 -0
- package/lib/init/project-initializer.d.ts +44 -0
- package/lib/init/project-initializer.d.ts.map +1 -0
- package/lib/init/project-initializer.js +90 -0
- package/lib/init/project-initializer.js.map +1 -0
- package/lib/init/project-initializer.spec.d.ts +2 -0
- package/lib/init/project-initializer.spec.d.ts.map +1 -0
- package/lib/init/project-initializer.spec.js +88 -0
- package/lib/init/project-initializer.spec.js.map +1 -0
- package/lib/mcp/dev-activity.d.ts +34 -0
- package/lib/mcp/dev-activity.d.ts.map +1 -0
- package/lib/mcp/dev-activity.js +46 -0
- package/lib/mcp/dev-activity.js.map +1 -0
- package/lib/mcp/dev-mcp-endpoint.d.ts +62 -0
- package/lib/mcp/dev-mcp-endpoint.d.ts.map +1 -0
- package/lib/mcp/dev-mcp-endpoint.js +280 -0
- package/lib/mcp/dev-mcp-endpoint.js.map +1 -0
- package/lib/mcp/dev-mcp-endpoint.spec.d.ts +2 -0
- package/lib/mcp/dev-mcp-endpoint.spec.d.ts.map +1 -0
- package/lib/mcp/dev-mcp-endpoint.spec.js +143 -0
- package/lib/mcp/dev-mcp-endpoint.spec.js.map +1 -0
- package/lib/mcp/mcp-server.d.ts +64 -0
- package/lib/mcp/mcp-server.d.ts.map +1 -0
- package/lib/mcp/mcp-server.js +201 -0
- package/lib/mcp/mcp-server.js.map +1 -0
- package/lib/mcp/mcp-server.spec.d.ts +2 -0
- package/lib/mcp/mcp-server.spec.d.ts.map +1 -0
- package/lib/mcp/mcp-server.spec.js +136 -0
- package/lib/mcp/mcp-server.spec.js.map +1 -0
- package/lib/mcp/project-mcp-tools.d.ts +35 -0
- package/lib/mcp/project-mcp-tools.d.ts.map +1 -0
- package/lib/mcp/project-mcp-tools.js +199 -0
- package/lib/mcp/project-mcp-tools.js.map +1 -0
- package/lib/modules/module-host.d.ts +118 -0
- package/lib/modules/module-host.d.ts.map +1 -0
- package/lib/modules/module-host.js +405 -0
- package/lib/modules/module-host.js.map +1 -0
- package/lib/modules/module-host.spec.d.ts +2 -0
- package/lib/modules/module-host.spec.d.ts.map +1 -0
- package/lib/modules/module-host.spec.js +220 -0
- package/lib/modules/module-host.spec.js.map +1 -0
- package/lib/preset/builtin-presets.d.ts +9 -0
- package/lib/preset/builtin-presets.d.ts.map +1 -0
- package/lib/preset/builtin-presets.js +24 -0
- package/lib/preset/builtin-presets.js.map +1 -0
- package/lib/preset/cloudflare/cloudflare-deployer.d.ts +26 -0
- package/lib/preset/cloudflare/cloudflare-deployer.d.ts.map +1 -0
- package/lib/preset/cloudflare/cloudflare-deployer.js +116 -0
- package/lib/preset/cloudflare/cloudflare-deployer.js.map +1 -0
- package/lib/preset/cloudflare/cloudflare-preset.d.ts +16 -0
- package/lib/preset/cloudflare/cloudflare-preset.d.ts.map +1 -0
- package/lib/preset/cloudflare/cloudflare-preset.js +97 -0
- package/lib/preset/cloudflare/cloudflare-preset.js.map +1 -0
- package/lib/preset/cloudflare/cloudflare.spec.d.ts +2 -0
- package/lib/preset/cloudflare/cloudflare.spec.d.ts.map +1 -0
- package/lib/preset/cloudflare/cloudflare.spec.js +212 -0
- package/lib/preset/cloudflare/cloudflare.spec.js.map +1 -0
- package/lib/preset/cloudflare/wrangler-config.d.ts +50 -0
- package/lib/preset/cloudflare/wrangler-config.d.ts.map +1 -0
- package/lib/preset/cloudflare/wrangler-config.js +160 -0
- package/lib/preset/cloudflare/wrangler-config.js.map +1 -0
- package/lib/preset/cloudflare/wrangler-config.spec.d.ts +2 -0
- package/lib/preset/cloudflare/wrangler-config.spec.d.ts.map +1 -0
- package/lib/preset/cloudflare/wrangler-config.spec.js +112 -0
- package/lib/preset/cloudflare/wrangler-config.spec.js.map +1 -0
- package/lib/preset/cloudflare/wrangler.d.ts +38 -0
- package/lib/preset/cloudflare/wrangler.d.ts.map +1 -0
- package/lib/preset/cloudflare/wrangler.js +90 -0
- package/lib/preset/cloudflare/wrangler.js.map +1 -0
- package/lib/preset/cloudflare/wrangler.spec.d.ts +2 -0
- package/lib/preset/cloudflare/wrangler.spec.d.ts.map +1 -0
- package/lib/preset/cloudflare/wrangler.spec.js +64 -0
- package/lib/preset/cloudflare/wrangler.spec.js.map +1 -0
- package/lib/preset/fc/fc-deployer.d.ts +50 -0
- package/lib/preset/fc/fc-deployer.d.ts.map +1 -0
- package/lib/preset/fc/fc-deployer.js +209 -0
- package/lib/preset/fc/fc-deployer.js.map +1 -0
- package/lib/preset/fc/fc-preset.d.ts +20 -0
- package/lib/preset/fc/fc-preset.d.ts.map +1 -0
- package/lib/preset/fc/fc-preset.js +46 -0
- package/lib/preset/fc/fc-preset.js.map +1 -0
- package/lib/preset/lambda/lambda-deployer.d.ts +50 -0
- package/lib/preset/lambda/lambda-deployer.d.ts.map +1 -0
- package/lib/preset/lambda/lambda-deployer.js +274 -0
- package/lib/preset/lambda/lambda-deployer.js.map +1 -0
- package/lib/preset/lambda/lambda-preset.d.ts +14 -0
- package/lib/preset/lambda/lambda-preset.d.ts.map +1 -0
- package/lib/preset/lambda/lambda-preset.js +44 -0
- package/lib/preset/lambda/lambda-preset.js.map +1 -0
- package/lib/preset/preset-output.d.ts +19 -0
- package/lib/preset/preset-output.d.ts.map +1 -0
- package/lib/preset/preset-output.js +45 -0
- package/lib/preset/preset-output.js.map +1 -0
- package/lib/preset/preset-registry.d.ts +16 -0
- package/lib/preset/preset-registry.d.ts.map +1 -0
- package/lib/preset/preset-registry.js +58 -0
- package/lib/preset/preset-registry.js.map +1 -0
- package/lib/preset/preset-registry.spec.d.ts +2 -0
- package/lib/preset/preset-registry.spec.d.ts.map +1 -0
- package/lib/preset/preset-registry.spec.js +28 -0
- package/lib/preset/preset-registry.spec.js.map +1 -0
- package/lib/preset/scf/scf-deployer.d.ts +54 -0
- package/lib/preset/scf/scf-deployer.d.ts.map +1 -0
- package/lib/preset/scf/scf-deployer.js +202 -0
- package/lib/preset/scf/scf-deployer.js.map +1 -0
- package/lib/preset/scf/scf-preset.d.ts +19 -0
- package/lib/preset/scf/scf-preset.d.ts.map +1 -0
- package/lib/preset/scf/scf-preset.js +43 -0
- package/lib/preset/scf/scf-preset.js.map +1 -0
- package/lib/preset/serverless-deployers.spec.d.ts +2 -0
- package/lib/preset/serverless-deployers.spec.d.ts.map +1 -0
- package/lib/preset/serverless-deployers.spec.js +307 -0
- package/lib/preset/serverless-deployers.spec.js.map +1 -0
- package/lib/preset/serverless-presets.spec.d.ts +2 -0
- package/lib/preset/serverless-presets.spec.d.ts.map +1 -0
- package/lib/preset/serverless-presets.spec.js +280 -0
- package/lib/preset/serverless-presets.spec.js.map +1 -0
- package/lib/preset/serverless-scripts.d.ts +29 -0
- package/lib/preset/serverless-scripts.d.ts.map +1 -0
- package/lib/preset/serverless-scripts.js +120 -0
- package/lib/preset/serverless-scripts.js.map +1 -0
- package/lib/preset/vercel/vercel-deployer.d.ts +38 -0
- package/lib/preset/vercel/vercel-deployer.d.ts.map +1 -0
- package/lib/preset/vercel/vercel-deployer.js +160 -0
- package/lib/preset/vercel/vercel-deployer.js.map +1 -0
- package/lib/preset/vercel/vercel-preset.d.ts +19 -0
- package/lib/preset/vercel/vercel-preset.d.ts.map +1 -0
- package/lib/preset/vercel/vercel-preset.js +102 -0
- package/lib/preset/vercel/vercel-preset.js.map +1 -0
- package/lib/test/fixture-project.d.ts +17 -0
- package/lib/test/fixture-project.d.ts.map +1 -0
- package/lib/test/fixture-project.js +43 -0
- package/lib/test/fixture-project.js.map +1 -0
- package/lib/testing/create-test-app.d.ts +27 -0
- package/lib/testing/create-test-app.d.ts.map +1 -0
- package/lib/testing/create-test-app.js +54 -0
- package/lib/testing/create-test-app.js.map +1 -0
- package/lib/testing/create-test-app.spec.d.ts +2 -0
- package/lib/testing/create-test-app.spec.d.ts.map +1 -0
- package/lib/testing/create-test-app.spec.js +66 -0
- package/lib/testing/create-test-app.spec.js.map +1 -0
- package/lib/toolchain/toolchain.d.ts +49 -0
- package/lib/toolchain/toolchain.d.ts.map +1 -0
- package/lib/toolchain/toolchain.js +100 -0
- package/lib/toolchain/toolchain.js.map +1 -0
- package/lib/utils/json-util.d.ts +11 -0
- package/lib/utils/json-util.d.ts.map +1 -0
- package/lib/utils/json-util.js +73 -0
- package/lib/utils/json-util.js.map +1 -0
- package/lib/utils/json-util.spec.d.ts +2 -0
- package/lib/utils/json-util.spec.d.ts.map +1 -0
- package/lib/utils/json-util.spec.js +18 -0
- package/lib/utils/json-util.spec.js.map +1 -0
- package/lib/utils/text-util.d.ts +19 -0
- package/lib/utils/text-util.d.ts.map +1 -0
- package/lib/utils/text-util.js +66 -0
- package/lib/utils/text-util.js.map +1 -0
- package/lib/utils/text-util.spec.d.ts +2 -0
- package/lib/utils/text-util.spec.d.ts.map +1 -0
- package/lib/utils/text-util.spec.js +22 -0
- package/lib/utils/text-util.spec.js.map +1 -0
- package/package.json +28 -30
- package/src/agent/agent-guide.ts +90 -0
- package/src/build/executable-compiler.ts +179 -0
- package/src/check/project-checker.ts +365 -0
- package/src/cli/agent-command.ts +46 -0
- package/src/cli/build-command.ts +189 -0
- package/src/cli/cell-cli.ts +174 -0
- package/src/cli/check-command.ts +74 -0
- package/src/cli/command.ts +29 -0
- package/src/cli/config-command.ts +73 -0
- package/src/cli/deploy-command.ts +122 -0
- package/src/cli/dev-command.ts +232 -0
- package/src/cli/docs-command.ts +53 -0
- package/src/cli/info-command.ts +40 -0
- package/src/cli/init-command.ts +53 -0
- package/src/cli/main.ts +3 -0
- package/src/cli/mcp-command.ts +98 -0
- package/src/cli/preview-command.ts +98 -0
- package/src/cli/reporter.ts +67 -0
- package/src/config/config-explainer.ts +158 -0
- package/src/config/config-file-loader.ts +76 -0
- package/src/config/config-resolver.ts +300 -0
- package/src/config/config-validator.ts +208 -0
- package/src/config/define-config.ts +6 -0
- package/src/config/types.ts +57 -0
- package/src/deploy/cloud-api.ts +194 -0
- package/src/deploy/code-package.ts +44 -0
- package/src/deploy/deployer-registry.ts +44 -0
- package/src/deploy/request-signer.ts +155 -0
- package/src/deploy/zip-writer.ts +132 -0
- package/src/docs/docs-index.ts +174 -0
- package/src/events/event-bus.ts +94 -0
- package/src/events/hook-runner.ts +78 -0
- package/src/index.ts +57 -0
- package/src/info/project-inspector.ts +352 -0
- package/src/init/project-initializer.ts +111 -0
- package/src/mcp/dev-activity.ts +71 -0
- package/src/mcp/dev-mcp-endpoint.ts +323 -0
- package/src/mcp/mcp-server.ts +251 -0
- package/src/mcp/project-mcp-tools.ts +216 -0
- package/src/modules/module-host.ts +489 -0
- package/src/preset/builtin-presets.ts +26 -0
- package/src/preset/cloudflare/cloudflare-deployer.ts +126 -0
- package/src/preset/cloudflare/cloudflare-preset.ts +97 -0
- package/src/preset/cloudflare/wrangler-config.ts +173 -0
- package/src/preset/cloudflare/wrangler.ts +113 -0
- package/src/preset/fc/fc-deployer.ts +237 -0
- package/src/preset/fc/fc-preset.ts +51 -0
- package/src/preset/lambda/lambda-deployer.ts +317 -0
- package/src/preset/lambda/lambda-preset.ts +45 -0
- package/src/preset/preset-output.ts +55 -0
- package/src/preset/preset-registry.ts +65 -0
- package/src/preset/scf/scf-deployer.ts +232 -0
- package/src/preset/scf/scf-preset.ts +45 -0
- package/src/preset/serverless-scripts.ts +132 -0
- package/src/preset/vercel/vercel-deployer.ts +168 -0
- package/src/preset/vercel/vercel-preset.ts +111 -0
- package/src/test/fixture-project.ts +50 -0
- package/src/testing/create-test-app.ts +73 -0
- package/src/toolchain/toolchain.ts +121 -0
- package/src/utils/json-util.ts +67 -0
- package/src/utils/text-util.ts +68 -0
- package/templates/backend/README.md +13 -0
- package/templates/backend/_gitignore +5 -0
- package/templates/backend/cell.yml +3 -0
- package/templates/backend/package.json +23 -0
- package/templates/{file-service/src → backend/src/node}/home-controller.ts +5 -2
- package/templates/{file-service/src → backend/src/node}/module.ts +0 -1
- package/templates/backend/template.json +3 -0
- package/templates/backend/test/app.spec.ts +19 -0
- package/templates/backend/tsconfig.json +25 -0
- package/templates/fullstack/README.md +13 -0
- package/templates/fullstack/_gitignore +5 -0
- package/templates/fullstack/cell.yml +6 -0
- package/templates/fullstack/package.json +27 -0
- package/templates/fullstack/src/browser/home.view.tsx +19 -0
- package/templates/{cell-component/src → fullstack/src/browser}/module.ts +1 -1
- package/templates/fullstack/src/common/greeting-protocol.ts +5 -0
- package/templates/fullstack/src/node/greeting-server.ts +13 -0
- package/templates/{admin-app/src/browser → fullstack/src/node}/module.ts +2 -1
- package/templates/fullstack/template.json +3 -0
- package/templates/fullstack/test/app.spec.ts +18 -0
- package/templates/fullstack/tsconfig.json +27 -0
- package/bin/cell +0 -2
- package/lib/build/build-manager.d.ts +0 -9
- package/lib/build/build-manager.d.ts.map +0 -1
- package/lib/build/build-manager.js +0 -41
- package/lib/build/build-manager.js.map +0 -1
- package/lib/build/build.d.ts +0 -6
- package/lib/build/build.d.ts.map +0 -1
- package/lib/build/build.js +0 -16
- package/lib/build/build.js.map +0 -1
- package/lib/cell-main.d.ts +0 -2
- package/lib/cell-main.d.ts.map +0 -1
- package/lib/cell-main.js +0 -110
- package/lib/cell-main.js.map +0 -1
- package/lib/cell.d.ts +0 -2
- package/lib/cell.d.ts.map +0 -1
- package/lib/cell.js +0 -194
- package/lib/cell.js.map +0 -1
- package/lib/config/config.d.ts +0 -12
- package/lib/config/config.d.ts.map +0 -1
- package/lib/config/config.js +0 -48
- package/lib/config/config.js.map +0 -1
- package/lib/deploy/deploy.d.ts +0 -7
- package/lib/deploy/deploy.d.ts.map +0 -1
- package/lib/deploy/deploy.js +0 -30
- package/lib/deploy/deploy.js.map +0 -1
- package/lib/info/info.d.ts +0 -6
- package/lib/info/info.d.ts.map +0 -1
- package/lib/info/info.js +0 -21
- package/lib/info/info.js.map +0 -1
- package/lib/init/init-manager.d.ts +0 -33
- package/lib/init/init-manager.d.ts.map +0 -1
- package/lib/init/init-manager.js +0 -141
- package/lib/init/init-manager.js.map +0 -1
- package/lib/init/init.d.ts +0 -4
- package/lib/init/init.d.ts.map +0 -1
- package/lib/init/init.js +0 -17
- package/lib/init/init.js.map +0 -1
- package/lib/init/templates.d.ts +0 -2
- package/lib/init/templates.d.ts.map +0 -1
- package/lib/init/templates.js +0 -23
- package/lib/init/templates.js.map +0 -1
- package/lib/package.spec.d.ts +0 -2
- package/lib/package.spec.d.ts.map +0 -1
- package/lib/package.spec.js +0 -7
- package/lib/package.spec.js.map +0 -1
- package/lib/props/props.d.ts +0 -9
- package/lib/props/props.d.ts.map +0 -1
- package/lib/props/props.js +0 -49
- package/lib/props/props.js.map +0 -1
- package/lib/serve/serve-manager.d.ts +0 -8
- package/lib/serve/serve-manager.d.ts.map +0 -1
- package/lib/serve/serve-manager.js +0 -44
- package/lib/serve/serve-manager.js.map +0 -1
- package/lib/serve/serve.d.ts +0 -8
- package/lib/serve/serve.d.ts.map +0 -1
- package/lib/serve/serve.js +0 -25
- package/lib/serve/serve.js.map +0 -1
- package/lib/update/update.d.ts +0 -9
- package/lib/update/update.d.ts.map +0 -1
- package/lib/update/update.js +0 -56
- package/lib/update/update.js.map +0 -1
- package/lib/utils/banner-util.d.ts +0 -6
- package/lib/utils/banner-util.d.ts.map +0 -1
- package/lib/utils/banner-util.js +0 -44
- package/lib/utils/banner-util.js.map +0 -1
- package/lib/utils/index.d.ts +0 -2
- package/lib/utils/index.d.ts.map +0 -1
- package/lib/utils/index.js +0 -18
- package/lib/utils/index.js.map +0 -1
- package/src/build/build-manager.ts +0 -50
- package/src/build/build.ts +0 -17
- package/src/cell-main.ts +0 -125
- package/src/cell.ts +0 -215
- package/src/config/config.ts +0 -56
- package/src/deploy/deploy.ts +0 -31
- package/src/info/info.ts +0 -23
- package/src/init/init-manager.ts +0 -163
- package/src/init/init.ts +0 -15
- package/src/init/templates.ts +0 -19
- package/src/package.spec.ts +0 -5
- package/src/props/props.ts +0 -48
- package/src/serve/serve-manager.ts +0 -51
- package/src/serve/serve.ts +0 -29
- package/src/update/update.ts +0 -61
- package/src/utils/banner-util.ts +0 -41
- package/src/utils/index.ts +0 -1
- package/templates/accounts/README.md +0 -76
- package/templates/accounts/cell-database.yml +0 -17
- package/templates/accounts/cell-locale.yml +0 -17
- package/templates/accounts/cell-oauth2.0.yml +0 -8
- package/templates/accounts/cell-theme.yml +0 -9
- package/templates/accounts/cell.yml +0 -10
- package/templates/accounts/favicon.ico +0 -0
- package/templates/accounts/package.json +0 -48
- package/templates/accounts/src/browser/home.view.tsx +0 -86
- package/templates/accounts/src/browser/index.ts +0 -3
- package/templates/accounts/src/browser/login.view.tsx +0 -78
- package/templates/accounts/src/browser/module.ts +0 -3
- package/templates/accounts/src/common/entity-protocol.ts +0 -7
- package/templates/accounts/src/common/index.ts +0 -1
- package/templates/accounts/src/node/authentication/authentication-success-handler.ts +0 -69
- package/templates/accounts/src/node/authentication/index.ts +0 -1
- package/templates/accounts/src/node/entity/base-entity.ts +0 -13
- package/templates/accounts/src/node/entity/connection.ts +0 -52
- package/templates/accounts/src/node/entity/index.ts +0 -1
- package/templates/accounts/src/node/entity/user.ts +0 -73
- package/templates/accounts/src/node/error/error.ts +0 -14
- package/templates/accounts/src/node/error/index.ts +0 -1
- package/templates/accounts/src/node/index.ts +0 -2
- package/templates/accounts/src/node/module.ts +0 -9
- package/templates/accounts/src/node/user/index.ts +0 -4
- package/templates/accounts/src/node/user/user-protocol.ts +0 -19
- package/templates/accounts/src/node/user/user-repository.ts +0 -72
- package/templates/accounts/src/node/user/user-service.ts +0 -36
- package/templates/accounts/tsconfig.json +0 -32
- package/templates/admin-app/.github/workflows/deploy.yml +0 -25
- package/templates/admin-app/.vscode/launch.json +0 -23
- package/templates/admin-app/README.md +0 -76
- package/templates/admin-app/cell-database.yml +0 -7
- package/templates/admin-app/cell.yml +0 -93
- package/templates/admin-app/package.json +0 -37
- package/templates/admin-app/src/browser/user.view.tsx +0 -40
- package/templates/admin-app/src/common/index.ts +0 -1
- package/templates/admin-app/src/common/user-protocol.ts +0 -23
- package/templates/admin-app/src/node/entity/index.ts +0 -1
- package/templates/admin-app/src/node/entity/user.ts +0 -15
- package/templates/admin-app/src/node/module.ts +0 -8
- package/templates/admin-app/src/node/user-service.ts +0 -41
- package/templates/admin-app/tsconfig.json +0 -32
- package/templates/backend-app/.github/workflows/deploy.yml +0 -25
- package/templates/backend-app/.vscode/launch.json +0 -23
- package/templates/backend-app/README.md +0 -76
- package/templates/backend-app/cell.yml +0 -0
- package/templates/backend-app/package.json +0 -33
- package/templates/backend-app/src/home-controller.ts +0 -11
- package/templates/backend-app/src/module.ts +0 -4
- package/templates/backend-app/src/user-controller.ts +0 -48
- package/templates/backend-app/test/home-controller.spec.ts +0 -19
- package/templates/backend-app/tsconfig.json +0 -32
- package/templates/cell-component/README.md +0 -27
- package/templates/cell-component/cell.yml +0 -0
- package/templates/cell-component/package.json +0 -29
- package/templates/cell-component/src/echo-service.ts +0 -16
- package/templates/cell-component/src/index.ts +0 -1
- package/templates/cell-component/src/package.spec.ts +0 -5
- package/templates/cell-component/tsconfig.json +0 -37
- package/templates/database-app/.github/workflows/deploy.yml +0 -25
- package/templates/database-app/.vscode/launch.json +0 -23
- package/templates/database-app/README.md +0 -76
- package/templates/database-app/cell.yml +0 -17
- package/templates/database-app/package.json +0 -31
- package/templates/database-app/src/entity/index.ts +0 -1
- package/templates/database-app/src/entity/user.ts +0 -13
- package/templates/database-app/src/home-controller.ts +0 -11
- package/templates/database-app/src/module.ts +0 -8
- package/templates/database-app/src/user-controller.ts +0 -43
- package/templates/database-app/tsconfig.json +0 -32
- package/templates/docker-app/.github/workflows/deploy.yml +0 -25
- package/templates/docker-app/.vscode/launch.json +0 -23
- package/templates/docker-app/Dockerfile +0 -27
- package/templates/docker-app/README.md +0 -77
- package/templates/docker-app/cell.yml +0 -0
- package/templates/docker-app/package.json +0 -31
- package/templates/docker-app/src/browser/assets/logo.png +0 -0
- package/templates/docker-app/src/browser/css-shims.d.ts +0 -30
- package/templates/docker-app/src/browser/hello.view.tsx +0 -31
- package/templates/docker-app/src/browser/module.ts +0 -3
- package/templates/docker-app/src/browser/style/hello.module.scss +0 -4
- package/templates/docker-app/src/common/welcome-protocol.ts +0 -5
- package/templates/docker-app/src/node/module.ts +0 -3
- package/templates/docker-app/src/node/welcome-server.ts +0 -9
- package/templates/docker-app/tsconfig.json +0 -33
- package/templates/file-service/.github/workflows/deploy.yml +0 -25
- package/templates/file-service/.vscode/launch.json +0 -23
- package/templates/file-service/README.md +0 -76
- package/templates/file-service/cell.yml +0 -12
- package/templates/file-service/package.json +0 -34
- package/templates/file-service/src/file-controller.ts +0 -47
- package/templates/file-service/tsconfig.json +0 -32
- package/templates/jwt-app/.github/workflows/deploy.yml +0 -25
- package/templates/jwt-app/.vscode/launch.json +0 -23
- package/templates/jwt-app/README.md +0 -76
- package/templates/jwt-app/cell.yml +0 -4
- package/templates/jwt-app/package.json +0 -36
- package/templates/jwt-app/src/context.ts +0 -16
- package/templates/jwt-app/src/error-handler.ts +0 -30
- package/templates/jwt-app/src/error.ts +0 -4
- package/templates/jwt-app/src/home-controller.ts +0 -23
- package/templates/jwt-app/src/index.ts +0 -5
- package/templates/jwt-app/src/jwt-middleware.ts +0 -36
- package/templates/jwt-app/src/module.ts +0 -3
- package/templates/jwt-app/test/home-controller.spec.ts +0 -19
- package/templates/jwt-app/tsconfig.json +0 -32
- package/templates/koa-app/app.js +0 -8
- package/templates/koa-app/package.json +0 -9
- package/templates/microservice/.github/workflows/deploy.yml +0 -28
- package/templates/microservice/.vscode/launch.json +0 -24
- package/templates/microservice/README.md +0 -76
- package/templates/microservice/examples/backend-app/README.md +0 -76
- package/templates/microservice/examples/backend-app/cell-remote.yml +0 -4
- package/templates/microservice/examples/backend-app/cell.yml +0 -3
- package/templates/microservice/examples/backend-app/package.json +0 -32
- package/templates/microservice/examples/backend-app/src/api-controller.ts +0 -31
- package/templates/microservice/examples/backend-app/src/module.ts +0 -3
- package/templates/microservice/examples/backend-app/tsconfig.json +0 -32
- package/templates/microservice/package.json +0 -20
- package/templates/microservice/packages/api/README.md +0 -76
- package/templates/microservice/packages/api/cell.yml +0 -0
- package/templates/microservice/packages/api/package.json +0 -25
- package/templates/microservice/packages/api/src/common/api-protocol.ts +0 -10
- package/templates/microservice/packages/api/src/common/index.ts +0 -1
- package/templates/microservice/packages/api/tsconfig.json +0 -30
- package/templates/microservice/packages/serviceA/.vscode/launch.json +0 -23
- package/templates/microservice/packages/serviceA/README.md +0 -76
- package/templates/microservice/packages/serviceA/cell.yml +0 -6
- package/templates/microservice/packages/serviceA/package.json +0 -29
- package/templates/microservice/packages/serviceA/src/node/module.ts +0 -3
- package/templates/microservice/packages/serviceA/src/node/service-a.ts +0 -9
- package/templates/microservice/packages/serviceA/tsconfig.json +0 -30
- package/templates/microservice/packages/serviceB/README.md +0 -76
- package/templates/microservice/packages/serviceB/cell.yml +0 -5
- package/templates/microservice/packages/serviceB/package.json +0 -29
- package/templates/microservice/packages/serviceB/src/node/module.ts +0 -3
- package/templates/microservice/packages/serviceB/src/node/service-b.ts +0 -9
- package/templates/microservice/packages/serviceB/tsconfig.json +0 -30
- package/templates/microservice/tsconfig.json +0 -32
- package/templates/mycli/.vscode/launch.json +0 -33
- package/templates/mycli/bin/mycli +0 -2
- package/templates/mycli/bin/mycli-deploy +0 -2
- package/templates/mycli/bin/mycli-init +0 -2
- package/templates/mycli/package.json +0 -33
- package/templates/mycli/src/bootstrap.ts +0 -7
- package/templates/mycli/src/constants.ts +0 -1
- package/templates/mycli/src/deploy/deploy-manager.ts +0 -12
- package/templates/mycli/src/deploy/deploy.ts +0 -16
- package/templates/mycli/src/deploy/index.ts +0 -1
- package/templates/mycli/src/index.ts +0 -2
- package/templates/mycli/src/init/index.ts +0 -1
- package/templates/mycli/src/init/init-manager.ts +0 -85
- package/templates/mycli/src/init/init.ts +0 -25
- package/templates/mycli/src/init/templates.ts +0 -3
- package/templates/mycli/src/module.ts +0 -3
- package/templates/mycli/src/mycli.ts +0 -13
- package/templates/mycli/templates/application-template/README.md +0 -0
- package/templates/mycli/tsconfig.json +0 -32
- package/templates/nest-app/.eslintrc.js +0 -25
- package/templates/nest-app/.prettierrc +0 -4
- package/templates/nest-app/README.md +0 -73
- package/templates/nest-app/nest-cli.json +0 -8
- package/templates/nest-app/package.json +0 -69
- package/templates/nest-app/src/app.controller.spec.ts +0 -22
- package/templates/nest-app/src/app.controller.ts +0 -12
- package/templates/nest-app/src/app.module.ts +0 -10
- package/templates/nest-app/src/app.service.ts +0 -8
- package/templates/nest-app/src/main.ts +0 -8
- package/templates/nest-app/test/app.e2e-spec.ts +0 -24
- package/templates/nest-app/test/jest-e2e.json +0 -9
- package/templates/nest-app/tsconfig.build.json +0 -12
- package/templates/nest-app/tsconfig.json +0 -25
- package/templates/nextjs-app/.eslintrc.json +0 -3
- package/templates/nextjs-app/README.md +0 -34
- package/templates/nextjs-app/next.config.js +0 -6
- package/templates/nextjs-app/package.json +0 -20
- package/templates/nextjs-app/pages/_app.js +0 -7
- package/templates/nextjs-app/pages/api/hello.js +0 -5
- package/templates/nextjs-app/pages/index.js +0 -69
- package/templates/nextjs-app/public/favicon.ico +0 -0
- package/templates/nextjs-app/public/vercel.svg +0 -4
- package/templates/nextjs-app/styles/Home.module.css +0 -116
- package/templates/nextjs-app/styles/globals.css +0 -16
- package/templates/sample-app/.github/workflows/deploy.yml +0 -25
- package/templates/sample-app/.vscode/launch.json +0 -23
- package/templates/sample-app/README.md +0 -76
- package/templates/sample-app/cell.yml +0 -0
- package/templates/sample-app/package.json +0 -31
- package/templates/sample-app/src/browser/assets/logo.png +0 -0
- package/templates/sample-app/src/browser/css-shims.d.ts +0 -30
- package/templates/sample-app/src/browser/hello.view.tsx +0 -31
- package/templates/sample-app/src/browser/module.ts +0 -3
- package/templates/sample-app/src/browser/style/hello.module.scss +0 -4
- package/templates/sample-app/src/common/welcome-protocol.ts +0 -5
- package/templates/sample-app/src/node/module.ts +0 -3
- package/templates/sample-app/src/node/welcome-server.ts +0 -9
- package/templates/sample-app/tsconfig.json +0 -32
- package/templates/schedule/.github/workflows/deploy.yml +0 -25
- package/templates/schedule/.vscode/launch.json +0 -23
- package/templates/schedule/README.md +0 -76
- package/templates/schedule/cell.yml +0 -1
- package/templates/schedule/package.json +0 -29
- package/templates/schedule/src/module.ts +0 -3
- package/templates/schedule/src/scheduler.ts +0 -10
- package/templates/schedule/tsconfig.json +0 -32
- package/templates/standalone-app/package.json +0 -17
- package/templates/standalone-app/src/app.service.ts +0 -10
- package/templates/standalone-app/src/main.ts +0 -14
- package/templates/standalone-app/src/module.ts +0 -3
- package/templates/standalone-app/tsconfig.json +0 -30
- package/templates/vue-app/.github/workflows/deploy.yml +0 -25
- package/templates/vue-app/.vscode/launch.json +0 -23
- package/templates/vue-app/README.md +0 -76
- package/templates/vue-app/cell.yml +0 -0
- package/templates/vue-app/package.json +0 -32
- package/templates/vue-app/src/browser/App.vue +0 -32
- package/templates/vue-app/src/browser/app.ts +0 -7
- package/templates/vue-app/src/browser/components/HelloWorld.vue +0 -42
- package/templates/vue-app/src/browser/declare.d.ts +0 -7
- package/templates/vue-app/src/browser/images/logo.png +0 -0
- package/templates/vue-app/src/browser/module.ts +0 -3
- package/templates/vue-app/src/browser/router.ts +0 -13
- package/templates/vue-app/src/browser/shims-vue.d.ts +0 -5
- package/templates/vue-app/src/browser/views/About.vue +0 -5
- package/templates/vue-app/src/browser/views/Root.vue +0 -37
- package/templates/vue-app/src/common/welcome-protocol.ts +0 -5
- package/templates/vue-app/src/node/module.ts +0 -3
- package/templates/vue-app/src/node/welcome-server.ts +0 -9
- package/templates/vue-app/tsconfig.json +0 -32
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
# 开发说明
|
|
2
|
-
|
|
3
|
-
## 安装依赖
|
|
4
|
-
|
|
5
|
-
以下使用 yarn 工具来说明,你也可以使用 npm。
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
# 通过 cell init 初始化应用的时候已经自动安装了依赖,所以你只需要安装你额外需要的依赖即可
|
|
9
|
-
|
|
10
|
-
$ yarn add xxxx
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## 本地运行
|
|
14
|
-
|
|
15
|
-
```shell
|
|
16
|
-
# 启动本地服务,端口默认 3000
|
|
17
|
-
# 在终端中会输出本地服务的 URL 链接
|
|
18
|
-
|
|
19
|
-
$ yarn start # 或者执行 cell serve 命令
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## 构建部署
|
|
23
|
-
|
|
24
|
-
模板默认提供了四套隔离环境:本地(local)、测试(test)、预发(pre)、线上(prod)。每个环境对应着一个 cell 配置文件(可选),类似 cell-test.yml。而 cell.yml 文件一般用于放所有环境的公共配置。第一次部署的时候可能会提示你填写相关云厂商 ak 信息。如果是 Vercel 云平台的模板,会提示你需要登录到 Vercel 平台。你也可以在项目通过 .env 提供云厂商的 ak 信息。
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
|
|
28
|
-
$ cell deploy -m scf # 部署到腾讯云函数测试环境
|
|
29
|
-
$ cell deploy -m scf -m test # 部署到腾讯云测试环境
|
|
30
|
-
$ cell deploy -m scf -m pre # 部署到腾讯云预发环境
|
|
31
|
-
$ cell deploy -m scf -m prod # 部署到腾讯云线上环境
|
|
32
|
-
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## 关于 Cell Framework
|
|
36
|
-
|
|
37
|
-
Cell 是基于 TypeScript 的 Serverless First、组件化、平台无关的渐进式应用框架。
|
|
38
|
-
|
|
39
|
-
## 特征
|
|
40
|
-
|
|
41
|
-
- 约定大于配置,零配置,开箱即用
|
|
42
|
-
- TypeScript 版 Spring Boot
|
|
43
|
-
- Serverless First
|
|
44
|
-
- 平台不锁定
|
|
45
|
-
- 支持前后端一体化,前端框架不锁定
|
|
46
|
-
- 支持微服务
|
|
47
|
-
- 组件化,渐进式
|
|
48
|
-
- 命令行工具插件化
|
|
49
|
-
- 依赖注入
|
|
50
|
-
- 面向切面编程(AOP)
|
|
51
|
-
- 集成了流行的 ORM 框架,使用装饰器声明式事务管理
|
|
52
|
-
- 支持 OIDC 认证
|
|
53
|
-
- 支持 OAuth2 授权
|
|
54
|
-
- 使用 rxjs 管理状态
|
|
55
|
-
- 提供 REST 和 RPC 两种接口风格
|
|
56
|
-
|
|
57
|
-
Cell 名字由来:在我的家乡,谐音“吗啦咕”是小石头的意思,小石头堆砌起来可以建成高楼大厦、道路桥梁,而 Cell 组件编排可以实现千变万化的应用。
|
|
58
|
-
|
|
59
|
-
## 快速开始
|
|
60
|
-
|
|
61
|
-
```bash
|
|
62
|
-
# 安装命令行工具
|
|
63
|
-
npm install -g @celljs/cli
|
|
64
|
-
|
|
65
|
-
# 初始化
|
|
66
|
-
cell init -o project-name
|
|
67
|
-
cd project-name # 进入项目根目录
|
|
68
|
-
|
|
69
|
-
# 运行
|
|
70
|
-
cell serve
|
|
71
|
-
|
|
72
|
-
# 部署
|
|
73
|
-
cell deploy
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
[](https://asciinema.org/a/474104?speed=2.5&autoplay=1)
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
# 依赖的公共前端 UI 框从 CDN 上加载
|
|
2
|
-
# mode: cdn
|
|
3
|
-
mode: [ database ]
|
|
4
|
-
cell:
|
|
5
|
-
security:
|
|
6
|
-
loginRequired: false
|
|
7
|
-
shell:
|
|
8
|
-
categories:
|
|
9
|
-
appCenter:
|
|
10
|
-
name: 应用中心
|
|
11
|
-
apps:
|
|
12
|
-
authentication:
|
|
13
|
-
name: 云认证
|
|
14
|
-
icon: Shield
|
|
15
|
-
categoryId: appCenter
|
|
16
|
-
accessControl:
|
|
17
|
-
name: 云授权
|
|
18
|
-
icon: Validate
|
|
19
|
-
categoryId: appCenter
|
|
20
|
-
development:
|
|
21
|
-
name: 云开发
|
|
22
|
-
icon: Code
|
|
23
|
-
categoryId: appCenter
|
|
24
|
-
configuration:
|
|
25
|
-
name: 云配置
|
|
26
|
-
icon: SettingsOption
|
|
27
|
-
categoryId: appCenter
|
|
28
|
-
monitor:
|
|
29
|
-
name: 云监控
|
|
30
|
-
icon: Monitor
|
|
31
|
-
categoryId: appCenter
|
|
32
|
-
widget:
|
|
33
|
-
widgets:
|
|
34
|
-
test:
|
|
35
|
-
type: NavItem
|
|
36
|
-
area: Nav
|
|
37
|
-
props:
|
|
38
|
-
path: /users
|
|
39
|
-
icon: Group
|
|
40
|
-
label: 用户管理
|
|
41
|
-
test2:
|
|
42
|
-
type: NavItem
|
|
43
|
-
area: Nav
|
|
44
|
-
props:
|
|
45
|
-
path: /depts
|
|
46
|
-
icon: Organization
|
|
47
|
-
label: 部门管理
|
|
48
|
-
test3:
|
|
49
|
-
type: NavItem
|
|
50
|
-
area: Nav
|
|
51
|
-
props:
|
|
52
|
-
path: /dictionaries
|
|
53
|
-
icon: Catalog
|
|
54
|
-
label: 字典管理
|
|
55
|
-
test4:
|
|
56
|
-
type: NavItem
|
|
57
|
-
area: Nav
|
|
58
|
-
props:
|
|
59
|
-
path: /menus
|
|
60
|
-
icon: List
|
|
61
|
-
label: 菜单管理
|
|
62
|
-
themes:
|
|
63
|
-
default:
|
|
64
|
-
label: 黑色
|
|
65
|
-
props:
|
|
66
|
-
global:
|
|
67
|
-
colors:
|
|
68
|
-
brand: '#000000'
|
|
69
|
-
blue:
|
|
70
|
-
label: 蓝色
|
|
71
|
-
props:
|
|
72
|
-
global:
|
|
73
|
-
colors:
|
|
74
|
-
brand: '#7D4CDB'
|
|
75
|
-
green:
|
|
76
|
-
label: 绿色
|
|
77
|
-
props:
|
|
78
|
-
global:
|
|
79
|
-
colors:
|
|
80
|
-
brand: '#00C781'
|
|
81
|
-
yellow:
|
|
82
|
-
label: 黄色
|
|
83
|
-
props:
|
|
84
|
-
global:
|
|
85
|
-
colors:
|
|
86
|
-
brand: '#FFCA58'
|
|
87
|
-
red:
|
|
88
|
-
label: 红色
|
|
89
|
-
props:
|
|
90
|
-
global:
|
|
91
|
-
colors:
|
|
92
|
-
brand: '#FF4040'
|
|
93
|
-
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "admin-app",
|
|
3
|
-
"keywords": [
|
|
4
|
-
"cell-component"
|
|
5
|
-
],
|
|
6
|
-
"version": "0.0.0",
|
|
7
|
-
"license": "MIT",
|
|
8
|
-
"files": [
|
|
9
|
-
"lib",
|
|
10
|
-
"src"
|
|
11
|
-
],
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"@celljs/core": "{{ version }}",
|
|
14
|
-
"@celljs/react": "{{ version }}",
|
|
15
|
-
"@celljs/rpc": "{{ version }}",
|
|
16
|
-
"@celljs/security": "{{ version }}",
|
|
17
|
-
"@celljs/serve-static": "{{ version }}",
|
|
18
|
-
"@celljs/shell": "{{ version }}",
|
|
19
|
-
"@celljs/typeorm": "{{ version }}",
|
|
20
|
-
"better-sqlite3": "^11.3.0",
|
|
21
|
-
"react": "^18.2.0",
|
|
22
|
-
"grommet": "^2.25.1",
|
|
23
|
-
"typeorm": "^0.3.7"
|
|
24
|
-
},
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"@celljs/cli": "{{ version }}"
|
|
27
|
-
},
|
|
28
|
-
"scripts": {
|
|
29
|
-
"clean": "rimraf lib dist .cell",
|
|
30
|
-
"build": "cell build",
|
|
31
|
-
"start": "cell serve",
|
|
32
|
-
"deploy": "cell deploy -m scf -m test",
|
|
33
|
-
"deploy:test": "cell deploy -m scf -m test",
|
|
34
|
-
"deploy:pre": "cell deploy -m scf -m pre",
|
|
35
|
-
"deploy:prod": "cell deploy -m scf -m prod"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { View } from '@celljs/react';
|
|
3
|
-
import { RpcUtil } from '@celljs/rpc';
|
|
4
|
-
import { DataTable } from 'grommet';
|
|
5
|
-
import { UserService, User } from '../common';
|
|
6
|
-
|
|
7
|
-
function Users() {
|
|
8
|
-
|
|
9
|
-
const [ data, setData ] = React.useState<User[]>([]);
|
|
10
|
-
|
|
11
|
-
React.useEffect(() => {
|
|
12
|
-
const userService = RpcUtil.get<UserService>(UserService);
|
|
13
|
-
userService.list().then(users => setData(users))
|
|
14
|
-
|
|
15
|
-
}, [])
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<DataTable
|
|
19
|
-
margin={{ vertical: 'medium' }}
|
|
20
|
-
columns={[
|
|
21
|
-
{
|
|
22
|
-
property: 'name',
|
|
23
|
-
header: 'Name',
|
|
24
|
-
primary: true
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
property: 'age',
|
|
28
|
-
header: 'Age'
|
|
29
|
-
}
|
|
30
|
-
]}
|
|
31
|
-
data={data}
|
|
32
|
-
>
|
|
33
|
-
|
|
34
|
-
</DataTable>
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
@View({ index: true, component: Users})
|
|
39
|
-
@View({ path: 'users', component: Users})
|
|
40
|
-
export default class {}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './user-protocol';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export const UserService = Symbol('UserService');
|
|
2
|
-
|
|
3
|
-
export interface UserService {
|
|
4
|
-
|
|
5
|
-
list(): Promise<User[]>;
|
|
6
|
-
|
|
7
|
-
get(id: number): Promise<User | null>;
|
|
8
|
-
|
|
9
|
-
remove(id: number): Promise<void>
|
|
10
|
-
|
|
11
|
-
modify(user: User): Promise<void>;
|
|
12
|
-
|
|
13
|
-
create(user: User): Promise<User>;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface User {
|
|
17
|
-
|
|
18
|
-
id: number;
|
|
19
|
-
|
|
20
|
-
name: string;
|
|
21
|
-
|
|
22
|
-
age: number;
|
|
23
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './user';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';
|
|
2
|
-
import { User as IUser } from '../../common';
|
|
3
|
-
|
|
4
|
-
@Entity()
|
|
5
|
-
export class User implements IUser {
|
|
6
|
-
|
|
7
|
-
@PrimaryGeneratedColumn()
|
|
8
|
-
id: number;
|
|
9
|
-
|
|
10
|
-
@Column()
|
|
11
|
-
name: string;
|
|
12
|
-
|
|
13
|
-
@Column()
|
|
14
|
-
age: number;
|
|
15
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Transactional, OrmContext } from '@celljs/typeorm/lib/node';
|
|
2
|
-
import { Rpc } from '@celljs/rpc';
|
|
3
|
-
import { Anonymous } from '@celljs/security/lib/node'
|
|
4
|
-
import { User } from './entity';
|
|
5
|
-
import { UserService } from '../common';
|
|
6
|
-
|
|
7
|
-
@Rpc(UserService)
|
|
8
|
-
@Anonymous()
|
|
9
|
-
export class UserServiceImpl implements UserService {
|
|
10
|
-
|
|
11
|
-
@Transactional({ readOnly: true })
|
|
12
|
-
list(): Promise<User[]> {
|
|
13
|
-
const repo = OrmContext.getRepository(User);
|
|
14
|
-
return repo.find();
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@Transactional({ readOnly: true })
|
|
18
|
-
get(id: number): Promise<User | null> {
|
|
19
|
-
const repo = OrmContext.getRepository(User);
|
|
20
|
-
return repo.findOneBy({ id });
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@Transactional()
|
|
24
|
-
async remove(id: number): Promise<void> {
|
|
25
|
-
const repo = OrmContext.getRepository(User);
|
|
26
|
-
await repo.delete(id);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@Transactional()
|
|
30
|
-
async modify(user: User): Promise<void> {
|
|
31
|
-
const repo = OrmContext.getRepository(User);
|
|
32
|
-
await repo.update(user.id, user);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@Transactional()
|
|
36
|
-
create(user: User): Promise<User> {
|
|
37
|
-
const repo = OrmContext.getRepository(User);
|
|
38
|
-
return repo.save(user);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"skipLibCheck": true,
|
|
4
|
-
"declaration": true,
|
|
5
|
-
"declarationMap": true,
|
|
6
|
-
"noImplicitAny": true,
|
|
7
|
-
"noEmitOnError": false,
|
|
8
|
-
"noImplicitThis": true,
|
|
9
|
-
"noUnusedLocals": true,
|
|
10
|
-
"strictNullChecks": true,
|
|
11
|
-
"experimentalDecorators": true,
|
|
12
|
-
"emitDecoratorMetadata": true,
|
|
13
|
-
"module": "node16",
|
|
14
|
-
"moduleResolution": "node16",
|
|
15
|
-
"jsx": "react",
|
|
16
|
-
"target": "ES2017",
|
|
17
|
-
"lib": [
|
|
18
|
-
"ES2017",
|
|
19
|
-
"dom"
|
|
20
|
-
],
|
|
21
|
-
"sourceMap": true,
|
|
22
|
-
"rootDir": "src",
|
|
23
|
-
"outDir": "lib",
|
|
24
|
-
"strict": false,
|
|
25
|
-
"types": [
|
|
26
|
-
"node"
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
"include": [
|
|
30
|
-
"src"
|
|
31
|
-
]
|
|
32
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
name: Cell Deploy
|
|
2
|
-
|
|
3
|
-
on: push
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
cell-deploy:
|
|
7
|
-
runs-on: ubuntu-latest
|
|
8
|
-
steps:
|
|
9
|
-
- uses: actions/checkout@v2
|
|
10
|
-
- name: Setup node
|
|
11
|
-
uses: actions/setup-node@v1
|
|
12
|
-
with:
|
|
13
|
-
node-version: '12'
|
|
14
|
-
- uses: bahmutov/npm-install@v1
|
|
15
|
-
- run: npm run lint --if-present
|
|
16
|
-
- run: npm test
|
|
17
|
-
- if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
|
|
18
|
-
env: ${{ secrets }}
|
|
19
|
-
run: npx cell deploy -m prod
|
|
20
|
-
- if: ${{ github.ref == 'refs/heads/pre' }}
|
|
21
|
-
env: ${{ secrets }}
|
|
22
|
-
run: npx cell deploy -m pre
|
|
23
|
-
- if: ${{ github.ref != 'refs/heads/master' && github.ref == 'refs/heads/main' && github.ref != 'refs/heads/pre' }}
|
|
24
|
-
env: ${{ secrets }}
|
|
25
|
-
run: npx cell deploy -m test
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "0.2.0",
|
|
3
|
-
"configurations": [
|
|
4
|
-
{
|
|
5
|
-
"name": "Cell Debug",
|
|
6
|
-
"request": "launch",
|
|
7
|
-
"runtimeArgs": [
|
|
8
|
-
"cell",
|
|
9
|
-
"serve"
|
|
10
|
-
],
|
|
11
|
-
"runtimeExecutable": "npx",
|
|
12
|
-
"skipFiles": [
|
|
13
|
-
"<node_internals>/**"
|
|
14
|
-
],
|
|
15
|
-
"env": {
|
|
16
|
-
"NODE_ENV": "development"
|
|
17
|
-
},
|
|
18
|
-
"internalConsoleOptions": "openOnSessionStart",
|
|
19
|
-
"outputCapture": "std",
|
|
20
|
-
"type": "pwa-node"
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
# 开发说明
|
|
2
|
-
|
|
3
|
-
## 安装依赖
|
|
4
|
-
|
|
5
|
-
以下使用 yarn 工具来说明,你也可以使用 npm。
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
# 通过 cell init 初始化应用的时候已经自动安装了依赖,所以你只需要安装你额外需要的依赖即可
|
|
9
|
-
|
|
10
|
-
$ yarn add xxxx
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## 本地运行
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
# 启动本地服务,端口默认 3000
|
|
17
|
-
# 在终端中会输出本地服务的 URL 链接
|
|
18
|
-
|
|
19
|
-
$ yarn start # 或者执行 cell serve 命令
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## 构建部署
|
|
23
|
-
|
|
24
|
-
模板默认提供了四套隔离环境:本地(local)、测试(test)、预发(pre)、线上(prod)。每个环境对应着一个 cell 配置文件(可选),类似 cell-test.yml。而 cell.yml 文件一般用于放所有环境的公共配置。第一次部署的时候可能会提示你填写相关云厂商 ak 信息。如果是 Vercel 云平台的模板,会提示你需要登录到 Vercel 平台。你也可以在项目通过 .env 提供云厂商的 ak 信息。
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
|
|
28
|
-
$ cell deploy -m scf # 部署到腾讯云函数测试环境
|
|
29
|
-
$ cell deploy -m scf -m test # 部署到腾讯云测试环境
|
|
30
|
-
$ cell deploy -m scf -m pre # 部署到腾讯云预发环境
|
|
31
|
-
$ cell deploy -m scf -m prod # 部署到腾讯云线上环境
|
|
32
|
-
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## 关于 Cell Framework
|
|
36
|
-
|
|
37
|
-
Cell 是基于 TypeScript 的 Serverless First、组件化、平台无关的渐进式应用框架。
|
|
38
|
-
|
|
39
|
-
## 特征
|
|
40
|
-
|
|
41
|
-
- 约定大于配置,零配置,开箱即用
|
|
42
|
-
- TypeScript 版 Spring Boot
|
|
43
|
-
- Serverless First
|
|
44
|
-
- 平台不锁定
|
|
45
|
-
- 支持前后端一体化,前端框架不锁定
|
|
46
|
-
- 支持微服务
|
|
47
|
-
- 组件化,渐进式
|
|
48
|
-
- 命令行工具插件化
|
|
49
|
-
- 依赖注入
|
|
50
|
-
- 面向切面编程(AOP)
|
|
51
|
-
- 集成了流行的 ORM 框架,使用装饰器声明式事务管理
|
|
52
|
-
- 支持 OIDC 认证
|
|
53
|
-
- 支持 OAuth2 授权
|
|
54
|
-
- 使用 rxjs 管理状态
|
|
55
|
-
- 提供 REST 和 RPC 两种接口风格
|
|
56
|
-
|
|
57
|
-
Cell 名字由来:在我的家乡,谐音“吗啦咕”是小石头的意思,小石头堆砌起来可以建成高楼大厦、道路桥梁,而 Cell 组件编排可以实现千变万化的应用。
|
|
58
|
-
|
|
59
|
-
## 快速开始
|
|
60
|
-
|
|
61
|
-
```bash
|
|
62
|
-
# 安装命令行工具
|
|
63
|
-
npm install -g @celljs/cli
|
|
64
|
-
|
|
65
|
-
# 初始化
|
|
66
|
-
cell init -o project-name
|
|
67
|
-
cd project-name # 进入项目根目录
|
|
68
|
-
|
|
69
|
-
# 运行
|
|
70
|
-
cell serve
|
|
71
|
-
|
|
72
|
-
# 部署
|
|
73
|
-
cell deploy
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
[](https://asciinema.org/a/474104?speed=2.5&autoplay=1)
|
|
File without changes
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "backend-app",
|
|
3
|
-
"keywords": [
|
|
4
|
-
"cell-component"
|
|
5
|
-
],
|
|
6
|
-
"version": "0.0.0",
|
|
7
|
-
"license": "MIT",
|
|
8
|
-
"files": [
|
|
9
|
-
"lib",
|
|
10
|
-
"src"
|
|
11
|
-
],
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"@celljs/core": "{{ version }}",
|
|
14
|
-
"@celljs/mvc": "{{ version }}"
|
|
15
|
-
},
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"@celljs/cli": "{{ version }}",
|
|
18
|
-
"@celljs/testing": "{{ version }}",
|
|
19
|
-
"@types/supertest": "^2.0.12",
|
|
20
|
-
"supertest": "^6.2.4",
|
|
21
|
-
"@types/bun": "^1.3.11"
|
|
22
|
-
},
|
|
23
|
-
"scripts": {
|
|
24
|
-
"clean": "rimraf lib dist .cell",
|
|
25
|
-
"test": "bun test ./test",
|
|
26
|
-
"build": "cell build",
|
|
27
|
-
"start": "cell serve",
|
|
28
|
-
"deploy": "cell deploy -m scf -m test",
|
|
29
|
-
"deploy:test": "cell deploy -m scf -m test",
|
|
30
|
-
"deploy:pre": "cell deploy -m scf -m pre",
|
|
31
|
-
"deploy:prod": "cell deploy -m scf -m prod"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Controller, Get, Param, Delete, Put, Post, Body } from '@celljs/mvc/lib/node';
|
|
2
|
-
|
|
3
|
-
export interface User {
|
|
4
|
-
name: string;
|
|
5
|
-
age: number;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
const users = [ { name: 'Tom', age: 20 }, { name: 'Alice', age: 23 }]
|
|
9
|
-
|
|
10
|
-
@Controller('users')
|
|
11
|
-
export class UserController {
|
|
12
|
-
|
|
13
|
-
@Get()
|
|
14
|
-
list(): User[] {
|
|
15
|
-
return users;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@Get(':name')
|
|
19
|
-
get(@Param('name') name: string): User | undefined {
|
|
20
|
-
for (const user of users) {
|
|
21
|
-
if (user.name === name) {
|
|
22
|
-
return user;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@Delete(':name')
|
|
28
|
-
remove(@Param('name') name: string): void {
|
|
29
|
-
const index = users.findIndex(user => user.name === name);
|
|
30
|
-
if (index !== -1) {
|
|
31
|
-
users.splice(index, 1);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@Put()
|
|
36
|
-
modify(@Body() user: User): void {
|
|
37
|
-
const target = users.find(u => u.name == user.name);
|
|
38
|
-
if (target) {
|
|
39
|
-
target.age = user.age;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@Post()
|
|
44
|
-
create(@Body() user: User): void {
|
|
45
|
-
users.push(user);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { beforeAll, describe, it } from 'bun:test';
|
|
2
|
-
import { Test } from '@celljs/testing';
|
|
3
|
-
import request from 'supertest';
|
|
4
|
-
|
|
5
|
-
describe('HomeController (e2e)', () => {
|
|
6
|
-
let server: string;
|
|
7
|
-
|
|
8
|
-
beforeAll(async () => {
|
|
9
|
-
server = await Test.createHttpServer();
|
|
10
|
-
}, 20000);
|
|
11
|
-
|
|
12
|
-
// bun:test only awaits native promises, so await supertest's thenable explicitly.
|
|
13
|
-
it('/ (GET)', async () => {
|
|
14
|
-
await request(server)
|
|
15
|
-
.get('/')
|
|
16
|
-
.expect(200)
|
|
17
|
-
.expect('Welcome to Cell');
|
|
18
|
-
});
|
|
19
|
-
});
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"skipLibCheck": true,
|
|
4
|
-
"declaration": true,
|
|
5
|
-
"declarationMap": true,
|
|
6
|
-
"noImplicitAny": true,
|
|
7
|
-
"noEmitOnError": false,
|
|
8
|
-
"noImplicitThis": true,
|
|
9
|
-
"noUnusedLocals": true,
|
|
10
|
-
"strictNullChecks": true,
|
|
11
|
-
"experimentalDecorators": true,
|
|
12
|
-
"emitDecoratorMetadata": true,
|
|
13
|
-
"module": "node16",
|
|
14
|
-
"moduleResolution": "node16",
|
|
15
|
-
"jsx": "react",
|
|
16
|
-
"target": "ES2017",
|
|
17
|
-
"lib": [
|
|
18
|
-
"ES2017",
|
|
19
|
-
"dom"
|
|
20
|
-
],
|
|
21
|
-
"sourceMap": true,
|
|
22
|
-
"rootDir": "src",
|
|
23
|
-
"outDir": "lib",
|
|
24
|
-
"strict": false,
|
|
25
|
-
"types": [
|
|
26
|
-
"node"
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
"include": [
|
|
30
|
-
"src"
|
|
31
|
-
]
|
|
32
|
-
}
|