remove tools to solo

This commit is contained in:
Vanessa 2012-11-23 14:40:56 +08:00
parent 4f46b5c313
commit 0648d582fd
14 changed files with 0 additions and 46 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,24 +0,0 @@
var fs = require("fs"),
exec = require("child_process").exec;
// js compress
var jsPaths = ["neoease"];
for (var i = 0; i < jsPaths.length; i++) {
var content = "";
exec("uglifyjs ../../" + jsPaths[i] + "/js/" + jsPaths[i] + ".js > ../../" + jsPaths[i] + "/js/" + jsPaths[i] + ".min.js", function (error, stdout, stderr) {
if (error !== null) {
console.log(error);
}
});
}
// css compress
var skinsCsses = ["andrea", "classic", "community", "favourite", "i-nove", "neoease", "owmx-3.0", "tree-house"];
for (var i = 0; i < skinsCsses.length; i++) {
var content = "";
exec("lessc -compress ../../" + skinsCsses[i] + "/css/" + skinsCsses[i] + ".css > ../../" + skinsCsses[i] + "/css/" + skinsCsses[i] + ".min.css", function (error, stdout, stderr) {
if (error !== null) {
console.log(error);
}
});
}

View File

@ -1,22 +0,0 @@
var version = "",
newVersion = "";
process.argv.forEach(function (val, index, array) {
if (index === 2) {
version = val;
}
if (index === 3) {
newVersion = val;
}
});
var fs = require("fs");
var skins = ["andrea", "classic", "community", "favourite", "i-nove", "neoease", "owmx-3.0", "tree-house"];
for (var i = 0; i < skins.length; i++) {
var fileName = "../../" + skins[i] + "/skin.properties";
var file = fs.readFileSync(fileName, "UTF-8");
fs.writeFileSync(fileName, file.replace("forSolo=" + version, "forSolo=" + newVersion), "UTF-8");
}

View File

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

View File

Before

Width:  |  Height:  |  Size: 970 KiB

After

Width:  |  Height:  |  Size: 970 KiB

View File

Before

Width:  |  Height:  |  Size: 592 KiB

After

Width:  |  Height:  |  Size: 592 KiB

View File

Before

Width:  |  Height:  |  Size: 646 KiB

After

Width:  |  Height:  |  Size: 646 KiB

View File

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

Before

Width:  |  Height:  |  Size: 830 KiB

After

Width:  |  Height:  |  Size: 830 KiB

View File

Before

Width:  |  Height:  |  Size: 686 KiB

After

Width:  |  Height:  |  Size: 686 KiB

View File

Before

Width:  |  Height:  |  Size: 792 KiB

After

Width:  |  Height:  |  Size: 792 KiB

View File

Before

Width:  |  Height:  |  Size: 961 KiB

After

Width:  |  Height:  |  Size: 961 KiB