Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit b25b8cd

Browse files
committed
chore(*): add grunt-cli to devDependencies, update grunt-* packages
The Travis build.sh script has to be updated as the previous way of specifying parameters to the code run in Grunt tasks stopped working with the newest Grunt.
1 parent cd2f6d9 commit b25b8cd

File tree

5 files changed

+2894
-2855
lines changed

5 files changed

+2894
-2855
lines changed

Gruntfile.js

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
'use strict';
22

3+
var serveFavicon = require('serve-favicon');
4+
var serveStatic = require('serve-static');
5+
var serveIndex = require('serve-index');
36
var files = require('./angularFiles').files;
47
var util = require('./lib/grunt/utils.js');
58
var versionInfo = require('./lib/versions/version-info');
@@ -44,9 +47,9 @@ module.exports = function(grunt) {
4447
util.conditionalCsp(),
4548
util.rewrite(),
4649
e2e.middleware(),
47-
connect.favicon('images/favicon.ico'),
48-
connect.static(base),
49-
connect.directory(base)
50+
serveFavicon('images/favicon.ico'),
51+
serveStatic(base),
52+
serveIndex(base)
5053
];
5154
}
5255
}
@@ -71,8 +74,8 @@ module.exports = function(grunt) {
7174
},
7275
util.conditionalCsp(),
7376
e2e.middleware(),
74-
connect.favicon('images/favicon.ico'),
75-
connect.static(base)
77+
serveFavicon('images/favicon.ico'),
78+
serveStatic(base)
7679
];
7780
}
7881
}

0 commit comments

Comments
 (0)