@_tc/template-core 0.0.1-bate.28 → 0.0.1-bate.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/app/extend/render-view.js +2 -2
- package/esm/app/middleware/api-params-verify.js +1 -1
- package/esm/app/middleware/api-sign-verify.js +1 -1
- package/esm/app/middleware.js +5 -5
- package/esm/app/service/bese.js +1 -1
- package/esm/bundler/utils.js +4 -4
- package/esm/packages/core/index.js +1 -1
- package/esm/packages/core/loader/model.js +2 -2
- package/esm/packages/core/loader/router.js +1 -1
- package/esm/packages/utils/getAllFilesInFolder.js +1 -1
- package/esm/packages/utils/loadFile.js +1 -1
- package/esm/packages/utils/path.js +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getAppPath } from "../../packages/core/paths.js";
|
|
2
|
-
import nunjucks from "nunjucks
|
|
3
|
-
import path from "path
|
|
2
|
+
import nunjucks from "nunjucks";
|
|
3
|
+
import path from "path";
|
|
4
4
|
export default (app) => {
|
|
5
5
|
const viewsPath = path.join(getAppPath(app, "frame"), "./public");
|
|
6
6
|
const env = nunjucks.configure(viewsPath, {
|
package/esm/app/middleware.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { resolve } from "path
|
|
2
|
-
import compress from "koa-compress
|
|
3
|
-
// import koaNunjucks from "koa-nunjucks-2
|
|
4
|
-
import koaStatic from "koa-static
|
|
5
|
-
import kb from "koa-bodyparser
|
|
1
|
+
import { resolve } from "path";
|
|
2
|
+
import compress from "koa-compress";
|
|
3
|
+
// import koaNunjucks from "koa-nunjucks-2";
|
|
4
|
+
import koaStatic from "koa-static";
|
|
5
|
+
import kb from "koa-bodyparser";
|
|
6
6
|
const koaBody = kb({
|
|
7
7
|
formLimit: "1000mb",
|
|
8
8
|
enableTypes: ["form", "json", "text"],
|
package/esm/app/service/bese.js
CHANGED
package/esm/bundler/utils.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import path from "path
|
|
2
|
-
import * as glob from "glob
|
|
3
|
-
import { build } from "vite
|
|
1
|
+
import path from "path";
|
|
2
|
+
import * as glob from "glob";
|
|
3
|
+
import { build } from "vite";
|
|
4
4
|
import { resolve } from "../packages/utils.js";
|
|
5
|
-
import { copyFileSync, existsSync, readdirSync, readFileSync, rmdirSync, unlinkSync, writeFileSync, } from "fs
|
|
5
|
+
import { copyFileSync, existsSync, readdirSync, readFileSync, rmdirSync, unlinkSync, writeFileSync, } from "fs";
|
|
6
6
|
const base = process.cwd();
|
|
7
7
|
// 瞄准输出后的产物路径
|
|
8
8
|
const framePath = path.resolve(__dirname, "../../");
|