Sha256: a6a62e53c5e700ee921449ba6c1695dadfbb4dcec32a9193653c24d9609a9c50
Contents?: true
Size: 1.89 KB
Versions: 1
Compression:
Stored size: 1.89 KB
Contents
<% project_name = File.basename(Compass.configuration.project_path) %><% project_js = Compass.configuration.javascripts_dir %><% project_css = Compass.configuration.css_dir %><% project_sass = Compass.configuration.sass_dir %><% project_img = Compass.configuration.images_dir %>'use strict'; module.exports = function (grunt) { grunt.initConfig({ watch: { options: { livereload: 9001 }, css: { files: ['<%= project_sass %>/{,**/}*.scss'], tasks: ['compass:dev'] }, js: { files: ['<%= project_js %>/{,**/}*.js'], tasks: ['jshint'] } }, compass: { options: { config: 'config.rb', bundleExec: true }, dev: { options: { environment: 'development', } }, dist: { options: { environment: 'production', imagesDir: '<%= project_img %>-min', force: true } } }, jshint: { options: { jshintrc: '.jshintrc' }, all: ['<%= project_js %>/{,**/}*.js'] }, imagemin: { dist: { options: { optimizationLevel: 3 }, files: [{ expand: true, cwd: '<%= project_img %>', src: ['**/*.png', '**/*.jpg'], dest: '<%= project_img %>-min/' }] } }, parallel: { assets: { grunt: true, tasks: ['compass:dist', 'imagemin'] } } }); grunt.event.on('watch', function(action, filepath) { grunt.config([ 'compass:dev', 'jshint' ], filepath); }); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-compass'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-imagemin'); grunt.loadNpmTasks('grunt-parallel'); grunt.registerTask('build', [ 'parallel:assets', 'jshint' ]); };
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
compass-aurora-3.0.1 | templates/shared/Gruntfile.js.erb |