Sha256: c2dec1490d7cfdd6fe23ab73084dc10a41394d5d04a173680bada0f8e481d963

Contents?: true

Size: 1.39 KB

Versions: 8

Compression:

Stored size: 1.39 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: {
      options: {
        baseUrl: "app/scripts",
        mainConfigFile: "app/scripts/application.js",
        name: "main",
        out: "public/scripts/application.js"
      },
      scripts: {
      }
    },

    copy: {
      'public/scripts/require.js': 'components/requirejs/require.js'
    },

    clean: ['public/assets/', '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-contrib-requirejs');

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

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

};

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
half-pipe-0.3.0.alpha.1 examples/rails/Gruntfile.js
half-pipe-0.2.4 examples/rails/Gruntfile.js
half-pipe-0.2.3 examples/rails/Gruntfile.js
half-pipe-0.2.2 examples/rails/Gruntfile.js
half-pipe-0.2.1 examples/rails/Gruntfile.js
half-pipe-0.2.0 examples/rails/Gruntfile.js
half-pipe-0.1.0 examples/rails/Gruntfile.js
half-pipe-0.0.1 lib/generators/half_pipe/templates/Gruntfile.js