htdocs: Move scripts one dir up.
This commit is contained in:
parent
fddb5ee556
commit
4c0ba2b36a
|
@ -70,4 +70,4 @@ htmlreport/MANIFEST
|
||||||
# kdevelop 4.x
|
# kdevelop 4.x
|
||||||
*.kdev4
|
*.kdev4
|
||||||
|
|
||||||
htdocs/site/node_modules
|
htdocs/node_modules
|
||||||
|
|
|
@ -35,9 +35,9 @@
|
||||||
|
|
||||||
// pack.css
|
// pack.css
|
||||||
|
|
||||||
var inCss = cat(["css/normalize.css",
|
var inCss = cat(["site/css/normalize.css",
|
||||||
"css/all.css",
|
"site/css/all.css",
|
||||||
"css/demo.css"
|
"site/css/demo.css"
|
||||||
]);
|
]);
|
||||||
|
|
||||||
var packCss = cleanCSS.process(inCss, {
|
var packCss = cleanCSS.process(inCss, {
|
||||||
|
@ -45,17 +45,17 @@
|
||||||
keepSpecialComments: 0
|
keepSpecialComments: 0
|
||||||
});
|
});
|
||||||
|
|
||||||
fs.writeFileSync("css/pack.css", packCss, "utf8");
|
fs.writeFileSync("site/css/pack.css", packCss, "utf8");
|
||||||
|
|
||||||
echo();
|
echo();
|
||||||
echo("### Finished css/pack.css.");
|
echo("### Finished site/css/pack.css.");
|
||||||
|
|
||||||
echo();
|
echo();
|
||||||
echo("### Minifying js files...");
|
echo("### Minifying js files...");
|
||||||
|
|
||||||
var inJs = cat(["js/cppcheck.js",
|
var inJs = cat(["site/js/cppcheck.js",
|
||||||
"js/github.js",
|
"site/js/github.js",
|
||||||
"js/picnet.table.filter.min.js"]);
|
"site/js/picnet.table.filter.min.js"]);
|
||||||
|
|
||||||
var minifiedJs = UglifyJS.minify(inJs, {
|
var minifiedJs = UglifyJS.minify(inJs, {
|
||||||
compress: true,
|
compress: true,
|
||||||
|
@ -64,10 +64,10 @@
|
||||||
warnings: false
|
warnings: false
|
||||||
});
|
});
|
||||||
|
|
||||||
fs.writeFileSync("js/pack.js", minifiedJs.code, "utf8");
|
fs.writeFileSync("site/js/pack.js", minifiedJs.code, "utf8");
|
||||||
|
|
||||||
echo();
|
echo();
|
||||||
echo("### Finished js/pack.js.");
|
echo("### Finished site/js/pack.js.");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "cppcheck-web",
|
"name": "cppcheck-web",
|
||||||
"version": "0.1.2",
|
"version": "0.1.3",
|
||||||
"author": "XhmikosR (https://github.com/XhmikosR)",
|
"author": "XhmikosR (https://github.com/XhmikosR)",
|
||||||
"description": "The dependencies to build cppcheck's website",
|
"description": "The dependencies to build cppcheck's website",
|
||||||
"homepage": "https://github.com/danmar/cppcheck",
|
"homepage": "https://github.com/danmar/cppcheck",
|
|
@ -32,7 +32,7 @@ if (!test("-f", jshintBin)) {
|
||||||
exit(1);
|
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("*** JSHint failed! (return code != 0)");
|
||||||
echo();
|
echo();
|
||||||
} else {
|
} else {
|
||||||
|
@ -56,4 +56,4 @@ if (!test("-f", csslintBin)) {
|
||||||
echo("*** csslint failed! (return code != 0)");
|
echo("*** csslint failed! (return code != 0)");
|
||||||
echo();
|
echo();
|
||||||
}*/
|
}*/
|
||||||
exec("node" + " " + csslintBin + " " + "css/all.css");
|
exec("node" + " " + csslintBin + " " + "site/css/all.css");
|
Loading…
Reference in New Issue