@qse/edu-scripts 1.13.12 → 1.14.0
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 +4 -0
- package/lib/build.js +1 -1
- package/package.json +2 -2
- package/src/build.js +1 -1
- package/lib/config/plugins/mock-server/defineMock.d.ts +0 -6
- package/lib/index.d.ts +0 -2
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");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qse/edu-scripts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
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')
|
|
@@ -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