Comparing version 0.0.3 to 0.0.4
11
build.js
@@ -15,2 +15,3 @@ 'use strict'; | ||
rimraf(__dirname + '/theme'); | ||
rimraf(__dirname + '/font'); | ||
rimraf(__dirname + '/print'); | ||
@@ -34,9 +35,13 @@ rimraf(__dirname + '/index.js'); | ||
}).forEach(function (theme) { | ||
fs.renameSync(__dirname + '/temp/css/theme/' + theme, __dirname + '/theme/' + theme); | ||
var css = fs.readFileSync(__dirname + '/temp/css/theme/' + theme, 'utf8'); | ||
css = css.replace(/[\.\/]+\/lib\/font\/([a-z_\.\-]+)/g, function (_, file) { | ||
return '../font/' + file; | ||
}); | ||
fs.writeFileSync(__dirname + '/theme/' + theme, css); | ||
}); | ||
// used from one of the CSS files, so must be included | ||
mkdirp(__dirname + '/lib/font'); | ||
mkdirp(__dirname + '/font'); | ||
fs.readdirSync(__dirname + '/temp/lib/font').forEach(function (font) { | ||
fs.renameSync(__dirname + '/temp/lib/font/' + font, | ||
__dirname + '/lib/font/' + font); | ||
__dirname + '/font/' + font); | ||
}); | ||
@@ -43,0 +48,0 @@ }); |
{ | ||
"name": "reveal", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "The HTML presentation framework", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
331703
5682