Browse Source

fix: 修复

master
lishican 2 years ago
parent
commit
774922bbd4
18 changed files with 56 additions and 29938 deletions
  1. 7
      .npmrc
  2. 2
      lerna.json
  3. 11
      package.json
  4. 2
      packages/bank-hooks/src/use-test.ts
  5. 7
      packages/bizComponent/.fatherrc.ts
  6. 8
      packages/bizComponent/es/index.d.ts
  7. 1
      packages/bizComponent/es/index.d.ts.map
  8. 13
      packages/bizComponent/es/index.js
  9. 6
      packages/bizComponent/es/index.less
  10. 5
      packages/bizComponent/package.json
  11. 4
      packages/bizComponent/src/index.tsx
  12. 15363
      pnpm-lock.yaml
  13. 2
      projects/bkloan-global/package.json
  14. 5
      projects/bkloan-sg/.umirc.ts
  15. 14546
      projects/bkloan-sg/package-lock.json
  16. 3
      projects/bkloan-sg/package.json
  17. 7
      projects/bkloan-sg/src/pages/index.tsx
  18. 2
      projects/bkloan-sg/tsconfig.json

7
.npmrc

@ -1,2 +1,7 @@
registry=https://registry.npmmirror.com/
# registry=https://registry.npmmirror.com/
registry=https://registry.npmjs.org/
shamefully-hoist=true
lockfile=false
shared-workspace-lockfile=false
# https://registry.npmjs.org/.

2
lerna.json

