Skip to content

Commit

Permalink
Basic Gruntfile comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Spyratos authored and Michael Spyratos committed Jan 25, 2017
1 parent c225750 commit 857f7a2
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

/**
* Bootstrap path in node modules.
*/
boostrap_sass_path: 'node_modules/bootstrap/scss',

/**
* Copy the necessary files from bootstrap node module,
* to the scss folder.
*/
copy: {

breakpoints: {
Expand Down Expand Up @@ -92,6 +99,9 @@ module.exports = function (grunt) {
}
},

/**
* Compile the sass files to css.
*/
sass: {

dist: {
Expand All @@ -114,6 +124,9 @@ module.exports = function (grunt) {
}
},

/**
* Prefix css files with the autoprefixer plugin of postcss.
*/
postcss: {
options: {
map: true,
Expand Down Expand Up @@ -143,5 +156,7 @@ module.exports = function (grunt) {
'postcss'
]);

grunt.registerTask('default', ['build']);
grunt.registerTask('default', [
'build'
]);
};

0 comments on commit 857f7a2

Please sign in to comment.