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