mirror of
https://gitlab.com/deeplydrumming/DeemixFix.git
synced 2026-01-15 08:22:59 -03:00
reformatted JS files in scripts folder to ES6
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
const { execSync } = require('child_process')
|
||||
function generateVersion(){
|
||||
const now = new Date();
|
||||
const year = now.getFullYear();
|
||||
const month = now.getMonth()+1;
|
||||
const day = now.getDate();
|
||||
function generateVersion () {
|
||||
const now = new Date()
|
||||
const year = now.getFullYear()
|
||||
const month = now.getMonth() + 1
|
||||
const day = now.getDate()
|
||||
|
||||
const commitsNumber = String(execSync('git rev-list --count HEAD')).trim()
|
||||
const commitHash = String(execSync('git rev-parse --short=10 HEAD')).trim()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const { execSync } = require('child_process')
|
||||
const fs = require('fs')
|
||||
|
||||
let package = JSON.parse(fs.readFileSync('package.json'))
|
||||
package.version = "0.0.0"
|
||||
fs.writeFileSync('package.json', JSON.stringify(package, null, 2)+"\n")
|
||||
const pack = JSON.parse(fs.readFileSync('package.json'))
|
||||
pack.version = '0.0.0'
|
||||
fs.writeFileSync('package.json', JSON.stringify(pack, null, 2) + '\n')
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const fs = require('fs')
|
||||
const generateVersion = require('./gen-version.js')
|
||||
|
||||
let package = JSON.parse(fs.readFileSync('package.json'))
|
||||
package.version = generateVersion()
|
||||
fs.writeFileSync('package.json', JSON.stringify(package, null, 2)+"\n")
|
||||
const pack = JSON.parse(fs.readFileSync('package.json'))
|
||||
pack.version = generateVersion()
|
||||
fs.writeFileSync('package.json', JSON.stringify(pack, null, 2) + '\n')
|
||||
|
||||
Reference in New Issue
Block a user