Skip to content
This repository was archived by the owner on Nov 17, 2022. It is now read-only.

Commit 854b7b3

Browse files
authored
Merge pull request #492 from ice-lab/release-next
Release rc.3
2 parents 6857c74 + 9d0b27b commit 854b7b3

File tree

255 files changed

+9264
-2138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

255 files changed

+9264
-2138
lines changed

.eslintignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# 忽略目录
22
build/
3-
test/
4-
tests/
3+
fixtures/
54
node_modules/
65
dist/
76
out/
@@ -11,7 +10,6 @@ compiled/
1110
coverage/
1211

1312
# 忽略测试文件
14-
/packages/*/__tests__
1513
/packages/*/lib/
1614
/packages/*/esm/
1715
/packages/*/es2017/

.eslintrc.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const commonRules = {
1616
'no-multiple-empty-lines': 1,
1717
'react/jsx-no-bind': 0,
1818
'import/order': 1,
19+
'no-multi-assign': 0,
1920
};
2021

2122
module.exports = getESLintConfig('react-ts', {
@@ -32,7 +33,9 @@ module.exports = getESLintConfig('react-ts', {
3233
'id-length': 0,
3334
'no-use-before-define': 0,
3435
'no-unused-vars': 0,
35-
'@typescript-eslint/no-unused-vars': 1,
36+
'@typescript-eslint/no-unused-vars': ['warn', {
37+
varsIgnorePattern: '[iI]gnored|createElement',
38+
}],
3639
'@typescript-eslint/ban-ts-ignore': 0,
3740
'@typescript-eslint/no-confusing-void-expression': 0,
3841
'@typescript-eslint/promise-function-async': 0,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
chrome 55

examples/app-config/ice.config.mts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { defineConfig } from '@ice/app';
2+
3+
export default defineConfig({});

examples/app-config/package.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "app-config",
3+
"version": "1.0.0",
4+
"scripts": {
5+
"start": "ice start",
6+
"build": "ice build",
7+
"build:splitChunks": "ice build --config splitChunks.config.mts"
8+
},
9+
"description": "",
10+
"author": "",
11+
"license": "MIT",
12+
"dependencies": {
13+
"@ice/app": "workspace:*",
14+
"@ice/plugin-auth": "workspace:*",
15+
"@ice/plugin-rax-compat": "workspace:*",
16+
"@ice/runtime": "workspace:*",
17+
"@uni/env": "^1.1.0",
18+
"ahooks": "^3.3.8",
19+
"react": "^18.0.0",
20+
"react-dom": "^18.0.0"
21+
},
22+
"devDependencies": {
23+
"@types/react": "^18.0.0",
24+
"@types/react-dom": "^18.0.2",
25+
"speed-measure-webpack-plugin": "^1.5.0",
26+
"webpack": "^5.73.0"
27+
}
28+
}
2.66 KB
Binary file not shown.

examples/app-config/src/app.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { defineAppConfig } from 'ice';
2+
3+
export default defineAppConfig({
4+
app: {
5+
rootId: 'app',
6+
strict: true,
7+
errorBoundary: true,
8+
},
9+
router: {
10+
type: 'browser',
11+
basename: '/ice',
12+
},
13+
});
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { Meta, Title, Links, Main, Scripts } from 'ice';
2+
3+
function Document() {
4+
return (
5+
<html>
6+
<head>
7+
<meta charSet="utf-8" />
8+
<meta name="description" content="ICE 3.0 Demo" />
9+
<meta name="viewport" content="width=device-width, initial-scale=1" />
10+
<Meta />
11+
<Title />
12+
<Links />
13+
</head>
14+
<body>
15+
<Main />
16+
<Scripts />
17+
</body>
18+
</html>
19+
);
20+
}
21+
22+
export default Document;

examples/app-config/src/global.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
body {
2+
font-size: 14px;
3+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export default function Error() {
2+
// @ts-ignore
3+
window.test();
4+
return <>error</>;
5+
}

0 commit comments

Comments
 (0)