htdocs: minor tweaks.
Update the tools to their latest versions.
This commit is contained in:
parent
e9848bdc80
commit
f40257c49e
|
@ -5,5 +5,5 @@ Getting started
|
|||
* Install the node.js dependencies: `npm install`
|
||||
* Run `node make` or `node make minify`
|
||||
|
||||
You can run `npm run check` or `npm run lint` to run [JSHint](https://github.com/jshint/jshint)
|
||||
You can run `npm run lint` to run [JSHint](https://github.com/jshint/jshint)
|
||||
and [csslint](https://github.com/stubbornella/csslint) for our files.
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
require("shelljs/make");
|
||||
var fs = require("fs"),
|
||||
cleanCSS = require("clean-css"),
|
||||
CleanCSS = require("clean-css"),
|
||||
UglifyJS = require("uglify-js"),
|
||||
rootDir = __dirname + "/"; // absolute path to project's root
|
||||
|
||||
|
@ -34,18 +34,17 @@
|
|||
echo("### Minifying css files...");
|
||||
|
||||
// pack.css
|
||||
|
||||
var inCss = cat(["site/css/normalize.css",
|
||||
"site/css/all.css",
|
||||
"site/css/demo.css"
|
||||
]);
|
||||
|
||||
var packCss = cleanCSS.process(inCss, {
|
||||
removeEmpty: true,
|
||||
keepSpecialComments: 0
|
||||
var minifier = new CleanCSS({
|
||||
keepSpecialComments: 0,
|
||||
selectorsMergeMode: "ie8"
|
||||
});
|
||||
|
||||
fs.writeFileSync("site/css/pack.css", packCss, "utf8");
|
||||
fs.writeFileSync("site/css/pack.css", minifier.minify(inCss), "utf8");
|
||||
|
||||
echo();
|
||||
echo("### Finished site/css/pack.css.");
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "cppcheck-web",
|
||||
"version": "0.1.4",
|
||||
"version": "0.2.0",
|
||||
"author": "XhmikosR (https://github.com/XhmikosR)",
|
||||
"description": "The dependencies to build cppcheck's website",
|
||||
"homepage": "https://github.com/danmar/cppcheck",
|
||||
|
@ -13,17 +13,15 @@
|
|||
},
|
||||
"license": "GPLv3",
|
||||
"main": "make.js",
|
||||
"readmeFilename": "Readme.md",
|
||||
"scripts": {
|
||||
"check": "node run-tests",
|
||||
"lint": "node run-tests"
|
||||
},
|
||||
"dependencies": {
|
||||
"clean-css": "~1.1.1",
|
||||
"clean-css": "~2.0.0",
|
||||
"csslint": "~0.9.10",
|
||||
"jshint": "~2.1.11",
|
||||
"jshint": "~2.3.0",
|
||||
"shelljs": "~0.2.6",
|
||||
"uglify-js": "~2.4.0"
|
||||
"uglify-js": "~2.4.2"
|
||||
},
|
||||
"jshintConfig": {
|
||||
"bitwise": true,
|
||||
|
@ -38,9 +36,7 @@
|
|||
"noarg": true,
|
||||
"node": true,
|
||||
"noempty": true,
|
||||
"plusplus": false,
|
||||
"quotmark": "double",
|
||||
"regexp": true,
|
||||
"shelljs": true,
|
||||
"strict": true,
|
||||
"trailing": true,
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue