Created
July 7, 2015 10:41
-
-
Save timrourke/f36f2c88d209689303e7 to your computer and use it in GitHub Desktop.
Empty Gruntfile.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
//This grunt.initCongig() function will wrap our Grunt tasks, and will let us | |
//define what tasks to run in what order. | |
grunt.initConfig({ | |
//This line tells our Grunt package to use package.json as the central reference | |
//for our project. | |
pkg: grunt.file.readJSON('package.json'), | |
//We can define each task by using the below syntax. | |
//Here we define one task called 'sass' that we can run. | |
//Because of the way that Grunt works, we must use the exact word | |
//'sass' to define this task, so be sure to refer to each Grunt plugin's | |
//GitHub project page for documentation on how to set up each task. | |
sass: { | |
// Our configuration for the 'sass' task will go here. | |
} | |
}); | |
//Here, we actually reference the 'grunt-contrib-sass' NPM package. | |
//This loads the source for each Grunt plugin we intend to use. | |
grunt.loadNpmTasks('grunt-contrib-sass'); | |
//Here we register a task called 'default'. The 'default' task is what is invoked | |
//if we simply type 'grunt' at our terminal prompt. This is useful for defining the | |
//main tasks you expect to use regularly for a particular project. | |
grunt.registerTask('default', ['sass']); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment