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

Comments

Projects
None yet
3 participants
@barraponto

barraponto commented Jun 24, 2012

How should I write a watch task for handlebars?

@timoxley

This comment has been minimized.

Show comment
Hide comment
@timoxley

timoxley Jul 5, 2012

Contributor

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'
    },
Contributor

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

This comment has been minimized.

Show comment
Hide comment
@timoxley

timoxley Jul 12, 2012

Contributor

@barraponto did you sort this out?

Contributor

timoxley commented Jul 12, 2012

@barraponto did you sort this out?

@barraponto

This comment has been minimized.

Show comment
Hide comment
@barraponto

barraponto 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.

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

This comment has been minimized.

Show comment
Hide comment
@timoxley

timoxley Jul 14, 2012

Contributor

No worries, let me know how it goes.

Contributor

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