forked from sebastienwindal/JScribble
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sebastien Windal
committed
Mar 31, 2013
1 parent
97f6447
commit d669721
Showing
2 changed files
with
56 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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']); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/*" | ||
} | ||
} | ||
} |