Sha256: a57dd87d5ca8fb7826c0c5717855f94c9d68ecc4f6112e07c4393667e3b9d261

Contents?: true

Size: 1.42 KB

Versions: 14

Compression:

Stored size: 1.42 KB

Contents

module.exports = (grunt) ->

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

  #
  # Config
  #
  grunt.initConfig
    joosy:
      assets:
        root: 'application.*'
        greedy: '/'

      # Pass static data to Stylus and HAML templates
      # config: require('./config.json')

      # Setup built-in development proxy to workaround Cross-Origin
      # proxy: '/joosy': 'http://joosy.ws'

    uglify:
      application:
        files:
          'public/application.js': 'public/application.js'

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

    testem:
      application:
        src: [
          'app/javascripts/application.coffee',
          'spec/helpers/*.coffee',
          'spec/**/*_spec.coffee'
        ]
        assets:
          setup: ->
            grunt.joosy.assetter('development').environment
        options:
          launch_in_dev: ['PhantomJS'],
          launch_in_ci: ['PhantomJS']

  #
  # Tasks
  #
  grunt.registerTask 'default', ['testem']
  grunt.registerTask 'spec', ['testem']

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

  grunt.registerTask 'deploy', ->
    if process.env['NODE_ENV'] == 'production'
      grunt.task.run ['joosy:bower', 'joosy:compile'] 

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
joosy-1.2.0.rc.2 templates/environment/Gruntfile.coffee
joosy-1.2.0.rc.1 templates/environment/Gruntfile.coffee
joosy-1.2.0.beta.4 templates/environment/Gruntfile.coffee
joosy-1.2.0.beta.3 templates/environment/Gruntfile.coffee
joosy-1.2.0.beta.2 templates/environment/Gruntfile.coffee
joosy-1.2.0.beta.1 templates/environment/Gruntfile.coffee
joosy-1.2.0.alpha.73 templates/environment/Gruntfile.coffee
joosy-1.2.0.alpha.71 templates/environment/Gruntfile.coffee
joosy-1.2.0.alpha.70 templates/environment/Gruntfile.coffee
joosy-1.2.0.alpha.68 templates/environment/Gruntfile.coffee
joosy-1.2.0.alpha.67 templates/environment/Gruntfile.coffee
joosy-1.2.0.alpha.66 templates/environment/Gruntfile.coffee
joosy-1.2.0.alpha.65 templates/environment/Gruntfile.coffee
joosy-1.2.0.alpha.64 templates/environment/Gruntfile.coffee