Fixes #83
This commit is contained in:
Родитель
03d7fc9b26
Коммит
a59f45e344
|
@ -35,11 +35,7 @@ module.exports = function (grunt) {
|
|||
auth: ['test/**/auth*.js'],
|
||||
altImg: ['test/**/alt*.js'],
|
||||
aria: ['test/**/aria*.js']
|
||||
},
|
||||
watch: {
|
||||
files: '<%= lint.files %>',
|
||||
tasks: 'jshint'
|
||||
},
|
||||
},
|
||||
jshint: {
|
||||
files: [
|
||||
'grunt.js',
|
||||
|
|
3
app.js
3
app.js
|
@ -23,6 +23,7 @@ var url = require('url'),
|
|||
request = require('request'),
|
||||
express = require('express'),
|
||||
app = express(),
|
||||
bodyParser = require('body-parser'),
|
||||
cheerio = require('cheerio'),
|
||||
promises = require('promised-io/promise'),
|
||||
Deferred = require('promised-io').Deferred,
|
||||
|
@ -335,7 +336,7 @@ var allowCrossDomain = function (req, res, next) {
|
|||
};
|
||||
app.use(allowCrossDomain);
|
||||
|
||||
app.use(express.bodyParser());
|
||||
app.use(bodyParser.json());
|
||||
app.get('/', handleRequest);
|
||||
app.post('/package', handlePackage);
|
||||
app.listen(port);
|
||||
|
|
45
package.json
45
package.json
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "ModernIE-static-code-scanner",
|
||||
"description": "This scanner will check a website and give hints on how to be more standards compliant",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"homepage": "https://github.com/InternetExplorer/modern.IE-static-code-scan",
|
||||
"author": {
|
||||
"name": "Microsoft"
|
||||
|
@ -13,40 +13,37 @@
|
|||
"bugs": {
|
||||
"url": "https://github.com/InternetExplorer/modern.IE-static-code-scan/issues"
|
||||
},
|
||||
"licenses": [
|
||||
{
|
||||
"type": "Apache v2 License",
|
||||
"url": "https://github.com/InternetExplorer/modern.IE-static-code-scan/blob/master/LICENSE"
|
||||
}
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"main": "app",
|
||||
"engines": {
|
||||
"node": "0.8.x",
|
||||
"npm": "1.2.x"
|
||||
"node": "0.12.x",
|
||||
"npm": "2.x.x"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node app.js",
|
||||
"test": "grunt test"
|
||||
},
|
||||
"dependencies": {
|
||||
"cheerio": ">=0.10.1",
|
||||
"request": "2.30.x",
|
||||
"promised-io": ">=0.3.0",
|
||||
"xml2js": ">=0.2.0",
|
||||
"body-parser": "^1.13.1",
|
||||
"cheerio": "^0.19.0",
|
||||
"cssom": ">=0.2.5",
|
||||
"jsdom": "~0.2.19",
|
||||
"ya-csv": "~0.9.2",
|
||||
"express": "^4.12.4",
|
||||
"parserlib": "~0.2.3",
|
||||
"promised-io": ">=0.3.0",
|
||||
"request": "^2.58.0",
|
||||
"validator": "~0.4.22",
|
||||
"http-agent": ">=0.1.2",
|
||||
"hyperquest": "~0.1.4",
|
||||
"express": "~3.2.4",
|
||||
"parserlib": "~0.2.3"
|
||||
"xml2js": ">=0.2.0",
|
||||
"ya-csv": "~0.9.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"grunt": "~0.4.1",
|
||||
"grunt-contrib-nodeunit": "~0.1.2",
|
||||
"grunt-contrib-watch": "~0.3.1",
|
||||
"grunt-contrib-jshint": "0.7.2"
|
||||
"grunt-contrib-jshint": "0.7.2",
|
||||
"grunt-contrib-nodeunit": "^0.4.1"
|
||||
},
|
||||
"keywords": []
|
||||
}
|
||||
"keywords": [
|
||||
"scan",
|
||||
"css",
|
||||
"csslint",
|
||||
"scanner"
|
||||
]
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче