mirror of
https://github.com/QingdaoU/OnlineJudgeFE.git
synced 2024-12-29 16:01:51 +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'
|
|
}
|