Sha256: 95179505b43034844352b5baef03222432f781b2ebca89322072fc3343e6aaee
Contents?: true
Size: 1.38 KB
Versions: 8
Compression:
Stored size: 1.38 KB
Contents
module.exports = function(grunt) { var allSassFiles = []; var path = require('path'); grunt.file.recurse( "./stylesheets/", function(abspath, rootdir, subdir, filename) { if(typeof subdir !== 'undefined'){ var relpath = subdir + '/' + filename; } else { var relpath = filename; } if (filename.match(/\.scss/)) { allSassFiles.push("@import '" + relpath + "';"); } } ); grunt.file.write( "./spec/stylesheets/test.scss", allSassFiles.join("\n") ); grunt.initConfig({ clean: { sass: ["spec/stylesheets/test*css"] }, jasmine: { javascripts: { src: [ 'node_modules/jquery-browser/lib/jquery.js', 'javascripts/**/*.js' ], options: { specs: 'spec/unit/*Spec.js', helpers: 'spec/unit/*Helper.js' } } }, sass: { development: { files: { './spec/stylesheets/test-out.css': './spec/stylesheets/test.scss' }, options: { loadPath: [ './stylesheets' ], style: 'nested', } }, } }); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-jasmine'); grunt.loadNpmTasks('grunt-contrib-sass'); grunt.registerTask('test', ['sass', 'clean', 'jasmine']); grunt.registerTask('default', ['test']); };
Version data entries
8 entries across 8 versions & 1 rubygems