Skip to content

Commit

Permalink
Upgrade dev dependencies and fix serve task
Browse files Browse the repository at this point in the history
  • Loading branch information
petarov committed Nov 11, 2015
1 parent 360aeee commit 5d17b83
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
6 changes: 4 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@

var LIVERELOAD_PORT = 35729;
var lrSnippet = require('connect-livereload')({port: LIVERELOAD_PORT});
var serveStatic = require('serve-static');
var path = require('path');
var pkg = require('./package.json');
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
return connect().use('/', serveStatic(path.resolve(dir)));
};
var pkg = require('./package.json');

module.exports = function (grunt) {
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@
"connect-livereload": "^0.5.3",
"grunt": "*",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-compress": "^0.13.0",
"grunt-contrib-compress": "^0.14.0",
"grunt-contrib-concat": "^0.5.1",
"grunt-contrib-connect": "^0.10.1",
"grunt-contrib-connect": "^0.11.2",
"grunt-contrib-copy": "^0.8.0",
"grunt-contrib-uglify": "^0.9.1",
"grunt-contrib-uglify": "^0.10.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-html-build": "^0.4.3",
"grunt-html-build": "^0.5.2",
"grunt-open": "^0.2.3",
"grunt-processhtml": "^0.3.7",
"grunt-replace": "^0.8.0",
"matchdep": "^0.3.0"
"grunt-replace": "^0.11.0",
"matchdep": "^1.0.0",
"serve-static": "^1.10.0"
},
"engines": {
"node": ">=0.8.0"
Expand Down

0 comments on commit 5d17b83

Please sign in to comment.