Compare commits

...

4 Commits

Author SHA1 Message Date
Jamie V
b4aa523030 more testing 2023-01-12 15:39:45 -08:00
Jamie V
f9e8ce5340 testing 2023-01-12 15:22:56 -08:00
Jamie V
7cd56c72c4 using previous git rev sync dependency, which looks like it was not being used... and it is smaller 2023-01-12 13:11:33 -08:00
Jamie V
dc8f01797b first setup of new webpack plugin 2023-01-12 13:05:53 -08:00
2 changed files with 20 additions and 15 deletions

View File

@@ -15,21 +15,26 @@ const webpack = require("webpack");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const { VueLoaderPlugin } = require("vue-loader");
let gitRevision = "error-retrieving-revision";
let gitBranch = "error-retrieving-branch";
try {
gitRevision = require("child_process")
.execSync("git rev-parse HEAD")
.toString()
.trim();
gitBranch = require("child_process")
.execSync("git rev-parse --abbrev-ref HEAD")
.toString()
.trim();
} catch (err) {
console.warn(err);
}
// const git = require('git-rev-sync');
// let gitRevision = git.long();
// let gitBranch = git.branch();
let gitRevision = 'no-clue';
let gitBranch = 'no-clue';
// try {
// gitRevision = require("child_process")
// .execSync("git rev-parse HEAD")
// .toString()
// .trim();
// gitBranch = require("child_process")
// .execSync("git rev-parse --abbrev-ref HEAD")
// .toString()
// .trim();
// } catch (err) {
// console.warn(err);
// }
/** @type {import('webpack').Configuration} */
const config = {

View File

@@ -97,7 +97,7 @@
"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": "git rev-parse HEAD > git-info.txt && npm run build:prod && npx tsc"
},
"repository": {
"type": "git",