mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
Get version for Taskfile from version.js (#49)
Make version.js runnable to output the current version, get the VERSION variable in the Taskfile from this script.
This commit is contained in:
parent
3ec62fd6d2
commit
514500bb72
@ -6,7 +6,8 @@ version: "3"
|
||||
vars:
|
||||
APP_NAME: "NextWave"
|
||||
BIN_DIR: "bin"
|
||||
VERSION: "0.1.0"
|
||||
VERSION:
|
||||
sh: node version.cjs
|
||||
|
||||
tasks:
|
||||
generate:
|
||||
|
@ -3,3 +3,7 @@ const packageJson = require(path.resolve(__dirname, "package.json"));
|
||||
|
||||
const VERSION = `${packageJson.version}`;
|
||||
module.exports = VERSION;
|
||||
|
||||
if (typeof require !== "undefined" && require.main === module) {
|
||||
console.log(VERSION);
|
||||
}
|
Loading…
Reference in New Issue
Block a user