mfp-application
v2.0.20
Published
classes for MFP
Downloads
20
Readme
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();
});