Sha256: 5db1c42d074801a1ecc8c30b93a30fd4a0b94a4035cfa5c705b2281742277795

Contents?: true

Size: 1.16 KB

Versions: 1

Compression:

Stored size: 1.16 KB

Contents

module.exports = (grunt) ->

  grunt.loadNpmTasks 'joosy'

  grunt.initConfig
    joosy:
      config: {}

    bower:
      install:
        options:
          copy: false
          verbose: true

    connect:
      server:
        options:
          port: 4000
          base: 'public'

    mince:
      code:
        include: ['source', 'components', 'vendor', 'node_modules/joosy/src']
        src: 'application.coffee'
        dest: 'public/assets/application.js'
      styles:
        include: ['stylesheets', 'public']
        src: 'application.styl'
        dest: 'public/assets/application.css'
        configure: (mincer) ->
          mincer.StylusEngine.registerConfigurator (stylus) ->
            stylus.define '$environment', 'development'
            stylus.define '$config', grunt.config.get('joosy.config') || {}
            stylus.use require('nib')()

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

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