Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
zoy-l committed Apr 3, 2021
1 parent 95e0edb commit 62fc94e
Show file tree
Hide file tree
Showing 16 changed files with 445 additions and 184 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
]
},
"devDependencies": {
"@babel/core": "^7.13.10",
"@babel/core": "^7.13.14",
"@types/rimraf": "^3.0.0",
"@vue/compiler-sfc": "^3.0.7",
"@vue/compiler-sfc": "^3.0.11",
"lerna": "^4.0.0",
"lint-staged": "^10.5.4",
"rimraf": "^3.0.2",
Expand Down
8 changes: 4 additions & 4 deletions packages/zmi-babel-factory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
"@babel/plugin-proposal-function-bind": "7.12.13",
"@babel/plugin-proposal-pipeline-operator": "7.12.13",
"@babel/plugin-transform-runtime": "7.13.10",
"@babel/preset-env": "^7.13.10",
"@babel/preset-react": "^7.12.13",
"@babel/preset-env": "^7.13.12",
"@babel/preset-react": "^7.13.13",
"@babel/preset-typescript": "^7.13.0",
"@vue/babel-plugin-jsx": "^1.0.3",
"@vue/babel-plugin-jsx": "^1.0.4",
"@zmi-cli/css-modules": "^1.0.7",
"babel-plugin-dynamic-import-node": "^2.3.3",
"babel-plugin-import": "^1.13.3",
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
"babel-plugin-transform-typescript-metadata": "^0.3.1"
"babel-plugin-transform-typescript-metadata": "^0.3.2"
},
"publishConfig": {
"access": "public"
Expand Down
13 changes: 3 additions & 10 deletions packages/zmi-babel-factory/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ export interface Ioptions {
modify?: <T>(value: T) => T
}

export function isObject<T extends Record<string, any>>(
obj: T | boolean
): T | Partial<T> {
export function isObject<T extends Record<string, any>>(obj: T | boolean): T | Partial<T> {
return typeof obj === 'object' ? obj : {}
}

Expand Down Expand Up @@ -52,15 +50,10 @@ export default (_context: never, options: Ioptions) => {
].filter(Boolean),
plugins: [
[require.resolve('@babel/plugin-proposal-optional-chaining'), { loose: false }],
[
require.resolve('@babel/plugin-proposal-nullish-coalescing-operator'),
{ loose: false }
],
[require.resolve('@babel/plugin-proposal-nullish-coalescing-operator'), { loose: false }],
require.resolve('@babel/plugin-syntax-top-level-await'),
[require.resolve('@babel/plugin-transform-destructuring'), { loose: false }],
options.typescript && [
require.resolve('babel-plugin-transform-typescript-metadata')
],
options.typescript && [require.resolve('babel-plugin-transform-typescript-metadata')],
[require.resolve('@babel/plugin-proposal-class-properties'), { loose: true }],
require.resolve('@babel/plugin-proposal-export-default-from'),
[
Expand Down
4 changes: 2 additions & 2 deletions packages/zmi-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
],
"license": "MIT",
"dependencies": {
"@babel/core": "^7.13.10",
"@babel/register": "^7.13.8",
"@babel/core": "^7.13.14",
"@babel/register": "^7.13.14",
"@zmi-cli/babel-factory": "^1.0.7",
"@zmi-cli/utils": "^1.0.7",
"dotenv": "^8.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/zmi-create-app/fixtures/test-error/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"react-dom": "^17.0.1"
},
"devDependencies": {
"zmi": "^1.0.6-alpha.17"
"zmi": "^1.0.8"
}
}
2 changes: 1 addition & 1 deletion packages/zmi-create-app/fixtures/test-miniapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "MIT",
"devDependencies": {
"miniprogram-api-typings": "^3.3.0",
"zmi-miniapp": "^1.0.6-alpha.17",
"zmi-miniapp": "^1.0.8",
"typescript": "^4.2.0"
},
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"devDependencies": {
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"zmi": "^1.0.6-alpha.17",
"zmi": "^1.0.8",
"typescript": "^4.1.2"
}
}
2 changes: 1 addition & 1 deletion packages/zmi-create-app/fixtures/test-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"react-dom": "^17.0.1"
},
"devDependencies": {
"zmi": "^1.0.6-alpha.17"
"zmi": "^1.0.8"
}
}
2 changes: 1 addition & 1 deletion packages/zmi-create-app/fixtures/test-vue-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"vue": "^3.0.7"
},
"devDependencies": {
"zmi": "^1.0.6-alpha.17",
"zmi": "^1.0.8",
"@vue/compiler-sfc": "^3.0.7",
"@vuedx/typescript-plugin-vue": "^0.6.0",
"typescript": "^4.1.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/zmi-create-app/fixtures/test-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"vue": "^3.0.7"
},
"devDependencies": {
"zmi": "^1.0.6-alpha.17",
"zmi": "^1.0.8",
"@vue/compiler-sfc": "^3.0.7"
}
}
2 changes: 1 addition & 1 deletion packages/zmi-css-modules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"main": "lib/index.js",
"license": "MIT",
"dependencies": {
"@babel/traverse": "^7.13.0",
"@babel/traverse": "^7.13.13",
"@zmi-cli/utils": "^1.0.7"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/zmi-miniapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"dependencies": {
"@zmi-cli/core": "^1.0.7",
"eslint": "^7.22.0",
"eslint": "^7.23.0",
"eslint-config-zmi": "^1.2.4",
"gulp-rename": "^2.0.0",
"zmi-nerd": "^1.2.2-3"
Expand Down
8 changes: 4 additions & 4 deletions packages/zmi-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"types": "lib/index.d.ts",
"license": "MIT",
"dependencies": {
"@babel/types": "^7.13.0",
"@types/cheerio": "^0.22.27",
"@types/fs-extra": "^9.0.8",
"@babel/types": "^7.13.14",
"@types/cheerio": "^0.22.28",
"@types/fs-extra": "^9.0.10",
"@types/glob": "^7.1.3",
"@types/inquirer": "^7.3.1",
"@types/lodash": "^4.14.168",
Expand All @@ -31,7 +31,7 @@
"inquirer": "^8.0.0",
"lodash": "^4.17.21",
"make-dir": "^3.1.0",
"mustache": "^4.1.0",
"mustache": "^4.2.0",
"pkg-up": "^3.1.0",
"portfinder": "^1.0.28",
"recursive-readdir": "^2.2.2",
Expand Down
32 changes: 16 additions & 16 deletions packages/zmi-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,41 +9,41 @@
"bin"
],
"devDependencies": {
"@types/copy-webpack-plugin": "^6.4.0",
"@types/copy-webpack-plugin": "^6.4.1",
"@types/ejs": "^3.0.6",
"@types/mini-css-extract-plugin": "^1.2.2",
"@types/progress-bar-webpack-plugin": "^2.1.0",
"@types/webpack": "4.41.26",
"@types/webpack-bundle-analyzer": "^3.9.1",
"@types/webpack-dev-server": "^3.11.2",
"@types/mini-css-extract-plugin": "^1.4.1",
"@types/progress-bar-webpack-plugin": "^2.1.1",
"@types/webpack": "5.28.0",
"@types/webpack-bundle-analyzer": "^3.9.2",
"@types/webpack-dev-server": "^3.11.3",
"@zmi-cli/types": "^1.0.7"
},
"scripts": {
"test": "nerd test",
"get-default-value": "node ./getDefaultValue.js"
},
"dependencies": {
"@babel/core": "^7.13.10",
"@babel/core": "^7.13.14",
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
"@zmi-cli/babel-factory": "^1.0.7",
"@zmi-cli/utils": "^1.0.7",
"babel-loader": "^8.2.2",
"copy-webpack-plugin": "^8.0.0",
"css-loader": "^5.1.3",
"copy-webpack-plugin": "^8.1.0",
"css-loader": "^5.2.0",
"css-minimizer-webpack-plugin": "^1.3.0",
"css-modules-typescript-loader": "^4.0.1",
"ejs": "^3.1.6",
"eslint": "^7.22.0",
"eslint": "^7.23.0",
"eslint-config-zmi": "^1.2.4",
"eslint-webpack-plugin": "^2.5.2",
"eslint-webpack-plugin": "^2.5.3",
"file-loader": "^6.2.0",
"fork-ts-checker-webpack-plugin": "^6.1.1",
"fork-ts-checker-webpack-plugin": "^6.2.0",
"html-webpack-plugin": "^5.3.1",
"launch-editor-middleware": "^2.2.1",
"less": "^4.1.1",
"less-loader": "^8.0.0",
"mini-css-extract-plugin": "^1.3.9",
"postcss": "^8.2.7",
"mini-css-extract-plugin": "^1.4.0",
"postcss": "^8.2.9",
"postcss-flexbugs-fixes": "^5.0.2",
"postcss-loader": "^5.2.0",
"postcss-preset-env": "^6.7.0",
Expand All @@ -52,11 +52,11 @@
"react-refresh": "^0.9.0",
"style-loader": "^2.0.0",
"ts-loader": "^8.1.0",
"type-fest": "^0.21.2",
"type-fest": "^1.0.1",
"url-loader": "^4.1.0",
"vue-loader": "^16.1.2",
"vue-style-loader": "^4.1.3",
"webpack": "^5.26.3",
"webpack": "^5.30.0",
"webpack-bundle-analyzer": "^4.4.0",
"webpack-chain": "^6.5.1",
"webpack-dev-server": "^3.11.2"
Expand Down
28 changes: 14 additions & 14 deletions packages/zmi-webpack/src/defaultConfig.ts
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
// when using @zmi/webpack alone
// The logic here is similar to the preset logic, but does not conflict
const configDefault = {
alias: {},
autoprefixer: { autoprefixer: { flexbox: 'no-2009' }, stage: 3 },
autoCSSModules: true,
autoprefixer: { autoprefixer: { flexbox: 'no-2009' }, stage: 3 },
define: {},
disableESLint: true,
devtool: false,
devServer: {},
alias: {},
devtool: false,
disableESLint: true,
externals: {},
extraBabelPlugins: [],
hash: true,
headScripts: [],
extraBabelPresets: [],
extraPostCSSPlugins: [],
htmlPlugin: {},
links: [],
metas: [],
extraBabelPresets: [],
favicon:
'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzd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kxLjcgMzcuMSAxMDAuOCA4Ni4ybDQuMiAyMi4zIDIyLjQgNGM0Ni4yIDguMiA4MS4yIDQ2LjMgODUuOSA5My4xSDE1OC4yYzQuNi00Ni43IDM5LjUtODQuOCA4NS41LTkzLjF6IG00MzguMiA2MTguNUgzNDIuMVY4MzNoMzM5Ljh2NzYuMnpNODAwLjYgNzI0Yy0yOS4zIDI3LjEtNjMuMyA0OS4xLTEwMC45IDY1LjVsLTI0LjYgMTAuN0gzNDAuNGwtMTgtNy4yYy04OC4zLTM1LjEtMTUyLTk5LjEtMTg5LjQtMTkwLjItMzAtNzMuMi0zNS43LTE0Ni0zNi4yLTE4Ni4yaDgzMC4zYy0wLjkgNzkuMS0yMC4xIDE1NC4yLTU1LjggMjE3LjUtMTkuMiAzNC4xLTQyLjkgNjQuMy03MC43IDg5Ljl6IiBmaWxsPSIiIHAtaWQ9Ijc4NjkiPjwvcGF0aD48L3N2Zz4=',
hash: true,
headScripts: [],
htmlPlugin: {},
ignoreMomentLocale: true,
extraBabelPlugins: [],
links: [],
loaderOptions: {
lessLoader: {},
scssLoader: {},
stylusLoader: {},
styleLoader: {},
cssLoader: {}
},
mountElementId: 'root',
scripts: [],
metas: [],
outputPath: 'dist',
plugins: [],
publicPath: '/',
scripts: [],
styles: [],
terserOptions: {},
targets: { node: true, chrome: 49, firefox: 64, safari: 10, edge: 13, ios: 10 }
targets: { node: true, chrome: 49, firefox: 64, safari: 10, edge: 13, ios: 10 },
mountElementId: 'root'
}
export const htmlDefaultOptions = {
headScripts: [],
Expand Down
Loading

0 comments on commit 62fc94e

Please sign in to comment.