Commit 7df58422 authored by Vanessa's avatar Vanessa

添加前端小工具,

parent 4f1927cd
var fs = require("fs"),
exec = require("child_process").exec;
// js compress
var jsPaths = ["ease"];
for (var i = 0; i < jsPaths.length; i++) {
var content = "";
exec("uglifyjs ../../skins/" + jsPaths[i] + "/js/" + jsPaths[i] + ".js > ../../skins/" + jsPaths[i] + "/js/" + jsPaths[i] + ".min.js", function (error, stdout, stderr) {
if (error !== null) {
console.log(error);
}
});
}
// css compress
var csses = ["ease", "ease-ie8"];
for (var i = 0; i < csses.length; i++) {
var content = "";
exec("lessc -compress ../../skins/ease/css/" + csses[i] + ".css > ../../skins/ease/css/" + csses[i] + ".min.css", function (error, stdout, stderr) {
if (error !== null) {
console.log(error);
}
});
}
\ No newline at end of file
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 = ["ease", "mobile"];
for (var i = 0; i < skins.length; i++) {
var fileName = "../../skins/" + skins[i] + "/skin.properties";
var file = fs.readFileSync(fileName, "UTF-8");
fs.writeFileSync(fileName, file.replace("forSolo=" + version, "forSolo=" + newVersion), "UTF-8");
}
\ No newline at end of file
.nav{border-top:1px solid #e2e2e2;border-bottom:1px solid #e2e2e2;}
.article-next{border:1px solid #e2e2e2;border-top-color:#fefefe;}
.article-next:hover{background-color:#f2f2f2;border:1px solid #e2e2e2;}
#tags a,.archives > div,.dynamic .module,.form input[type=text],.form input[type=password],.form textarea,.article-relative{border:1px solid #f2f2f2;}
.article-relative{width:363px;}
.comment-body-ref,#tags a:hover,.archives>div:hover,.dynamic .module:hover,.form input:focus,.form textarea:focus,.article-relative:hover{border:1px solid #e2e2e2;}
\ No newline at end of file
.nav{border-top:1px solid #e2e2e2;border-bottom:1px solid #e2e2e2;}
.article-next{border:1px solid #e2e2e2;border-top-color:#fefefe;}
.article-next:hover{background-color:#f2f2f2;border:1px solid #e2e2e2;}
.comment-body-ref{border:1px solid #e2e2e2;}
#tags a,.archives>div,.dynamic .module,.form input[type="text"],.form input[type="password"],.form textarea,.article-relative{border:1px solid #f2f2f2;}
#tags a:hover,.archives>div:hover,.dynamic .module:hover,.form input:focus,.form textarea:focus,.article-relative:hover{border:1px solid #e2e2e2;}
.article-relative{width:363px;}
......@@ -17,7 +17,7 @@
* skin ease style
*
* @author <a href="mailto:LLY219@gmail.com">Liyuan Li</a>
* @version 1.0.1.6, Jul 24, 2012
* @version 1.0.1.7, Jul 25, 2012
*/
/* start base */
html, body, div, ul, li {
......@@ -185,7 +185,7 @@ sup {
cursor: pointer;
float: right;
height: 16px;
margin: -3px 0 0 15px;;
margin: -3px 0 0 15px;
padding: 1px;
width: 16px;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment