Sha256: c516370be3e5e2e4319f133079e5c810e90fecc336189a62578c9e6b993fc237
Contents?: true
Size: 1.51 KB
Versions: 2
Compression:
Stored size: 1.51 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/dist/jquery.js', 'javascripts/govuk/analytics/google-analytics-universal-tracker.js', 'javascripts/govuk/analytics/analytics.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
govuk_frontend_toolkit-4.18.3 | app/assets/Gruntfile.js |
govuk_frontend_toolkit-4.18.2 | app/assets/Gruntfile.js |