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