Skip to content

Instantly share code, notes, and snippets.

@jasonvarga
Created August 25, 2014 14:34
Show Gist options
  • Save jasonvarga/49a51618df94433fc480 to your computer and use it in GitHub Desktop.
Save jasonvarga/49a51618df94433fc480 to your computer and use it in GitHub Desktop.
Statamic Add-on Gruntfile
module.exports = ->
@initConfig
sandbox: '/users/jason/sites/statamic-sandbox'
copy:
sandbox:
files: [
expand: true
cwd: '_add-ons/calendar/'
src: '**'
dest: '<%= sandbox %>/_add-ons/calendar/'
]
watch:
options:
livereload: true
php:
files: ['_add-ons/calendar/*.php']
tasks: ['copy']
sandbox:
files: ['<%= sandbox %>/{_content,_themes}/**/*.*']
@loadNpmTasks 'grunt-contrib-watch'
@loadNpmTasks 'grunt-contrib-copy'
@registerTask 'default', ['watch']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment