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
9
index.js
9
index.js
@ -119,9 +119,12 @@ module.exports = function (options) {
|
|||||||
grunt.registerTask('develop', ['server', 'watch'])
|
grunt.registerTask('develop', ['server', 'watch'])
|
||||||
|
|
||||||
// Reload template data when watch files change
|
// Reload template data when watch files change
|
||||||
grunt.event.on('watch', function(action, filepath) {
|
grunt.event.on('watch', function() {
|
||||||
// if (filepath == config.specFile)
|
try {
|
||||||
grunt.config.set('compile-handlebars.compile.templateData', loadData())
|
grunt.config.set('compile-handlebars.compile.templateData', loadData())
|
||||||
|
} catch (e) {
|
||||||
|
grunt.fatal(e);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// Report, etc when all tasks have completed.
|
// Report, etc when all tasks have completed.
|
||||||
|
Loading…
Reference in New Issue
Block a user