cache-buster
Advanced tools
Comparing version 6.0.0 to 7.0.0
@@ -13,7 +13,10 @@ #!/usr/bin/env node | ||
var buildNum = process.env.BUILD_NUMBER || Math.floor(new Date() / 1000) + ''; | ||
var html = fs.readFileSync(__dirname + '/index.html', 'utf-8') | ||
var index = fs.readFileSync(__dirname + '/index.html', 'utf-8') | ||
.replace('{{index}}', commander.indexFileName) | ||
.replace('{{build}}', buildNum); | ||
var login = fs.readFileSync(__dirname + '/login.html', 'utf-8') | ||
.replace('{{build}}', buildNum); | ||
fs.outputFileSync(path.join(process.cwd(), 'deploy/index.html'), html); | ||
fs.outputFileSync(path.join(process.cwd(), 'deploy/index.html'), index); | ||
fs.outputFileSync(path.join(process.cwd(), 'deploy/login.html'), login); | ||
@@ -20,0 +23,0 @@ var src = path.join(process.cwd(), commander.webappDir); |
{ | ||
"name": "cache-buster", | ||
"version": "6.0.0", | ||
"version": "7.0.0", | ||
"description": "cache buster for static webapp", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,1 +0,1 @@ | ||
In Progress | ||
Work In Progress |
Sorry, the diff of this file is not supported yet
25885
10
18