Skip to content

Commit

Permalink
Merge pull request #6912 from alibaba/release/next
Browse files Browse the repository at this point in the history
Release 3.4.10
  • Loading branch information
ClarkXia authored Jun 26, 2024
2 parents de66896 + 2616c68 commit 1c3f6ae
Show file tree
Hide file tree
Showing 72 changed files with 842 additions and 575 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ coverage/
/packages/*/lib/
/packages/*/esm/
/packages/*/es2017/
/packages/*/es2021/
**/tests/libs/*.js

# 忽略第三方包
Expand Down
5 changes: 4 additions & 1 deletion examples/app-config/ice.config.mts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { defineConfig } from '@ice/app';
import externals from '@ice/plugin-externals';

export default defineConfig(() => ({}));
export default defineConfig(() => ({
plugins: [externals({ preset: 'react' })]
}));
9 changes: 2 additions & 7 deletions examples/app-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,13 @@
"license": "MIT",
"dependencies": {
"@ice/app": "workspace:*",
"@ice/plugin-auth": "workspace:*",
"@ice/plugin-rax-compat": "workspace:*",
"@ice/plugin-externals": "workspace:*",
"@ice/runtime": "workspace:*",
"@uni/env": "^1.1.0",
"ahooks": "^3.3.8",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.2",
"speed-measure-webpack-plugin": "^1.5.0",
"webpack": "^5.88.0"
"@types/react-dom": "^18.0.2"
}
}
2 changes: 1 addition & 1 deletion examples/basic-project/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
},
"include": ["src", ".ice", "ice.config.*"],
"exclude": ["build", "public"]
}
}
18 changes: 0 additions & 18 deletions examples/with-entry-type/ice.config.mts

This file was deleted.

42 changes: 0 additions & 42 deletions examples/with-entry-type/src/document.tsx

This file was deleted.

19 changes: 0 additions & 19 deletions examples/with-entry-type/src/pages/Custom/index.tsx

This file was deleted.

30 changes: 0 additions & 30 deletions examples/with-entry-type/src/pages/about.tsx

This file was deleted.

21 changes: 0 additions & 21 deletions examples/with-entry-type/src/pages/blog.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions examples/with-entry-type/src/pages/home.tsx

This file was deleted.

25 changes: 0 additions & 25 deletions examples/with-entry-type/src/pages/index.module.css

This file was deleted.

22 changes: 0 additions & 22 deletions examples/with-entry-type/src/pages/layout.tsx

This file was deleted.

File renamed without changes.
10 changes: 10 additions & 0 deletions examples/with-fallback-entry/ice.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from '@ice/app';
import plugin from './plugin';

export default defineConfig(() => ({
plugins: [plugin()],
ssr: true,
server: {
format: 'cjs',
}
}));
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@examples/with-entry-type",
"private": true,
"name": "@examples/with-fallback-entry",
"version": "1.0.0",
"private": true,
"scripts": {
"start": "ice start",
"build": "ice build"
Expand All @@ -12,11 +12,10 @@
"dependencies": {
"@ice/app": "workspace:*",
"@ice/runtime": "workspace:*",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"fs-extra": "^10.0.0",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.2",
"webpack": "^5.88.0"
Expand Down
12 changes: 12 additions & 0 deletions examples/with-fallback-entry/plugin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export default function createPlugin() {
return {
name: 'custom-plugin',
setup({ onGetConfig }) {
onGetConfig((config) => {
config.server = {
fallbackEntry: true,
};
});
},
};
}
File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions examples/with-fallback-entry/src/document.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Meta, Title, Links, Main, Scripts } from 'ice';

function Document() {
return (
<html>
<head>
<meta charSet="utf-8" />
<meta name="description" content="ICE Demo" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<Meta />
<Title />
<Links />
</head>
<body>
<Main />
<Scripts />
</body>
</html>
);
}

export default Document;
3 changes: 3 additions & 0 deletions examples/with-fallback-entry/src/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body {
font-size: 14px;
}
3 changes: 3 additions & 0 deletions examples/with-fallback-entry/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function Home() {
return <h1>home</h1>;
}
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions packages/ice/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## 3.4.10

### Patch Changes

- 15c8200f: feat: support build additional server entry for fallback
- Updated dependencies [15c8200f]
- Updated dependencies [d073ee5a]
- @ice/shared-config@1.2.8
- @ice/runtime@1.4.10
- @ice/rspack-config@1.1.8
- @ice/webpack-config@1.1.15

## 3.4.9

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/ice/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ice/app",
"version": "3.4.9",
"version": "3.4.10",
"description": "provide scripts and configuration used by web framework ice",
"type": "module",
"main": "./esm/index.js",
Expand Down Expand Up @@ -49,10 +49,10 @@
"dependencies": {
"@ice/bundles": "0.2.6",
"@ice/route-manifest": "1.2.2",
"@ice/runtime": "^1.4.8",
"@ice/shared-config": "1.2.7",
"@ice/webpack-config": "1.1.14",
"@ice/rspack-config": "1.1.7",
"@ice/runtime": "^1.4.10",
"@ice/shared-config": "1.2.8",
"@ice/webpack-config": "1.1.15",
"@ice/rspack-config": "1.1.8",
"@swc/helpers": "0.5.1",
"@types/express": "^4.17.14",
"address": "^1.1.2",
Expand Down
Loading

0 comments on commit 1c3f6ae

Please sign in to comment.