htdocs: Move scripts one dir up.

This commit is contained in:
XhmikosR 2013-08-20 07:40:04 +03:00
parent fddb5ee556
commit 4c0ba2b36a
5 changed files with 14 additions and 14 deletions

2
.gitignore vendored
View File

@ -70,4 +70,4 @@ htmlreport/MANIFEST
# kdevelop 4.x
*.kdev4
htdocs/site/node_modules
htdocs/node_modules

View File

@ -35,9 +35,9 @@
// pack.css
var inCss = cat(["css/normalize.css",
"css/all.css",
"css/demo.css"
var inCss = cat(["site/css/normalize.css",
"site/css/all.css",
"site/css/demo.css"
]);
var packCss = cleanCSS.process(inCss, {
@ -45,17 +45,17 @@
keepSpecialComments: 0
});
fs.writeFileSync("css/pack.css", packCss, "utf8");
fs.writeFileSync("site/css/pack.css", packCss, "utf8");
echo();
echo("### Finished css/pack.css.");
echo("### Finished site/css/pack.css.");
echo();
echo("### Minifying js files...");
var inJs = cat(["js/cppcheck.js",
"js/github.js",
"js/picnet.table.filter.min.js"]);
var inJs = cat(["site/js/cppcheck.js",
"site/js/github.js",
"site/js/picnet.table.filter.min.js"]);
var minifiedJs = UglifyJS.minify(inJs, {
compress: true,
@ -64,10 +64,10 @@
warnings: false
});
fs.writeFileSync("js/pack.js", minifiedJs.code, "utf8");
fs.writeFileSync("site/js/pack.js", minifiedJs.code, "utf8");
echo();
echo("### Finished js/pack.js.");
echo("### Finished site/js/pack.js.");
};

View File

@ -1,6 +1,6 @@
{
"name": "cppcheck-web",
"version": "0.1.2",
"version": "0.1.3",
"author": "XhmikosR (https://github.com/XhmikosR)",
"description": "The dependencies to build cppcheck's website",
"homepage": "https://github.com/danmar/cppcheck",

View File

@ -32,7 +32,7 @@ if (!test("-f", jshintBin)) {
exit(1);
}
if (exec("node" + " " + jshintBin + " " + "make.js run-tests.js js/cppcheck.js js/github.js").code !== 0) {
if (exec("node" + " " + jshintBin + " " + "make.js run-tests.js site/js/cppcheck.js site/js/github.js").code !== 0) {
echo("*** JSHint failed! (return code != 0)");
echo();
} else {
@ -56,4 +56,4 @@ if (!test("-f", csslintBin)) {
echo("*** csslint failed! (return code != 0)");
echo();
}*/
exec("node" + " " + csslintBin + " " + "css/all.css");
exec("node" + " " + csslintBin + " " + "site/css/all.css");