Skip to content

Commit

Permalink
Merge pull request #1 from mrimann/master
Browse files Browse the repository at this point in the history
[TASK] Code-Styling
  • Loading branch information
crimann committed Jan 31, 2015
2 parents b3c9b1c + a690305 commit 4aa8cd3
Showing 1 changed file with 48 additions and 7 deletions.
55 changes: 48 additions & 7 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ module.exports = function(grunt) {

autoprefixer: {
options: {
browsers: ['last 4 versions', 'ie 9', 'ios 6', 'android 4']
browsers: [
'last 4 versions',
'ie 9',
'ios 6',
'android 4'
]
},
style: {
src: 'css/*.css'
Expand All @@ -53,7 +58,21 @@ module.exports = function(grunt) {
rsync: {
options: {
args: ["--verbose"],
exclude: [".git", ".gitignore", ".DS_Store", "style.max.css", "*.css.map", "<%= pkg.name %>.js", "js/src", "node_modules", "scss", "Gruntfile.js", "package.json", ".sass-cache", "<%= pkg.name %>"],
exclude: [
'.git',
'.gitignore',
'.DS_Store',
'style.max.css',
'*.css.map',
'<%= pkg.name %>.js',
'js/src',
'node_modules',
'scss',
'Gruntfile.js',
'package.json',
'.sass-cache',
'<%= pkg.name %>'
],
recursive: true
},
dist: {
Expand Down Expand Up @@ -100,12 +119,34 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-rsync');

// Define default task(s).
grunt.registerTask('default', ['sass', 'autoprefixer', 'scripts', 'watch']);
grunt.registerTask(
'default',
[
'sass',
'autoprefixer',
'scripts',
'watch'
]
);

// Define Task to concatenate and uglify only the Javascripts
grunt.registerTask('scripts', ['concat', 'uglify']);
grunt.registerTask(
'scripts',
[
'concat',
'uglify'
]
);

// Define the final Build/Deploy Task to write the final Theme for distribution
grunt.registerTask('build', ['sass', 'autoprefixer', 'concat', 'uglify', 'rsync']);

};
grunt.registerTask(
'build',
[
'sass',
'autoprefixer',
'concat',
'uglify',
'rsync'
]
);
};

0 comments on commit 4aa8cd3

Please sign in to comment.