Skip to content

Instantly share code, notes, and snippets.

@metapraveen
Created January 7, 2014 10:39
Show Gist options
  • Save metapraveen/8297640 to your computer and use it in GitHub Desktop.
Save metapraveen/8297640 to your computer and use it in GitHub Desktop.
1/6/2014
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON( 'package.json' ),
concat: {
libs: {
src: [
'lib/jquery.js',
'lib/handlebars.js',
'lib/ember.js',
'lib/ember-data.js',
'lib/localstorage_adapter.js'
],
dest: 'libs.js'
},
app: {
src: ['app/**/*.js', 'app/*.js' ],
dest: 'app.js'
}
},
watch: {
jsFiles: {
files: ['app.js'],
options: {
livereload: true,
}
},
htmlFiles: {
files: ['*.html'],
options: {
livereload: true,
}
},
concat: {
files: ['app/**/*.js', 'app/*.js'],
tasks: ['concat']
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat');
// grunt.loadNpmTasks('grunt-contrib-sass');
// grunt.loadNpmTasks('grunt-ember-templates');
// Default task(s).
grunt.registerTask('default', [ 'concat']);
};
// 'use strict';
// module.exports = function (grunt) {
// grunt.loadNpmTasks('grunt-contrib-watch');
// grunt.initConfig({
// watch: {
// coffeefiles: {
// files: ['app/assets/javascripts/*.js'],
// options: {
// livereload: true,
// }
// },
// erbfiles: {
// files: ['app/views/{,*/}*.erb'],
// options: {
// livereload: true,
// }
// }
// }
// });
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment