Sha256: 6ebbcf71624d40d07c4422549a622062adbd0d93dd06e7d168dac2b99529d20d
Contents?: true
Size: 1.38 KB
Versions: 4
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: "<%= main_module_name %>", 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', 'requirejs']); };
Version data entries
4 entries across 4 versions & 1 rubygems