罗广辉
2025-10-20 f2251d2f5c47fbe00a819f02f8d8c7ed70e60aaf
package.json
@@ -54,7 +54,6 @@
    "stylelint": "stylelint \"src/**/*.{vue,scss,css,sass,less}\"",
    "stylelint:fix": "stylelint \"src/**/*.{vue,scss,css,sass,less}\" --fix",
    "cz": "git add . && npx czg",
    "postinstall": "simple-git-hooks",
    "clean": "npx rimraf node_modules",
    "clean:cache": "npx rimraf node_modules/.cache"
  },
@@ -110,7 +109,6 @@
    "rollup-plugin-visualizer": "^6.0.3",
    "sass": "1.79.6",
    "sass-loader": "^16.0.4",
    "simple-git-hooks": "^2.13.1",
    "stylelint": "^16.23.0",
    "stylelint-config-recess-order": "^6.1.0",
    "stylelint-config-standard": "^39.0.0",
@@ -130,10 +128,6 @@
      "vue": "3.4.21"
    }
  },
  "simple-git-hooks": {
    "pre-commit": "npx lint-staged",
    "commit-msg": "node ./scripts/verify-commit.js"
  },
  "lint-staged": {
    "src/**/*.{js,jsx}": "eslint --fix",
    "*.{scss,css,style,html}": "stylelint --fix",
@@ -141,5 +135,31 @@
      "eslint --fix",
      "stylelint --fix"
    ]
  },
  "uni-app": {
    "scripts": {
      "h5-dev": {
        "title": "H5 开发环境",
        "env": {
          "UNI_PLATFORM": "h5",
          "NAME_ER": "development",
          "VITE_APP_WEBVIEW_URL": "http://192.168.9.211:5173/drone-app-web-view/#/webViewWrapper"
        }
      },
      "h5-test": {
        "title": "H5 测试环境",
        "env": {
          "UNI_PLATFORM": "h5",
          "NAME_ER": "test"
        }
      },
      "h5-prod": {
        "title": "H5 生产环境",
        "env": {
          "UNI_PLATFORM": "h5",
          "NAME_ER": "production"
        }
      }
    }
  }
}
}