Skip to content

Commit

Permalink
feat: uodate umi rc.9
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohuoni committed Mar 29, 2022
1 parent e069f5d commit f0e6b3a
Show file tree
Hide file tree
Showing 10 changed files with 500 additions and 728 deletions.
9 changes: 9 additions & 0 deletions .changeset/swift-wolves-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'boilerplate': patch
'alita': patch
'@alita/create-alita': patch
'@alita/native': patch
'@alita/plugins': patch
---

feat: update umi rc.9
128 changes: 0 additions & 128 deletions examples/boilerplate/src/pages/index.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"devDependencies": {
"@types/rimraf": "3.0.2",
"@umijs/utils": "4.0.0-rc.6",
"@umijs/utils": "4.0.0-rc.9",
"@changesets/cli": "2.19.0",
"@changesets/changelog-github": "0.4.2",
"alita": "workspace:*",
Expand Down
10 changes: 5 additions & 5 deletions packages/alita/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
"dependencies": {
"@alita/native": "workspace:*",
"@alita/plugins": "workspace:*",
"@umijs/bundler-utils": "4.0.0-rc.6",
"@umijs/core": "4.0.0-rc.6",
"@umijs/renderer-react": "4.0.0-rc.6",
"@umijs/utils": "4.0.0-rc.6",
"umi": "4.0.0-rc.6",
"@umijs/bundler-utils": "4.0.0-rc.9",
"@umijs/core": "4.0.0-rc.9",
"@umijs/renderer-react": "4.0.0-rc.9",
"@umijs/utils": "4.0.0-rc.9",
"umi": "4.0.0-rc.9",
"v8-compile-cache": "^2.3.0"
}
}
2 changes: 1 addition & 1 deletion packages/alita/src/commands/generate/pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default (api: IApi) => {
description: 'Create a alita page by page name',
type: GeneratorType.generate,
fn: async (options) => {
const { args, api, generateFile } = options;
const { args, generateFile } = options;
const [_, _name] = args._;
let name = _name;

Expand Down
2 changes: 1 addition & 1 deletion packages/create-alita/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
"create-alita": "bin/create-alita.js"
},
"dependencies": {
"@umijs/utils": "4.0.0-rc.6"
"@umijs/utils": "4.0.0-rc.9"
}
}
2 changes: 1 addition & 1 deletion packages/native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"dependencies": {
"alita": "workspace:*",
"@umijs/utils": "4.0.0-rc.6"
"@umijs/utils": "4.0.0-rc.9"
},
"license": "MIT"
}
6 changes: 3 additions & 3 deletions packages/plugins/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
"@alita/alita-layout": "^3.0.5",
"@alita/inspx": "0.0.2",
"@alita/request": "3.0.0-beta.5",
"@umijs/bundler-utils": "4.0.0-rc.6",
"@umijs/plugins": "4.0.0-rc.6",
"@umijs/utils": "4.0.0-rc.6",
"@umijs/bundler-utils": "4.0.0-rc.9",
"@umijs/plugins": "4.0.0-rc.9",
"@umijs/utils": "4.0.0-rc.9",
"ahooks": "^3.0.8",
"alita": "workspace:*",
"antd-mobile": "5.0.0-rc.25",
Expand Down
3 changes: 2 additions & 1 deletion packages/plugins/src/mobile-layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export default (api: AlitaApi) => {
schema(Joi) {
return Joi.alternatives(Joi.boolean(), Joi.string());
},
default: 'mobile5',
// The config.default is not allowed when enableBy is EnableBy.config.
// default: 'mobile5',
onChange: api.ConfigChangeType.regenerateTmpFiles,
},
enableBy: api.EnableBy.config,
Expand Down
Loading

0 comments on commit f0e6b3a

Please sign in to comment.