Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watch task #3

Closed
barraponto opened this issue Jun 24, 2012 · 4 comments
Closed

Watch task #3

barraponto opened this issue Jun 24, 2012 · 4 comments

Comments

@barraponto
Copy link

@barraponto barraponto commented Jun 24, 2012

How should I write a watch task for handlebars?

@timoxley
Copy link
Contributor

@timoxley timoxley commented Jul 5, 2012

just use the built-in grunt watch and make sure the handlebars command is in the task list e.g.

    handlebars: {
      all: {
        src: 'src/templates',
        dest: 'public/js/templates.js'
      }
    },
    watch: {
      files: ['<config:lint.files>', 'src/templates/*.handlebars'],
      tasks: 'lint handlebars etc'
    },
@timoxley
Copy link
Contributor

@timoxley timoxley commented Jul 12, 2012

@barraponto did you sort this out?

@barraponto
Copy link
Author

@barraponto barraponto commented Jul 13, 2012

I canged back to underscore templates, due to other issues :P But I'll try and change to handlebars again, and provide feedback.

@timoxley
Copy link
Contributor

@timoxley timoxley commented Jul 14, 2012

No worries, let me know how it goes.

@luccastera luccastera closed this Jul 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.