Skip to content

Instantly share code, notes, and snippets.

'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
concat: {
dist: {
src: ['main.js', 'ctrl1.js'], //source files goes here
dest: 'build/lib.js' //concatenated file goes here
@gergelyke
gergelyke / Gruntfile.js
Last active March 27, 2017 09:47
Uploading to S3, Cloudfront invalidation, HipChat notification
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
s3: {
options: {
region: 'us-east-1',
endpoint: 's3.amazonaws.com',
@gergelyke
gergelyke / Gruntfile.js
Last active August 29, 2015 13:56
Gruntfile to concat & uglify
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
concat: {
dist: {
src: ['main.js', 'ctrl1.js'], //source files goes here
console.lol = function () {
var args = Array.prototype.slice.call(arguments);
args.unshift('such-log!');
console.log.apply(console, args);
};