projects
/
reveal.js.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7934090
)
Add option to Gruntfile.js to specify server port
author
Marek Šuppa
<mr@shu.io>
Wed, 11 Sep 2013 22:20:09 +0000
(
00:20
+0200)
committer
Marek Šuppa
<mr@shu.io>
Wed, 11 Sep 2013 22:20:09 +0000
(
00:20
+0200)
Gruntfile.js
patch
|
blob
|
history
diff --git
a/Gruntfile.js
b/Gruntfile.js
index 4df3181eb9bdb1d81a46b9fd45ae78d395430495..124a78db365cb80b7c2f2ef2afb60f38cfcdba70 100644
(file)
--- a/
Gruntfile.js
+++ b/
Gruntfile.js
@@
-1,6
+1,6
@@
/* global module:false */
module.exports = function(grunt) {
-
+ var port = grunt.option('port') || 8000;
// Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
@@
-78,7
+78,7
@@
module.exports = function(grunt) {
connect: {
server: {
options: {
- port:
8000
,
+ port:
port
,
base: '.'
}
}