@ -1,5 +1,5 @@
{ {
"version": "0.0.2",
"version": "0.0.5",
"useWorkspaces": true, "useWorkspaces": true,
"packages": [ "packages": [
"packages/*" "packages/*"

11
package.json

@ -2,20 +2,19 @@
"name": "root", "name": "root",
"private": true, "private": true,
"workspaces": [ "workspaces": [
"packages/*"
"packages/*",
"projects/*"
], ],
"devDependencies": { "devDependencies": {
"@babel/runtime": "^7.12.5",
"@types/react": "^18.0.35",
"@babel/runtime": "^7.21.0",
"@types/react": "^18.0.37",
"antd": "^5.4.2", "antd": "^5.4.2",
"babel-plugin-import": "^1.13.6", "babel-plugin-import": "^1.13.6",
"father": "^4.1.8", "father": "^4.1.8",
"lerna": "^6.6.1", "lerna": "^6.6.1",
"typescript": "^5.0.4" "typescript": "^5.0.4"
}, },
"scripts": {
},
"scripts": {},
"dependencies": { "dependencies": {
"cnpm": "^9.1.0" "cnpm": "^9.1.0"
} }

2
packages/bank-hooks/src/use-test.ts

@ -2,7 +2,7 @@ import { useEffect } from 'react';
const useTask = () => { const useTask = () => {
useEffect(() => { useEffect(() => {
console.log('useTask31231');
console.log('lishican2');
}, []); }, []);
}; };
export default useTask; export default useTask;

7
packages/bizComponent/.fatherrc.ts

@ -4,9 +4,10 @@ import { defineConfig } from 'father';
export default defineConfig({ export default defineConfig({
esm: { esm: {
input: "src",
platform: "browser",
transformer:"esbuild"
input: 'src',
platform: 'browser',
transformer: 'esbuild',
output: 'es',
}, },
extraBabelPlugins: [ extraBabelPlugins: [

8
packages/bizComponent/es/index.d.ts

@ -0,0 +1,8 @@
import React from 'react';
import './index.less';
declare const HelloWorld: React.FC<{
name4: string;
age3: string;
}>;
export default HelloWorld;
//# sourceMappingURL=index.d.ts.map

1
packages/bizComponent/es/index.d.ts.map

@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAQ,cAAc,CAAC;AAEvB,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAA,IAAI,EAAC,MAAM,CAAA;CAAE,CAQvD,CAAC;AACF,eAAe,UAAU,CAAC"}

13
packages/bizComponent/es/index.js

@ -0,0 +1,13 @@
// src/index.tsx
import { useTask } from "@lishican/antbank-platform-hooks";
import { Button } from "antd";
import React from "react";
import "./index.less";
var HelloWorld = ({ name4 }) => {
useTask();
return /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(Button, { type: "primary" }, name4));
};
var src_default = HelloWorld;
export {
src_default as default
};

6
packages/bizComponent/es/index.less

@ -0,0 +1,6 @@
.red {
color: red;
display: flex;
justify-content: center;
align-items: center;
}

5
packages/bizComponent/package.json

@ -2,8 +2,8 @@
"name": "@lishican/antbank-platform-ui", "name": "@lishican/antbank-platform-ui",
"version": "0.0.2", "version": "0.0.2",
"description": "", "description": "",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"module": "es/index.js",
"types": "es/index.d.ts",
"scripts": { "scripts": {
"dev": "father dev", "dev": "father dev",
"build": "father build", "build": "father build",
@ -32,7 +32,6 @@
}, },
"dependencies": { "dependencies": {
"@lishican/antbank-platform-hooks": "^0.0.2", "@lishican/antbank-platform-hooks": "^0.0.2",
"@lishican/antbank-platform-ui": "^0.0.2",
"styled-components": "^5.3.9" "styled-components": "^5.3.9"
} }
} }

4
packages/bizComponent/src/index.tsx

@ -4,11 +4,11 @@ import { Button } from 'antd';
import React from 'react'; import React from 'react';
import './index.less'; import './index.less';
const HelloWorld: React.FC<any> = () => {
const HelloWorld: React.FC<{ name4: string,age3:string }> = ({ name4 }) => {
useTask(); useTask();
return ( return (
<div> <div>
<Button type="primary">ok222</Button>
<Button type="primary">{name4}</Button>
{/* <h3 className='red'>red</h3> */} {/* <h3 className='red'>red</h3> */}
</div> </div>
); );

15363
pnpm-lock.yaml
File diff suppressed because it is too large
View File

2
projects/bkloan-global/package.json

@ -1,5 +1,5 @@
{ {
"name": "bkloan-sg",
"name": "bkloan-gl",
"author": "lishican <1213782659@qq.com>", "author": "lishican <1213782659@qq.com>",
"scripts": { "scripts": {
"build": "umi build", "build": "umi build",

5
projects/bkloan-sg/.umirc.ts

@ -1,12 +1,11 @@
import { defineConfig } from 'umi'; import { defineConfig } from 'umi';
export default defineConfig({ export default defineConfig({
routes: [
{ path: '/', component: 'index' },
],
routes: [{ path: '/', component: 'index' }],
npmClient: 'npm', npmClient: 'npm',
monorepoRedirect: { monorepoRedirect: {
peerDeps: true, peerDeps: true,
exclude: [/node_modules/],
}, },
plugins: ['@umijs/plugins/dist/qiankun'], plugins: ['@umijs/plugins/dist/qiankun'],
qiankun: { qiankun: {

14546
projects/bkloan-sg/package-lock.json
File diff suppressed because it is too large
View File

3
projects/bkloan-sg/package.json

@ -26,8 +26,7 @@
"react-dom": "^18.2.0" "react-dom": "^18.2.0"
}, },
"dependencies": { "dependencies": {
"@lishican/antbank-platform-hooks": "workspace:^0.0.1",
"@lishican/antbank-platform-ui": "workspace:^0.0.1",
"@lishican/antbank-platform-ui": "workspace:*",
"antd": "^5.4.2", "antd": "^5.4.2",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",

7
projects/bkloan-sg/src/pages/index.tsx

@ -1,13 +1,10 @@
import { useTask } from '@lishican/antbank-platform-hooks';
import Test from '@lishican/antbank-platform-ui'; import Test from '@lishican/antbank-platform-ui';
import { MicroApp } from 'umi';
import styles from './index.less'; import styles from './index.less';
export default function HomePage() { export default function HomePage() {
useTask()
return ( return (
<div> <div>
<h2 className={styles.red2}>Yay! Welcome to2 umi!</h2> <h2 className={styles.red2}>Yay! Welcome to2 umi!</h2>
<Test />
<Test name4="2131" age3='2131' />
</div> </div>
); );
}
}

2
projects/bkloan-sg/tsconfig.json

@ -1,3 +1,3 @@
{ {
"extends": "./src/.umi/tsconfig.json"
"extends": "./src/.umi/tsconfig.json",
} }
Loading…
Cancel
Save