@qse/edu-scripts 1.13.12 → 1.14.1
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/CHANGELOG.md
CHANGED
package/lib/build.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/build.js
|
|
2
2
|
process.env.NODE_ENV = "production";
|
|
3
3
|
process.env.BABEL_ENV = "production";
|
|
4
|
-
process.env.BROWSERSLIST = ">0.2%,
|
|
4
|
+
process.env.BROWSERSLIST = ">0.2%, iOS>=9, ie 11, chrome>=49, not op_mini all";
|
|
5
5
|
var webpack = require("webpack");
|
|
6
6
|
var chalk = require("chalk");
|
|
7
7
|
var getConfig = require("./utils/getConfig");
|
|
@@ -361,7 +361,7 @@ module.exports = function getWebpackConfig(args, override) {
|
|
|
361
361
|
drop: ["debugger"],
|
|
362
362
|
keepNames: false,
|
|
363
363
|
legalComments: "none",
|
|
364
|
-
target: "
|
|
364
|
+
target: "es5"
|
|
365
365
|
}),
|
|
366
366
|
// This is only used in production mode
|
|
367
367
|
override.minify === "terser" && new TerserPlugin({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qse/edu-scripts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.1",
|
|
4
4
|
"author": "Kinoko",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "教育工程化基础框架",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"docs:deploy": "ssh-sftp",
|
|
14
14
|
"build": "father build",
|
|
15
15
|
"deploy": "node scripts/deploy && rimraf docs-dist",
|
|
16
|
-
"release": "npm run build && npm publish && rimraf lib",
|
|
16
|
+
"release": "npm run test && npm run build && npm publish && rimraf lib",
|
|
17
17
|
"prettier": "prettier -c -w \"src/**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
|
18
18
|
"lint": "eslint --fix src",
|
|
19
19
|
"postversion": "npm run release",
|
package/src/build.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
process.env.NODE_ENV = 'production'
|
|
2
2
|
process.env.BABEL_ENV = 'production'
|
|
3
|
-
process.env.BROWSERSLIST = '>0.2%,
|
|
3
|
+
process.env.BROWSERSLIST = '>0.2%, iOS>=9, ie 11, chrome>=49, not op_mini all'
|
|
4
4
|
|
|
5
5
|
const webpack = require('webpack')
|
|
6
6
|
const chalk = require('chalk')
|
|
@@ -387,7 +387,7 @@ module.exports = function getWebpackConfig(args, override) {
|
|
|
387
387
|
drop: ['debugger'],
|
|
388
388
|
keepNames: false,
|
|
389
389
|
legalComments: 'none',
|
|
390
|
-
target: '
|
|
390
|
+
target: 'es5',
|
|
391
391
|
}),
|
|
392
392
|
// This is only used in production mode
|
|
393
393
|
override.minify === 'terser' &&
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { RequestHandler } from 'express';
|
|
2
|
-
type Method = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS' | 'CONNECT' | 'TRACE';
|
|
3
|
-
type API = string;
|
|
4
|
-
export type MockConfig = Record<`${Method} ${API}`, string | number | null | undefined | boolean | Record<string, any> | RequestHandler>;
|
|
5
|
-
export declare function defineMock(config: MockConfig): MockConfig;
|
|
6
|
-
export {};
|
package/lib/index.d.ts
DELETED