Cell 是一种基于 TypeScript 的 Serverless First、组件化、平台独立的渐进式应用程序框架。
English | 简体中文
Cell is a Serverless First, Component-based, and Platform-independent progressive application framework based on TypeScript.
# Install command line tool
npm install -g @celljs/cli
# Initialize project
cell init -o project-name
cd project-name # Enter project root directory
# Run project
cell serve
# Deploy project
cell deploy -m scf # Deploy to Tencent Cloud Functions (SCF)
cell deploy -m fc # Deploy to Alibaba Cloud Function Compute (FC)
cell deploy -m lambda # Deploy to AWS Lambda// Class object injection
@Component()
export class A {
}
@Component()
export class B {
@Autowired()
protected a: A;
}
// Configuration property injection
@Component()
export class C {
@Value('foo') // Support EL expression syntax, such as @Value('obj.xxx'), @Value('arr[1]') etc.
protected foo: string;
}…暂无开放 Issues,或尚未同步最近议题。