Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (50 sloc) 1.1 KB
module.exports = function(grunt) {
var port = grunt.option('port') || 8000;
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
js: {
src: 'js/app/*.js',
dest: 'js/app.js',
options: {
separator: ';\n\n',
},
},
css: {
src: 'css/app/*.css',
dest: 'css/app.css'
}
},
connect: {
server: {
options: {
port: port,
base: '.',
livereload: true
}
}
},
watch: {
options: {
livereload: true
},
js: {
files: 'js/app/*.js',
tasks: 'concat'
},
css: {
files: 'css/app/*.css',
tasks: 'concat'
},
html: {
files: [ 'index.html' ]
}
}
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.registerTask('default', ['concat']);
grunt.registerTask('serve', ['concat', 'connect', 'watch']);
grunt.registerTask('server', ['concat', 'connect', 'watch']);
};