|
|
|
@ -19,6 +19,7 @@ const { codecovWebpackPlugin } = require('@codecov/webpack-plugin') |
|
|
|
|
|
|
|
|
|
const appVersion = readFileSync('./version.php').toString().match(/OC_Version.+\[([0-9]{2})/)?.[1] ?? 'unknown' |
|
|
|
|
const isDev = process.env.NODE_ENV === 'development' |
|
|
|
|
const isTesting = process.env.TESTING === "true" |
|
|
|
|
|
|
|
|
|
const formatOutputFromModules = (modules) => { |
|
|
|
|
// merge all configs into one object, and use AppID to generate the fileNames
|
|
|
|
@ -227,7 +228,7 @@ const config = { |
|
|
|
|
contextRegExp: /moment\/min$/, |
|
|
|
|
}), |
|
|
|
|
codecovWebpackPlugin({ |
|
|
|
|
enableBundleAnalysis: !isDev, |
|
|
|
|
enableBundleAnalysis: !isDev && !isTesting, |
|
|
|
|
bundleName: 'nextcloud', |
|
|
|
|
}), |
|
|
|
|
], |
|
|
|
|