chore: 准备打包

This commit is contained in:
xiaojunnuo
2023-05-24 17:30:42 +08:00
parent ac15c8fc0e
commit 643148d283
54 changed files with 21 additions and 971 deletions
+1 -6
View File
@@ -1,7 +1,2 @@
const WebFramework = require('@midwayjs/koa').Framework;
const web = new WebFramework().configure({
port: 7001,
});
const { Bootstrap } = require('@midwayjs/bootstrap');
Bootstrap.load(web).run();
Bootstrap.run();
+2 -2
View File
@@ -4,8 +4,8 @@
"description": "fast-server base midway",
"private": true,
"scripts": {
"start": "NODE_ENV=production node ./bootstrap.js",
"online": "NODE_ENV=production node ./bootstrap.js",
"start": "cross-env NODE_ENV=production node ./bootstrap.js",
"online": "cross-env NODE_ENV=production node ./bootstrap.js",
"online:preview": "NODE_ENV=preview node ./bootstrap.js",
"dev": "cross-env NODE_ENV=local midway-bin dev --ts --watchFile='../../core/pipeline/src,../../plugins/'",
"dev:preview": "cross-env NODE_ENV=preview midway-bin dev --ts",