mirror of
https://github.com/sourcey/spectacle.git
synced 2024-09-19 09:27:49 +03:00
Merge pull request #133 from schursin/issue-67
schema syntax errors reporting in development mode
This commit is contained in:
commit
6b03e34b3b
7
index.js
7
index.js
@ -119,9 +119,12 @@ module.exports = function (options) {
|
||||
grunt.registerTask('develop', ['server', 'watch'])
|
||||
|
||||
// Reload template data when watch files change
|
||||
grunt.event.on('watch', function(action, filepath) {
|
||||
// if (filepath == config.specFile)
|
||||
grunt.event.on('watch', function() {
|
||||
try {
|
||||
grunt.config.set('compile-handlebars.compile.templateData', loadData())
|
||||
} catch (e) {
|
||||
grunt.fatal(e);
|
||||
}
|
||||
})
|
||||
|
||||
// Report, etc when all tasks have completed.
|
||||
|
Loading…
Reference in New Issue
Block a user