Sha256: 22ad943b269c7b273cc9120b57b4962a64ced7a38b9052f7159e042847aab297

Contents?: true

Size: 1.02 KB

Versions: 2

Compression:

Stored size: 1.02 KB

Contents

module.exports = (grunt) ->

  grunt.loadNpmTasks 'joosy'
  grunt.loadNpmTasks 'grunt-contrib-uglify'
  grunt.loadNpmTasks 'grunt-contrib-cssmin'

  #
  # Config
  #
  grunt.initConfig
    joosy:
      # config: require('./config.json')
      # proxy: [ {'/joosy': 'http://joosy.ws'} ]
      assets:
        application:
          src: 'application.coffee'
          dest: 'public/assets/application.js'
        styles:
          src: 'application.styl'
          dest: 'public/assets/application.css'
      haml:
        application:
          src: 'index.haml'
          dest: 'public/index.html'

    uglify:
      application:
        options:
          sourceMap: 'public/assets/application.js.map'
        files:
          'public/assets/application.js': 'public/assets/application.js'

    cssmin:
      styles:
        files:
          'public/assets/application.css': 'public/assets/application.css'

  #
  # Tasks
  #
  grunt.registerTask 'compile', ['joosy:compile', 'uglify', 'cssmin']
  grunt.registerTask 'server',  ['joosy:server']

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
joosy-1.2.0.alpha.29 templates/application/standalone/Gruntfile.coffee
joosy-1.2.0.alpha.28 templates/application/standalone/Gruntfile.coffee