Sha256: 5abe747af20669d79cc33c84e2b70ec720bc8978f2b022efbeca25151d5ff0b9
Contents?: true
Size: 1.62 KB
Versions: 1
Compression:
Stored size: 1.62 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', } }, }, scsslint: { allFiles: [ 'stylesheets/*.scss', 'stylesheets/**/*.scss' ], options: { bundleExec: true, config: '.scss-lint.yaml' } } }); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-jasmine'); grunt.loadNpmTasks('grunt-contrib-sass'); grunt.loadNpmTasks('grunt-scss-lint'); grunt.registerTask('test', ['sass', 'clean', 'jasmine', 'scsslint']); grunt.registerTask('default', ['test']); };
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
govuk_frontend_toolkit-3.1.0 | app/assets/Gruntfile.js |