hel-tpl-remote-react-comps-ts
Version:
最简单的远程react组件模板(ts) codesandbox: https://codesandbox.io/s/demo-load-remote-react-comp-2bnpl0?file=/src/App.js
132 lines (131 loc) • 4.11 kB
JSON
{
"name": "hel-tpl-remote-react-comps-ts",
"appGroupName": "hel-tpl-remote-react-comps-ts",
"main": "hel_proxy/entry.js",
"module": "hel_proxy_es/entry.js",
"types": "lib/entrance/libTypes.ts",
"unpkg": "hel_dist/index.html",
"version": "2.4.0",
"dependencies": {
"hel-iso": "^4.3.2",
"hel-lib-proxy": "^4.7.0",
"hel-micro": "^4.7.1",
"react": ">=16.8.0",
"react-app-polyfill": "^3.0.0",
"react-dom": ">=16.8.0"
},
"peerDependencies": {
"hel-iso": "^4.3.2",
"hel-lib-proxy": "^4.7.0",
"hel-micro": "^4.7.1",
"react": ">=16.8.0",
"react-app-polyfill": "^3.0.0",
"react-dom": ">=16.8.0"
},
"devDependencies": {
"@babel/core": "^7.16.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
"@svgr/webpack": "^5.5.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.2",
"@types/node": "^16.11.56",
"@types/react": "^18.0.18",
"@types/react-dom": "^18.0.6",
"babel-jest": "^27.4.2",
"babel-loader": "^8.2.3",
"babel-plugin-named-asset-import": "^0.3.8",
"babel-preset-react-app": "^10.0.1",
"bfj": "^7.0.2",
"browserslist": "^4.18.1",
"camelcase": "^6.2.1",
"case-sensitive-paths-webpack-plugin": "^2.4.0",
"css-loader": "^6.5.1",
"css-minimizer-webpack-plugin": "^3.2.0",
"dotenv": "^10.0.0",
"dotenv-expand": "^5.1.0",
"eslint": "^8.3.0",
"eslint-config-react-app": "^7.0.1",
"eslint-webpack-plugin": "^3.1.1",
"file-loader": "^6.2.0",
"fs-extra": "^10.0.0",
"hel-dev-utils": "^4.3.11",
"html-webpack-plugin": "^5.5.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^27.4.3",
"jest-resolve": "^27.4.2",
"jest-watch-typeahead": "^1.0.0",
"mini-css-extract-plugin": "^2.4.5",
"postcss": "^8.4.4",
"postcss-flexbugs-fixes": "^5.0.2",
"postcss-loader": "^6.2.1",
"postcss-normalize": "^10.0.1",
"postcss-preset-env": "^7.0.1",
"prompts": "^2.4.2",
"react-dev-utils": "^12.0.1",
"react-refresh": "^0.11.0",
"replace-absolute-path": "^1.3.4",
"resolve": "^1.20.0",
"resolve-url-loader": "^4.0.0",
"rollup-plugin-typescript": "^1.0.1",
"sass-loader": "^12.3.0",
"semver": "^7.3.5",
"source-map-loader": "^3.0.0",
"style-loader": "^3.3.1",
"tailwindcss": "^3.0.2",
"terser-webpack-plugin": "^5.2.5",
"typescript": "4.8.4",
"web-vitals": "^2.1.4",
"webpack": "^5.64.4",
"webpack-dev-server": "^4.6.0",
"webpack-manifest-plugin": "^4.0.2",
"workbox-webpack-plugin": "^6.4.1"
},
"scripts": {
"postinstall": "node ./scripts/postinstall.js",
"prepublishOnly": "node ./scripts/prepublishOnly.js",
"check": "node ./scripts/check.js",
"start": "cross-env PORT=3103 node scripts/start.js",
"build": "npm run check_name && npm run build_dist && npm run build_meta && npm run build_proxy",
"check_name": "node scripts/check.js",
"build_dist": "node scripts/build.js",
"build_meta": "node scripts/meta.js",
"build_proxy": "npm run build_proxy_umd && npm run build_proxy_es",
"build_proxy_umd": "tsc & node ./scripts/replaceToRelativePath.js & rollup -c",
"build_proxy_es": "tsc & node ./scripts/replaceToRelativePath.js & cross-env BUILD_ENV=es rollup -c",
"lint": "eslint ./src --ext ts,tsx",
"lintfix": "eslint ./src --ext ts,tsx --fix",
"build_cust": "npm run set_home_page \"npm run build_dist && npm run build_meta\"",
"set_home_page": "cross-env-shell HEL_APP_HOME_PAGE=http://127.0.0.1:8103",
"test": "jest",
"snap": "jest -u"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"babel": {
"presets": [
"react-app"
]
},
"files": [
"hel_dist",
"hel_proxy",
"hel_proxy_es",
"lib",
"src",
"README.md",
"tsconfig.json",
"scripts"
]
}