lu-lowcode-package-form 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/favicon.ico +0 -0
- package/dist/index.es.js +27380 -0
- package/dist/index.html +43 -0
- package/dist/index.umd.js +285 -0
- package/dist/logo192.png +0 -0
- package/dist/logo512.png +0 -0
- package/dist/manifest.json +25 -0
- package/dist/robots.txt +3 -0
- package/package.json +11 -11
- package/vite.config.js +22 -0
- package/dist/index.js +0 -2
- package/dist/index.js.LICENSE.txt +0 -62
- /package/src/utils/{index.js → index.jsx} +0 -0
package/dist/logo192.png
ADDED
|
Binary file
|
package/dist/logo512.png
ADDED
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"short_name": "React App",
|
|
3
|
+
"name": "Create React App Sample",
|
|
4
|
+
"icons": [
|
|
5
|
+
{
|
|
6
|
+
"src": "favicon.ico",
|
|
7
|
+
"sizes": "64x64 32x32 24x24 16x16",
|
|
8
|
+
"type": "image/x-icon"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"src": "logo192.png",
|
|
12
|
+
"type": "image/png",
|
|
13
|
+
"sizes": "192x192"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"src": "logo512.png",
|
|
17
|
+
"type": "image/png",
|
|
18
|
+
"sizes": "512x512"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"start_url": ".",
|
|
22
|
+
"display": "standalone",
|
|
23
|
+
"theme_color": "#000000",
|
|
24
|
+
"background_color": "#ffffff"
|
|
25
|
+
}
|
package/dist/robots.txt
ADDED
package/package.json
CHANGED
|
@@ -1,31 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lu-lowcode-package-form",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@ant-design/icons": "^5.3.7",
|
|
6
6
|
"@testing-library/jest-dom": "^5.17.0",
|
|
7
7
|
"@testing-library/react": "^13.4.0",
|
|
8
8
|
"@testing-library/user-event": "^13.5.0",
|
|
9
9
|
"antd": "^5.18.0",
|
|
10
|
-
"react": "^18.3.1",
|
|
11
|
-
"react-dom": "^18.3.1",
|
|
12
|
-
"react-scripts": "5.0.1",
|
|
13
10
|
"web-vitals": "^2.1.4"
|
|
14
11
|
},
|
|
15
12
|
"main": "dist/index.js",
|
|
16
13
|
"module": "dist/index.esm.js",
|
|
17
14
|
"scripts": {
|
|
18
15
|
"start": "react-scripts start",
|
|
19
|
-
"build": "
|
|
20
|
-
"build:package": "webpack",
|
|
16
|
+
"build": "vite build",
|
|
21
17
|
"test": "react-scripts test",
|
|
22
18
|
"eject": "react-scripts eject"
|
|
23
19
|
},
|
|
24
|
-
|
|
25
|
-
"peerDependencies": {
|
|
20
|
+
"peerDependencies": {
|
|
26
21
|
"react": "^18.3.1",
|
|
27
22
|
"react-dom": "^18.3.1"
|
|
28
|
-
|
|
23
|
+
},
|
|
29
24
|
"eslintConfig": {
|
|
30
25
|
"extends": [
|
|
31
26
|
"react-app",
|
|
@@ -48,11 +43,16 @@
|
|
|
48
43
|
"@babel/core": "^7.24.7",
|
|
49
44
|
"@babel/preset-env": "^7.24.7",
|
|
50
45
|
"@babel/preset-react": "^7.24.7",
|
|
46
|
+
"react-scripts": "5.0.1",
|
|
51
47
|
"autoprefixer": "^10.4.19",
|
|
52
48
|
"babel-loader": "^9.1.3",
|
|
53
49
|
"postcss": "^8.4.38",
|
|
54
50
|
"tailwindcss": "^3.4.4",
|
|
55
51
|
"webpack": "^5.91.0",
|
|
56
|
-
"
|
|
52
|
+
"react": "^18.3.1",
|
|
53
|
+
"react-dom": "^18.3.1",
|
|
54
|
+
"webpack-cli": "^5.1.4",
|
|
55
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
56
|
+
"vite": "^5.2.13"
|
|
57
57
|
}
|
|
58
|
-
}
|
|
58
|
+
}
|
package/vite.config.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineConfig } from 'vite';
|
|
2
|
+
import react from '@vitejs/plugin-react';
|
|
3
|
+
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
build: {
|
|
6
|
+
lib: {
|
|
7
|
+
entry: 'src/components/index.jsx', // 入口文件
|
|
8
|
+
name: 'luLowcodePackageForm',
|
|
9
|
+
fileName: (format) => `index.${format}.js`,
|
|
10
|
+
},
|
|
11
|
+
rollupOptions: {
|
|
12
|
+
external: ['react', 'react-dom'],
|
|
13
|
+
output: {
|
|
14
|
+
globals: {
|
|
15
|
+
react: 'React',
|
|
16
|
+
'react-dom': 'ReactDOM'
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
plugins: [react()],
|
|
22
|
+
});
|