mirror of
https://github.com/QingdaoU/OnlineJudgeFE.git
synced 2024-12-28 07:21:50 +00:00
12 lines
313 B
JavaScript
12 lines
313 B
JavaScript
let date = require('moment')().format('YYYYMMDD')
|
|
let commit = require('child_process').execSync('git rev-parse HEAD').toString().slice(0, 5)
|
|
let version = `"${date}-${commit}"`
|
|
|
|
console.log(`current version is ${version}`)
|
|
|
|
module.exports = {
|
|
NODE_ENV: '"development"',
|
|
VERSION: version,
|
|
USE_SENTRY: '0'
|
|
}
|