Browse files

Remove a trailing comma in the options of the HTML task and add missi…

…ng semicolons in the server task
  • Loading branch information...
1 parent 77e7907 commit 305bfb9f7a2b86630ead80a7ee95c3525f0e6ed9 @KenanY KenanY committed Oct 6, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 cli/tasks/html.js
  2. +4 −4 cli/tasks/server.js
View
2 cli/tasks/html.js
@@ -55,7 +55,7 @@ var options = {
buildkit: {
collapseWhitespace : false,
removeComments : false,
- removeCommentsFromCDATA : false,
+ removeCommentsFromCDATA : false
},
compress: {
View
8 cli/tasks/server.js
@@ -219,7 +219,7 @@ module.exports = function(grunt) {
// phantom target is a special one: it is triggered
// before launching the headless tests, and gives
- // to phantomjs visibility on the same paths a
+ // to phantomjs visibility on the same paths a
// server:test have.
phantom: path.resolve('test'),
@@ -288,9 +288,9 @@ module.exports = function(grunt) {
// one (compiled assets takes precedence over same pathname within app/)
middleware.push(connect.static(path.join(opts.base, '../temp')));
// Serve static files.
- middleware.push(connect.static(opts.base))
+ middleware.push(connect.static(opts.base));
// Make empty directories browsable.
- middleware.push(connect.directory(opts.base))
+ middleware.push(connect.directory(opts.base));
if ( (opts.target === 'test') || ( opts.target == 'phantom')) {
// We need to expose our code as well
@@ -433,7 +433,7 @@ module.exports = function(grunt) {
opts = opts || {};
return function inject(req, res, next) {
-
+
// build filepath from req.url and deal with index files for trailing `/`
var filepath = req.url.slice(-1) === '/' ? req.url + 'index.html' : req.url;

0 comments on commit 305bfb9

Please sign in to comment.