Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

mfp-application

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();
});
 

Keywords

none

install

npm i mfp-application

Downloadsweekly downloads

28

version

2.0.20

license

ISC

repository

Gitgitlab

last publish

collaborators

  • avatar
Report a vulnerability