Created
January 7, 2015 14:54
-
-
Save atleastimtrying/6e18e9343ac5bda60ba7 to your computer and use it in GitHub Desktop.
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) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
concat: { | |
options: { | |
separator: ';' | |
}, | |
dist: { | |
src: ['www/js/lib/*.js','www/js/src/*.js'], | |
dest: 'www/js/build/<%= pkg.name %>.min.js' | |
} | |
}, | |
// uglify: { | |
// options: { | |
// banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n' | |
// }, | |
// dist: { | |
// files: { | |
// 'www/js/build/<%= pkg.name %>.min.js': ['<%= concat.dist.dest %>'] | |
// } | |
// } | |
// }, | |
sass: { | |
dist: { | |
files: { | |
'www/css/build/<%= pkg.name %>.min.css' : 'www/css/src/base.scss' | |
} | |
} | |
}, | |
watch: { | |
js:{ | |
files: ['www/js/src/*.js'], | |
tasks: [ | |
'concat' | |
//,'uglify' | |
] | |
}, | |
css: { | |
files: 'www/css/src/*.scss', | |
tasks: ['sass'] | |
} | |
} | |
}); | |
// Load the plugins | |
grunt.loadNpmTasks('grunt-contrib-sass'); | |
grunt.loadNpmTasks('grunt-contrib-concat'); | |
grunt.loadNpmTasks('grunt-contrib-uglify'); | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
// Default task(s). | |
grunt.registerTask('default', [ | |
'watch', | |
'concat', | |
'sass' | |
//, 'uglify' | |
]); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment