-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5089 from alibaba/release-next
Release/2.4.3
- Loading branch information
Showing
24 changed files
with
132 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
name: CI | ||
|
||
env: | ||
NODE_OPTIONS: --max-old-space-size=6144 | ||
|
||
on: [push] | ||
|
||
jobs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"plugins": [ | ||
"build-plugin-ice-auth" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* eslint jsx-a11y/aria-role: 0 */ | ||
import React from 'react'; | ||
import { Link } from 'ice'; | ||
|
||
const About = () => { | ||
return ( | ||
<div> | ||
<h2>About Page</h2> | ||
<Link to="/">Back Home</Link> | ||
</div> | ||
); | ||
}; | ||
|
||
export default About; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
import { lazy } from 'ice'; | ||
|
||
const Home = lazy(() => import('@/pages/Home')); | ||
const About = lazy(() => import('@/pages/About')); | ||
|
||
export default [ | ||
{ | ||
path: '/', | ||
exact: true, | ||
component: Home, | ||
}, | ||
{ | ||
path: '/about', | ||
exact: true, | ||
component: About, | ||
pageConfig: { | ||
auth: ['admin'], | ||
title: 'about', | ||
}, | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "ice.js", | ||
"version": "2.4.2", | ||
"version": "2.4.3", | ||
"description": "command line interface and builtin plugin for icejs", | ||
"author": "[email protected]", | ||
"homepage": "", | ||
|
@@ -24,9 +24,9 @@ | |
"dependencies": { | ||
"@builder/pack": "^0.5.0", | ||
"build-scripts": "^1.1.0", | ||
"build-plugin-app-core": "2.1.0", | ||
"build-plugin-app-core": "2.1.1", | ||
"build-plugin-helmet": "1.0.2", | ||
"build-plugin-ice-auth": "2.0.0", | ||
"build-plugin-ice-auth": "2.0.1", | ||
"build-plugin-ice-config": "2.0.2", | ||
"build-plugin-ice-logger": "2.0.0", | ||
"build-plugin-ice-mpa": "2.0.4", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "build-plugin-app-core", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "the core plugin for icejs and raxjs.", | ||
"author": "[email protected]", | ||
"homepage": "", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "build-plugin-ice-auth", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "", | ||
"author": "[email protected]", | ||
"homepage": "https://github.com/alibaba/ice#readme", | ||
|
@@ -16,9 +16,8 @@ | |
"react-dom": ">16.0.0" | ||
}, | ||
"files": [ | ||
"src", | ||
"lib", | ||
"template", | ||
"src/runtime.tsx", | ||
"!lib/**/*.map" | ||
], | ||
"repository": { | ||
|
@@ -31,4 +30,4 @@ | |
"bugs": { | ||
"url": "https://github.com/alibaba/ice/issues" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,16 @@ | ||
import * as path from 'path'; | ||
import { IPluginAPI } from 'build-scripts'; | ||
|
||
const PLUGIN_AUTH_DIR = 'auth'; | ||
|
||
export default async function (api: IPluginAPI) { | ||
const { getValue, onGetWebpackConfig, applyMethod } = api; | ||
const iceTemp = getValue<string>('TEMP_PATH'); | ||
|
||
// 复制模板到 .ice/auth 目录下 | ||
const templateSourceDir = path.join(__dirname, '../template'); | ||
applyMethod('addPluginTemplate', templateSourceDir); | ||
|
||
onGetWebpackConfig((config) => { | ||
config.resolve.alias.set('$ice/auth', path.join(iceTemp, 'plugins', PLUGIN_AUTH_DIR, 'index.tsx')); | ||
}); | ||
const { applyMethod } = api; | ||
|
||
const distPath = 'plugins/auth/pluginRuntime/runtime'; | ||
// 导出接口 | ||
// import { useAuth, withAuth } from 'ice'; | ||
applyMethod('addExport', { source: './plugins/auth', importSource: '$$ice/plugins/auth', exportMembers: ['withAuth', 'useAuth'] }); | ||
applyMethod('addExport', { source: `./${distPath}/Auth`, importSource: `$$ice/${distPath}/Auth`, exportMembers: ['withAuth', 'useAuth'] }); | ||
|
||
// 设置类型 | ||
// export interface IAppConfig { | ||
// auth?: IAuth; | ||
// } | ||
applyMethod('addAppConfigTypes', { source: '../plugins/auth/types', specifier: '{ IAuth }', exportName: 'auth?: IAuth' }); | ||
applyMethod('addAppConfigTypes', { source: `../${distPath}/types`, specifier: '{ IAuth }', exportName: 'auth?: IAuth' }); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,5 @@ | |
"paths": { | ||
"$ice/authStore": ["./src/_authStore"] | ||
} | ||
}, | ||
"exclude": [ | ||
"template/*" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@builder/vite-service", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "vite implementation", | ||
"author": "[email protected]", | ||
"homepage": "", | ||
|
@@ -26,7 +26,6 @@ | |
"@rollup/pluginutils": "^4.1.1", | ||
"@vitejs/plugin-legacy": "^1.5.0", | ||
"@vitejs/plugin-react": "^1.0.7", | ||
"build-scripts": "^1.1.0", | ||
"chalk": "^2.4.1", | ||
"cheerio": "^1.0.0-rc.10", | ||
"connect-history-api-fallback": "^1.6.0", | ||
|
@@ -44,6 +43,7 @@ | |
}, | ||
"devDependencies": { | ||
"@types/connect-history-api-fallback": "^1.3.5", | ||
"@types/lodash": "^4.14.147" | ||
"@types/lodash": "^4.14.147", | ||
"build-scripts": "^1.2.1" | ||
} | ||
} |
Oops, something went wrong.