Browse Source

KERNEL-14512 chore:打包调整

es6
Treecat 2 years ago
parent
commit
017e9363d0
  1. 5
      package.json
  2. 14
      packages/fineui/package.json
  3. 7
      packages/fineui/tsconfig.json

5
package.json

@ -5,6 +5,11 @@
"keywords": [], "keywords": [],
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"engines": {
"node": ">=16.0.0",
"yarn": "please-use-pnpm",
"pnpm": ">=7.0.0"
},
"scripts": { "scripts": {
"dev": "npm-run-all --parallel dev:*", "dev": "npm-run-all --parallel dev:*",
"dev:demo": "pnpm --dir packages/demo dev", "dev:demo": "pnpm --dir packages/demo dev",

14
packages/fineui/package.json

@ -2,9 +2,9 @@
"name": "@fui/core", "name": "@fui/core",
"version": "2.0.20230208163847", "version": "2.0.20230208163847",
"description": "fineui", "description": "fineui",
"main": "dist/fineui_without_conflict.min.js", "main": "dist/fineui.min.js",
"module": "dist/es/index.js", "module": "dist/es/index.js",
"types": "dist/type/index.d.ts", "types": "dist/lib/index.d.ts",
"bin": { "bin": {
"fui-cli": "./bin/cli/cli.js" "fui-cli": "./bin/cli/cli.js"
}, },
@ -19,14 +19,17 @@
"dist/es/case/ztree/jquery.ztree.excheck-3.5.js" "dist/es/case/ztree/jquery.ztree.excheck-3.5.js"
], ],
"scripts": { "scripts": {
"dev": "babel src -d dist/es --config-file ./esm.babel.js -w", "dev": "tsc && babel src -d dist/es --config-file ./esm.babel.js -w",
"build": "run-p build:*", "build": "tsc && run-p build:*",
"build:es": "babel src -d dist/es --config-file ./esm.babel.js", "build:es": "babel src -d dist/es --config-file ./esm.babel.js",
"build:fineui": "webpack --progress --config=webpack/webpack.prod.js", "build:fineui": "webpack --progress --config=webpack/webpack.prod.js",
"webpack:css": "webpack --config=webpack/webpack.css.js --mode production", "webpack:css": "webpack --config=webpack/webpack.css.js --mode production",
"build:biCss": "cross-env LESS_CONFIG_PATH=lessconfig/bi.lessconfig.json LESS_FILE_NAME=bi npm run webpack:css", "build:biCss": "cross-env LESS_CONFIG_PATH=lessconfig/bi.lessconfig.json LESS_FILE_NAME=bi npm run webpack:css",
"build:jsyCss": "cross-env LESS_CONFIG_PATH=lessconfig/jsy.lessconfig.json LESS_FILE_NAME=jsy npm run webpack:css" "build:jsyCss": "cross-env LESS_CONFIG_PATH=lessconfig/jsy.lessconfig.json LESS_FILE_NAME=jsy npm run webpack:css"
}, },
"files": [
"dist"
],
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://git.coding.net/fanruan/fineui.git" "url": "https://git.coding.net/fanruan/fineui.git"
@ -37,7 +40,8 @@
"finebi" "finebi"
], ],
"publishConfig": { "publishConfig": {
"registry": "https://registry.npmjs.org" "registry": "https://registry.npmjs.org",
"access": "public"
}, },
"author": "fanruan", "author": "fanruan",
"license": "MIT", "license": "MIT",

7
packages/fineui/tsconfig.json

@ -4,10 +4,13 @@
"target": "es2017", "target": "es2017",
"module": "es2015", "module": "es2015",
"moduleResolution": "node", "moduleResolution": "node",
"lib": ["es2017", "dom"], "lib": [
"es2017",
"dom"
],
"declaration": true, "declaration": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"outDir": "./type/lib", "outDir": "./dist/lib",
"baseUrl": ".", "baseUrl": ".",
// "strict": true, // "strict": true,
"strictNullChecks": true, "strictNullChecks": true,

Loading…
Cancel
Save