Created
February 25, 2013 19:55
-
-
Save lanceharper/5032707 to your computer and use it in GitHub Desktop.
package.json with grunt and express
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var app = express(); | |
app.configure(function(){ | |
app.set('port', process.env.PORT || 8080); | |
app.use(express.logger('dev')); | |
}); | |
app.use(express.static(__dirname)); | |
app.use(express.directory(__dirname)); | |
app.listen(app.get('port'), function() { | |
console.log("Listening on " + app.get('port')); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "hntest", | |
"version": "0.0.1", | |
"dependencies": { | |
"express": "3.1.0" | |
}, | |
"devDependencies": { | |
"grunt": "~0.4.0rc7", | |
"grunt-regarde": "~0.1.1", | |
"grunt-contrib-livereload": "0.1.0rc8", | |
"grunt-contrib-connect": "~0.1.1rc6", | |
"grunt-contrib-compass": "~0.1.1rc8", | |
"grunt-casperjs": "git://github.com/colinhicks/grunt-casperjs.git", | |
"grunt-mocha": "~0.2.1", | |
"grunt-contrib-requirejs": "~0.3.4" | |
}, | |
"engines": { | |
"node": "0.8.x", | |
"npm": "1.1.x" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment