initial work for grunt integration

pull/39/head
Jim Heising 2014-07-03 12:02:33 -07:00
parent 64845dd10c
commit f0d8d25030
14 changed files with 48 additions and 10 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
.idea
node_modules

25
Gruntfile.js 100644
View File

@ -0,0 +1,25 @@
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
css: {
src: [
'css/*'
],
dest: 'combined.css'
},
js : {
src : [
'js/*'
],
dest : 'combined.js'
}
},
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.registerTask('default', [ 'concat:css', 'cssmin:css', 'concat:js', 'uglify:js' ]);
};

View File

12
package.json 100644
View File

@ -0,0 +1,12 @@
{
"name" : "freeboard",
"title" : "freeboard",
"version" : "1.1.0",
"devDependencies": {
"grunt": "0.4.1",
"grunt-contrib-concat": "0.1.3",
"grunt-contrib-cssmin" : "0.6.1",
"grunt-contrib-watch" : "0.5.3",
"grunt-contrib-uglify" : "0.2.0"
}
}