mfp-application
TypeScript icon, indicating that this package has built-in type declarations

2.0.20 • Public • Published

Usage:

  • class Application
import Application from "@meili/mfp-application";
import Env from "@meili/mfp-application/lib/constant/Env";

let app = new Application({
    cwd: process.cwd(),
    env: Env.DEVELOP
});

app.fetch().then(() => {
    return app.reset();
}).then(() => {
    return app.checkout('release');
}).then(() => {
    return app.reset('12345678');
});
  • class Packer
import { Packer } from "@meili/mfp-application";
import Env from "@meili/mfp-application/lib/constant/Env";

let packer = new Packer({
    cwd: process.cwd(),
    env: Env.PRODUCTION
});

let app = packer.app;

app.fetch().then(() => {
    return app.reset();
}).then(() => {
    return app.checkout('release');
}).then(() => {
    return app.reset('12345678');
}).then(() => {
    packer.build();
});

Readme

Keywords

none

Package Sidebar

Install

npm i mfp-application

Weekly Downloads

1

Version

2.0.20

License

ISC

Unpacked Size

162 kB

Total Files

117

Last publish

Collaborators

  • nilennoct