Gruntfile.coffee 669 B

123456789101112131415161718192021222324252627282930
  1. module.exports = (grunt) ->
  2. grunt.loadNpmTasks('grunt-contrib-coffee')
  3. grunt.loadNpmTasks('grunt-contrib-sass')
  4. grunt.loadNpmTasks('grunt-contrib-watch')
  5. grunt.loadNpmTasks('grunt-release')
  6. grunt.initConfig
  7. pkg: '<json:package.json>'
  8. coffee:
  9. all:
  10. src: 'src/starrr.coffee'
  11. dest: 'dist/starrr.js'
  12. options:
  13. bare: true
  14. sass:
  15. all:
  16. files:
  17. 'dist/starrr.css': 'src/starrr.scss'
  18. options:
  19. sourcemap: 'none'
  20. watch:
  21. all:
  22. files: ['src/starrr.coffee', 'src/starrr.scss']
  23. tasks: 'default'
  24. grunt.registerTask 'default', ['coffee:all', 'sass:all']