0.0.1-alpha.1588910456945 • Published 4 years ago

@amoebajs/basic-modules v0.0.1-alpha.1588910456945

Weekly downloads
-
License
AGPL-3.0-only
Repository
github
Last release
4 years ago

basic-modules

@amoebajs/basic-modules

Install

yarn add @amoebajs/basic-modules

How to use

import { Factory } from "@amoebajs/builder";
import { CommonModule, LayoutModule, ZentModule } from "@amoebajs/basic-modules";

export class BuilderFactory extends Factory {
  protected initModules() {
    super.initModules();
    this.useModule(CommonModule);
    this.useModule(LayoutModule);
    this.useModule(ZentModule);
  }
}

then use this new factory to generate your code.

How to develop

  1. clone repo https://github.com/amoebajs/builder in same directory with this repo
  2. run cd builder && yarn watch or cd builder && yarn build
  3. run cd ../basic-modules
  4. now you can use yarn build:only to generayor source code with basic modules