mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 23:38:12 +08:00
@@ -1,6 +1,6 @@
|
||||
/* eslint-disable @typescript-eslint/no-var-requires, no-console */
|
||||
const path = require("path");
|
||||
const { spawnSync } = require("child_process");
|
||||
const { execSync, spawnSync } = require("child_process");
|
||||
|
||||
const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin");
|
||||
const LicenseCheckerWebpackPlugin = require("license-checker-webpack-plugin");
|
||||
@@ -34,6 +34,11 @@ function generateRustLicenses() {
|
||||
return eval(stdout);
|
||||
}
|
||||
|
||||
process.env.VUE_APP_COMMIT_DATE = execSync("git log -1 --format=%cd", { encoding: "utf-8" }).trim();
|
||||
process.env.VUE_APP_COMMIT_HASH = execSync("git rev-parse HEAD", { encoding: "utf-8" }).trim();
|
||||
process.env.VUE_APP_COMMIT_BRANCH = execSync("git rev-parse --abbrev-ref HEAD", { encoding: "utf-8" }).trim();
|
||||
process.env.VUE_APP_RELEASE_SERIES = "Pre-Alpha";
|
||||
|
||||
module.exports = {
|
||||
lintOnSave: "warning",
|
||||
// https://cli.vuejs.org/guide/webpack.html
|
||||
|
||||
Reference in New Issue
Block a user