Sha256: 9fed873f19420e844b67b1f5594a7a13d70dae320df56f8dcf95e78c1c05f87f

Contents?: true

Size: 1.38 KB

Versions: 2

Compression:

Stored size: 1.38 KB

Contents

/*global module:false*/
module.exports = function(grunt) {


  // Project configuration.
  grunt.initConfig({
    // Metadata.
    pkg: grunt.file.readJSON('package.json'),

    jshint: {
      options: {
        jshintrc: '.jshintrc'
      },
      gruntfile: {
        src: 'Gruntfile.js'
      }
    },

    sass: {
      options: {
        style: 'expanded',
        require: ['./config/initializers/sass']
      },
      'tmp/styles/main.css': [
        'app/styles/main.scss'
      ]
    },

    cssmin: {
      'public/styles/main.css': 'tmp/styles/main.css'
    },

    requirejs: {
      scripts: {
        options: {
          almond: true,
          baseUrl: "app/scripts",
          mainConfigFile: "app/scripts/application.js",
          name: "oral-health",
          out: "public/scripts/application.js",
          wrap: true
        }
      }
    },

    clean: ['public/scripts/', 'public/styles', 'tmp/']

  });

  // These plugins provide necessary tasks.
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-sass');
  grunt.loadNpmTasks('grunt-contrib-cssmin');
  grunt.loadNpmTasks('grunt-contrib-copy');
  grunt.loadNpmTasks('grunt-contrib-clean');
  grunt.loadNpmTasks('grunt-requirejs');

  // Default task.
  grunt.registerTask('default', 'build');

  // Build task.
  grunt.registerTask('build', ['jshint', 'sass', 'cssmin', 'copy', 'requirejs']);

};

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
half-pipe-0.2.0 lib/generators/half_pipe/templates/Gruntfile.js
half-pipe-0.1.0 lib/generators/half_pipe/templates/Gruntfile.js