Browse Source

fix: dev taro bug

richard1015 3 years ago
parent
commit
9a6ac596b4
5 changed files with 296 additions and 5 deletions
  1. 1 1
      jd/generate-style-deps.cjs
  2. 0 4
      package.json
  3. 8 0
      publish/lerna.json
  4. 149 0
      publish/nutui-taro/package.json
  5. 138 0
      publish/nutui/package.json

+ 1 - 1
jd/generate-style-deps.cjs

@@ -25,7 +25,7 @@ export { ${element.name} };`;
         })
       );
 
-      outputFileEntry += `export * from "./packages/${element.name}/index.mjs";\n`;
+      outputFileEntry += `export * from "./packages/${element.name.toLowerCase()}/index.mjs";\n`;
     }
   });
 });

+ 0 - 4
package.json

@@ -7,10 +7,6 @@
   "style": "dist/style.css",
   "type": "module",
   "typings": "dist/types/index.d.ts",
-  "sideEffects": [
-    "dist/packages/_es/*",
-    "dist/packages/**/style*"
-  ],
   "vetur": {
     "tags": "dist/smartips/tags.json",
     "attributes": "dist/smartips/attributes.json"

+ 8 - 0
publish/lerna.json

@@ -0,0 +1,8 @@
+{
+  "packages": ["packages/*"],
+  "version": "independent",
+  "bootstrap": {
+    "npmClientArgs": []
+  },
+  "npmClient": "yarn"
+}

+ 149 - 0
publish/nutui-taro/package.json

@@ -0,0 +1,149 @@
+{
+  "name": "@nutui/nutui-taro",
+  "version": "4.0.0-beta.6",
+  "description": "京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)",
+  "main": "dist/nutui.umd.cjs",
+  "module": "dist/nutui.es.js",
+  "style": "dist/style.css",
+  "type": "module",
+  "typings": "dist/types/index.d.ts",
+  "sideEffects": [
+    "dist/packages/_es/*",
+    "dist/packages/**/style*"
+  ],
+  "vetur": {
+    "tags": "dist/smartips/tags.json",
+    "attributes": "dist/smartips/attributes.json"
+  },
+  "web-types": "dist/smartips/web-types.json",
+  "keywords": [
+    "nutui",
+    "nutui2",
+    "nutui3",
+    "nutui4",
+    "vue",
+    "vue3",
+    "webpack",
+    "vue component",
+    "vue3 component",
+    "vite",
+    "jdc",
+    "jdcfe"
+  ],
+  "author": "jdcfe",
+  "license": "MIT",
+  "publishConfig": {
+    "access": "public",
+    "registry": "https://registry.npmjs.org/"
+  },
+  "files": [
+    "dist",
+    "README.md",
+    "package.json",
+    "LICENSE",
+    "CHANGELOG.md"
+  ],
+  "scripts": {
+   
+  },
+  "standard-version": {
+    "scripts": {
+      "postchangelog": "node ./jd/updateChangelog.js"
+    }
+  },
+  "dependencies": {
+    "@nutui/icons-vue": "0.0.19",
+    "@nutui/icons-vue-taro": "0.0.3",
+    "@tarojs/components": "3.5.6",
+    "sass": "^1.50.0",
+    "vscode": "^1.1.37",
+    "vue-router": "^4.0.12"
+  },
+  "devDependencies": {
+    "@commitlint/cli": "^10.0.0",
+    "@commitlint/config-conventional": "^10.0.0",
+    "@tarojs/cli": "3.5.6",
+    "@tarojs/mini-runner": "3.5.6",
+    "@tarojs/plugin-framework-vue3": "3.5.6",
+    "@tarojs/plugin-html": "3.5.6",
+    "@tarojs/plugin-platform-weapp": "3.5.6",
+    "@tarojs/runtime": "3.5.6",
+    "@tarojs/taro": "3.5.6",
+    "@tarojs/webpack5-runner": "3.5.6",
+    "@types/jest": "^26.0.22",
+    "@types/node": "^17.0.16",
+    "@typescript-eslint/eslint-plugin": "^4.20.0",
+    "@typescript-eslint/parser": "^4.20.0",
+    "@vitejs/plugin-vue": "^4.0.0",
+    "@vue/compiler-dom": "^3.2.45",
+    "@vue/compiler-sfc": "^3.2.45",
+    "@vue/eslint-config-prettier": "^6.0.0",
+    "@vue/eslint-config-typescript": "^7.0.0",
+    "@vue/test-utils": "^2.0.0-rc.18",
+    "autoprefixer": "^10.3.4",
+    "axios": "^0.21.0",
+    "babel-preset-taro": "3.5.6",
+    "canvas": "^2.9.0",
+    "codesandbox": "^2.2.3",
+    "eslint": "^7.23.2",
+    "eslint-config-taro": "3.5.6",
+    "eslint-plugin-prettier": "^3.3.1",
+    "eslint-plugin-vue": "^7.8.0",
+    "eslint-visitor-keys": "2",
+    "fs-extra": "^9.1.0",
+    "highlight.js": "^10.3.1",
+    "husky": "^6.0.0",
+    "inquirer": "^8.2.0",
+    "jest": "^26.6.3",
+    "lint-staged": "^10.5.0",
+    "lzutf8": "0.6.0",
+    "markdown-it": "^13.0.1",
+    "markdown-it-container": "^3.0.0",
+    "prettier": "^2.0.0",
+    "remark-codesandbox": "^0.10.1",
+    "rollup-plugin-visualizer": "^5.8.3",
+    "standard-version": "^9.3.0",
+    "swiper": "6.5.1",
+    "transliteration": "^2.2.0",
+    "ts-jest": "^26.5.5",
+    "typescript": "^4.9.3",
+    "vite": "^4.0.0",
+    "vite-plugin-md": "^0.21.5",
+    "vue": "^3.2.24",
+    "vue-jest": "^5.0.0-alpha.7",
+    "vue-tsc": "^1.0.9",
+    "webpack": "^5.69.0"
+  },
+  "eslintConfig": {
+    "root": true,
+    "env": {
+      "node": true
+    },
+    "extends": [
+      "plugin:vue/vue3-essential",
+      "eslint:recommended",
+      "@vue/typescript/recommended",
+      "@vue/prettier",
+      "@vue/prettier/@typescript-eslint"
+    ],
+    "parserOptions": {
+      "ecmaVersion": 2020
+    },
+    "rules": {
+      "vue/no-unused-components": "off",
+      "no-debugger": "off"
+    }
+  },
+  "engines": {
+    "node": ">= 16.0.0",
+    "pnpm": ">= 7.0.0"
+  },
+  "lint-staged": {
+    "*.md": "prettier --write",
+    "*.{ts,tsx,js,vue,scss}": "prettier --write"
+  },
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/jdf2e/nutui.git"
+  }
+}

+ 138 - 0
publish/nutui/package.json

@@ -0,0 +1,138 @@
+{
+  "name": "@nutui/nutui",
+  "version": "4.0.0-beta.6",
+  "description": "京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)",
+  "main": "dist/nutui.umd.cjs",
+  "module": "dist/nutui.es.js",
+  "style": "dist/style.css",
+  "type": "module",
+  "typings": "dist/types/index.d.ts",
+  "sideEffects": [
+    "dist/packages/_es/*",
+    "dist/packages/**/style*"
+  ],
+  "vetur": {
+    "tags": "dist/smartips/tags.json",
+    "attributes": "dist/smartips/attributes.json"
+  },
+  "web-types": "dist/smartips/web-types.json",
+  "keywords": [
+    "nutui",
+    "nutui2",
+    "nutui3",
+    "nutui4",
+    "vue",
+    "vue3",
+    "webpack",
+    "vue component",
+    "vue3 component",
+    "vite",
+    "jdc",
+    "jdcfe"
+  ],
+  "author": "jdcfe",
+  "license": "MIT",
+  "publishConfig": {
+    "access": "public",
+    "registry": "https://registry.npmjs.org/"
+  },
+  "scripts": { },
+  "standard-version": {
+    "scripts": {
+      "postchangelog": "node ./jd/updateChangelog.js"
+    }
+  },
+  "dependencies": {
+    "@nutui/icons-vue": "0.0.19",
+    "sass": "^1.50.0",
+    "vscode": "^1.1.37",
+    "vue-router": "^4.0.12"
+  },
+  "devDependencies": {
+    "@commitlint/cli": "^10.0.0",
+    "@commitlint/config-conventional": "^10.0.0",
+    "@tarojs/cli": "3.5.6",
+    "@tarojs/mini-runner": "3.5.6",
+    "@tarojs/plugin-framework-vue3": "3.5.6",
+    "@tarojs/plugin-html": "3.5.6",
+    "@tarojs/plugin-platform-weapp": "3.5.6",
+    "@tarojs/runtime": "3.5.6",
+    "@tarojs/taro": "3.5.6",
+    "@tarojs/webpack5-runner": "3.5.6",
+    "@types/jest": "^26.0.22",
+    "@types/node": "^17.0.16",
+    "@typescript-eslint/eslint-plugin": "^4.20.0",
+    "@typescript-eslint/parser": "^4.20.0",
+    "@vitejs/plugin-vue": "^4.0.0",
+    "@vue/compiler-dom": "^3.2.45",
+    "@vue/compiler-sfc": "^3.2.45",
+    "@vue/eslint-config-prettier": "^6.0.0",
+    "@vue/eslint-config-typescript": "^7.0.0",
+    "@vue/test-utils": "^2.0.0-rc.18",
+    "autoprefixer": "^10.3.4",
+    "axios": "^0.21.0",
+    "babel-preset-taro": "3.5.6",
+    "canvas": "^2.9.0",
+    "codesandbox": "^2.2.3",
+    "eslint": "^7.23.2",
+    "eslint-config-taro": "3.5.6",
+    "eslint-plugin-prettier": "^3.3.1",
+    "eslint-plugin-vue": "^7.8.0",
+    "eslint-visitor-keys": "2",
+    "fs-extra": "^9.1.0",
+    "highlight.js": "^10.3.1",
+    "husky": "^6.0.0",
+    "inquirer": "^8.2.0",
+    "jest": "^26.6.3",
+    "lint-staged": "^10.5.0",
+    "lzutf8": "0.6.0",
+    "markdown-it": "^13.0.1",
+    "markdown-it-container": "^3.0.0",
+    "prettier": "^2.0.0",
+    "remark-codesandbox": "^0.10.1",
+    "rollup-plugin-visualizer": "^5.8.3",
+    "standard-version": "^9.3.0",
+    "swiper": "6.5.1",
+    "transliteration": "^2.2.0",
+    "ts-jest": "^26.5.5",
+    "typescript": "^4.9.3",
+    "vite": "^4.0.0",
+    "vite-plugin-md": "^0.21.5",
+    "vue": "^3.2.24",
+    "vue-jest": "^5.0.0-alpha.7",
+    "vue-tsc": "^1.0.9",
+    "webpack": "^5.69.0"
+  },
+  "eslintConfig": {
+    "root": true,
+    "env": {
+      "node": true
+    },
+    "extends": [
+      "plugin:vue/vue3-essential",
+      "eslint:recommended",
+      "@vue/typescript/recommended",
+      "@vue/prettier",
+      "@vue/prettier/@typescript-eslint"
+    ],
+    "parserOptions": {
+      "ecmaVersion": 2020
+    },
+    "rules": {
+      "vue/no-unused-components": "off",
+      "no-debugger": "off"
+    }
+  },
+  "engines": {
+    "node": ">= 16.0.0",
+    "pnpm": ">= 7.0.0"
+  },
+  "lint-staged": {
+    "*.md": "prettier --write",
+    "*.{ts,tsx,js,vue,scss}": "prettier --write"
+  },
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/jdf2e/nutui.git"
+  }
+}