generator-reveal
Advanced tools
Comparing version 0.0.7 to 0.0.8
// Generated on <%= (new Date).toISOString().split('T')[0] %> using <%= pkg.name %> <%= pkg.version %> | ||
'use strict'; | ||
var moment = require('moment'); | ||
@@ -8,61 +7,61 @@ var LIVERELOAD_PORT = 35729; | ||
var mountFolder = function (connect, dir) { | ||
return connect.static(require('path').resolve(dir)); | ||
return connect.static(require('path').resolve(dir)); | ||
}; | ||
module.exports = function (grunt) { | ||
// load all grunt tasks | ||
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | ||
// load all grunt tasks | ||
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | ||
grunt.initConfig({ | ||
watch: { | ||
options: { | ||
nospawn: true, | ||
livereload: LIVERELOAD_PORT | ||
}, | ||
livereload: { | ||
files: [ | ||
'index.html', | ||
'js/*.js', | ||
'slides/*.md', | ||
'slides/*.html', | ||
'slides/list.json' | ||
], | ||
tasks: ['build'] | ||
} | ||
}, | ||
connect: { | ||
options: { | ||
port: 9000, | ||
// change this to '0.0.0.0' to access the server from outside | ||
hostname: 'localhost' | ||
}, | ||
livereload: { | ||
options: { | ||
middleware: function (connect) { | ||
return [ | ||
lrSnippet, | ||
mountFolder(connect, '.') | ||
]; | ||
} | ||
grunt.initConfig({ | ||
watch: { | ||
options: { | ||
nospawn: true, | ||
livereload: LIVERELOAD_PORT | ||
}, | ||
livereload: { | ||
files: [ | ||
'index.html', | ||
'js/*.js', | ||
'slides/*.md', | ||
'slides/*.html', | ||
'slides/list.json' | ||
], | ||
tasks: ['build'] | ||
} | ||
}, | ||
connect: { | ||
options: { | ||
port: 9000, | ||
// change this to '0.0.0.0' to access the server from outside | ||
hostname: 'localhost' | ||
}, | ||
livereload: { | ||
options: { | ||
middleware: function (connect) { | ||
return [ | ||
lrSnippet, | ||
mountFolder(connect, '.') | ||
]; | ||
} | ||
} | ||
} | ||
}, | ||
open: { | ||
server: { | ||
path: 'http://localhost:<%%= connect.options.port %>' | ||
} | ||
} | ||
} | ||
}, | ||
open: { | ||
server: { | ||
path: 'http://localhost:<%%= connect.options.port %>' | ||
} | ||
} | ||
}); | ||
}); | ||
grunt.registerTask('server', ['build', 'connect:livereload', 'open', 'watch']); | ||
grunt.registerTask('server', ['build', 'connect:livereload', 'open', 'watch']); | ||
grunt.registerTask('build', 'Build your slides.', function () { | ||
var slides = []; | ||
grunt.registerTask('build', 'Build your slides.', function () { | ||
var slides = []; | ||
grunt.file.recurse('slides', function (post, root, sub, fileName) { | ||
if (fileName === 'index.md') { | ||
return; | ||
} | ||
grunt.file.recurse('slides', function (post, root, sub, fileName) { | ||
if (fileName === 'index.md') { | ||
return; | ||
} | ||
}); | ||
}); | ||
}); | ||
}; |
{ | ||
"name": "generator-reveal", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "A Reveal.js generator for Yeoman", | ||
"keywords": [ | ||
"generator-reveal" | ||
"generator-reveal", | ||
"yeoman-generator" | ||
], | ||
@@ -8,0 +9,0 @@ "homepage": "https://github.com/slara/generator-reveal", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18327
267