Skip to content

Commit

Permalink
added grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Windal committed Mar 31, 2013
1 parent 97f6447 commit d669721
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 10 deletions.
39 changes: 39 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
src: 'src/<%= pkg.name %>.js',
dest: 'build/<%= pkg.name %>.min.js'
}
},
/**
* generate plato report in plato-report subfolder
*/
plato: {
options: {
// Task-specific options go here.
},
your_target: {
// Target-specific file lists and/or options go here.
files: {
'plato-report': ['public/js/*.js']
}
},
},

});

// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-plato');

// Default task(s).
grunt.registerTask('default', ['uglify']);

};
27 changes: 17 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
{
"name": "jscribble",
"version": "0.0.1",
"private": false,
"dependencies": {
"express": "~2.5.8",
"ejs": "~0.7.1",
"socket.io": "~0.9.6",
"socket.io-client": "~0.9.6",
"expresso":"~0.9.2"
"name": "jscribble",
"version": "0.0.1",
"private": false,
"dependencies": {
"express": "~2.5.8",
"ejs": "~0.7.1",
"socket.io": "~0.9.6",
"socket.io-client": "~0.9.6",
"expresso": "~0.9.2"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.1.1",
"grunt-contrib-watch": "~0.3.1",
"grunt-plato": "~0.1.5",
"grunt-contrib-uglify": "~0.2.0"
},
"engines": {
"node": "0.8.x"
},
"scripts": {
"test": "expresso test/*"
}
}
}

0 comments on commit d669721

Please sign in to comment.