收藏
回答

使用ci上传代码时project.config.json没有被上传和使用开发者工具上传表现不同?

miniprogram-ci ^1.5.1 使用ci+jekins上传发现project.config.json的配置未生效,后打印上传过程发现project.config.json配置文件并未被上传,
使用微信开发者工具上传发现project.config.json生效,发现project.config.json文件上传成功,请问如何解决这个问题?


{
  "name""",
  "version""0.1.0",
  "private"true,
  "scripts": {
    "serve""npm run dev:h5",
    "dev:mp-weixin""cross-env NODE_ENV=development UNI_PLATFORM=mp-weixin vue-cli-service uni-build --watch",
    "build:mp-weixin""cross-env NODE_ENV=production UNI_PLATFORM=mp-weixin vue-cli-service uni-build",
    "build:app-plus""cross-env NODE_ENV=production UNI_PLATFORM=app-plus vue-cli-service uni-build"
  },
  "dependencies": {
    "@dcloudio/uni-app-plus""^2.0.0-31920210609001",
    "@dcloudio/uni-h5""^2.0.0-31920210609001",
    "@dcloudio/uni-helper-json""^1.0.13",
    "@dcloudio/uni-i18n""^2.0.0-31920210609001",
    "@dcloudio/uni-mp-360""^2.0.0-31920210609001",
    "@dcloudio/uni-mp-alipay""^2.0.0-31920210609001",
    "@dcloudio/uni-mp-baidu""^2.0.0-31920210609001",
    "@dcloudio/uni-mp-kuaishou""^2.0.0-31920210609001",
    "@dcloudio/uni-mp-qq""^2.0.0-31920210609001",
    "@dcloudio/uni-mp-toutiao""^2.0.0-31920210609001",
    "@dcloudio/uni-mp-vue""^2.0.0-31920210609001",
    "@dcloudio/uni-mp-weixin""^2.0.0-31920210609001",
    "@dcloudio/uni-quickapp-native""^2.0.0-31920210609001",
    "@dcloudio/uni-quickapp-webview""^2.0.0-31920210609001",
    "@dcloudio/uni-stat""^2.0.0-31920210609001",
    "@vue/shared""^3.0.0",
    "core-js""^3.6.5",
    "cos-js-sdk-v5""^1.2.14",
    "crypto-js""^4.0.0",
    "flyio""^0.6.2",
    "js-base64""^2.6.4",
    "regenerator-runtime""^0.12.1",
    "umtrack-wx""^2.5.2",
    "vue""^2.6.11",
    "vuex""^3.2.0"
  },
  "devDependencies": {
    "@babel/runtime""~7.12.0",
    "@dcloudio/types""*",
    "@dcloudio/uni-automator""^2.0.0-31920210609001",
    "@dcloudio/uni-cli-shared""^2.0.0-31920210609001",
    "@dcloudio/uni-migration""^2.0.0-31920210609001",
    "@dcloudio/uni-template-compiler""^2.0.0-31920210609001",
    "@dcloudio/vue-cli-plugin-hbuilderx""^2.0.0-31920210609001",
    "@dcloudio/vue-cli-plugin-uni""^2.0.0-31920210609001",
    "@dcloudio/vue-cli-plugin-uni-optimize""^2.0.0-31920210609001",
    "@dcloudio/webpack-uni-mp-loader""^2.0.0-31920210609001",
    "@dcloudio/webpack-uni-pages-loader""^2.0.0-31920210609001",
    "@vue/babel-preset-app""^4.5.13",
    "@vue/cli-plugin-babel""~4.5.0",
    "@vue/cli-service""~4.5.0",
    "babel-plugin-import""^1.11.0",
    "cross-env""^7.0.2",
    "jest""^25.4.0",
    "less-loader""^7.3.0",
    "mini-types""*",
    "miniprogram-api-typings""*",
    "miniprogram-ci""^1.5.1",
    "postcss-comment""^2.0.0",
    "sass""^1.38.1",
    "sass-loader""^8.0.2",
    "vue-template-compiler""^2.6.11"
  },
  "browserslist": [
    "Android >= 4",
    "ios >= 8"
  ],
  "uni-app": {
    "scripts": {}
  }
}


回答关注问题邀请回答
收藏

2 个回答

  • commy
    commy
    2021-09-06

    project.config.json生效具体指啥?

    你提供的是package.json文件的内容?

    2021-09-06
    有用
    回复 1
    • 游翼行空
      游翼行空
      2021-09-06
      setting es6: false以及enhance: false未生效
      2021-09-06
      回复
  • 游翼行空
    游翼行空
    2021-09-06

    @社区技术运营专员-Jahozheng 

    2021-09-06
    有用
    回复
登录 后发表内容