Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
bump deps, support connect 3
Browse files Browse the repository at this point in the history
fixes #15
  • Loading branch information
matz3 committed Aug 17, 2015
1 parent d30f115 commit b3c9da9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,28 @@
"openui5"
],
"author": "SAP SE",
"license": {
"type": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
},
"license": "Apache-2.0",
"engines": {
"node": ">= 0.8.0"
},
"dependencies": {
"async": "^0.9.0",
"connect-inject": "^0.3.2",
"async": "^1.4.2",
"connect-inject": "^0.4.0",
"connect-openui5": "^0.4.0",
"cors": "^2.5.3",
"less-openui5": "^0.1.1",
"maxmin": "^1.0.1",
"multiline": "^1.0.2",
"pretty-data": "^0.40.0",
"serve-static": "^1.10.0",
"slash": "^1.0.0",
"uglify-js": "^2.4.17",
"url-join": "0.0.1"
},
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-connect": "^0.9.0",
"grunt-contrib-connect": "^0.11.2",
"grunt-eslint": "^9.0.0",
"grunt-mocha-test": "^0.12.7",
"mocha": "1.21.4"
Expand Down
3 changes: 2 additions & 1 deletion tasks/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
var openui5 = {
connect: require('connect-openui5')
};
var serveStatic = require('serve-static');
var inject = require('connect-inject');
var cors = require('cors');
var urljoin = require('url-join');
Expand Down Expand Up @@ -100,7 +101,7 @@ module.exports = function(grunt, config) {
// returns a function that mounts the static middleware using the provided path
function mountStatic(context) {
return function(staticPath) {
mountMiddleware(connect.static(staticPath, { dotfiles: 'allow' }), context);
mountMiddleware(serveStatic(staticPath, { dotfiles: 'allow' }), context);
};
}

Expand Down

0 comments on commit b3c9da9

Please sign in to comment.