Compare commits

...

7 Commits

Author SHA1 Message Date
3e89726291 woops 2023-01-27 16:03:41 -08:00
7765e34c42 fix: more craziness 2023-01-27 15:56:41 -08:00
dd2fe14c8e fix: try plugin 2023-01-27 13:54:33 -08:00
d421a44426 fix: try something crazy 2023-01-27 12:57:20 -08:00
08db862a2a fix: try to save version file before install 2023-01-27 11:10:01 -08:00
c6b300a6be fix: try __dirname 2023-01-27 10:54:23 -08:00
b4740f2f7f fix: pass cwd into execSync command 2023-01-27 10:37:42 -08:00
2 changed files with 6 additions and 6 deletions

View File

@ -13,8 +13,8 @@ const packageDefinition = require("../package.json");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const webpack = require("webpack");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const { VueLoaderPlugin } = require("vue-loader");
const projectRootDir = path.resolve(__dirname, "..");
let gitRevision = "error-retrieving-revision";
let gitBranch = "error-retrieving-branch";
@ -23,7 +23,7 @@ try {
.execSync("git rev-parse HEAD")
.toString()
.trim();
gitBranch = require("child_process")
gitBranch = require("child_process")
.execSync("git rev-parse --abbrev-ref HEAD")
.toString()
.trim();
@ -31,7 +31,6 @@ try {
console.warn(err);
}
const projectRootDir = path.resolve(__dirname, "..");
/** @type {import('webpack').Configuration} */
const config = {
@ -89,7 +88,7 @@ const config = {
__OPENMCT_VERSION__: `'${packageDefinition.version}'`,
__OPENMCT_BUILD_DATE__: `'${new Date()}'`,
__OPENMCT_REVISION__: `'${gitRevision}'`,
__OPENMCT_BUILD_BRANCH__: `'${gitBranch}'`
__OPENMCT_BUILD_BRANCH__: `'${gitBranch}'`,
}),
new VueLoaderPlugin(),
new CopyWebpackPlugin({
@ -164,7 +163,6 @@ const config = {
}
]
},
stats: "errors-warnings",
performance: {
// We should eventually consider chunking to decrease
// these values

View File

@ -28,6 +28,7 @@
"eventemitter3": "1.2.0",
"file-saver": "2.0.5",
"git-rev-sync": "3.0.2",
"git-revision-webpack-plugin": "5.0.0",
"html2canvas": "1.4.1",
"imports-loader": "4.0.1",
"jasmine-core": "4.5.0",
@ -100,7 +101,8 @@
"cov:e2e:full:publish": "codecov --disable=gcov -f ./coverage/e2e/lcov.info -F e2e-full",
"cov:e2e:stable:publish": "codecov --disable=gcov -f ./coverage/e2e/lcov.info -F e2e-stable",
"cov:unit:publish": "codecov --disable=gcov -f ./coverage/unit/lcov.info -F unit",
"prepare": "npm run build:prod && npx tsc"
"prepare": "npm run build:prod && npx tsc",
"prepack": "git rev-parse HEAD >> version.info; git rev-parse --abbrev-ref HEAD >> version.info"
},
"repository": {
"type": "git",