forked from devand123/cordova-plugin-opentok
-
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.
add grunt and split opentok.coffee into multiple files for easier man…
…agement
- Loading branch information
Song Zheng
committed
May 23, 2014
1 parent
3384b7f
commit 4f2a456
Showing
15 changed files
with
1,539 additions
and
1,458 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.DS_Store | ||
*.DS_Store | ||
*.swp | ||
*/node_modules | ||
node_modules |
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,43 @@ | ||
module.exports = function(grunt) { | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
watch:{ | ||
scripts: { | ||
files:['**/*.coffee'], | ||
tasks:["coffee", "uglify"], | ||
options:{ | ||
spawn: true, | ||
} | ||
}, | ||
}, | ||
coffee: { | ||
compileBare:{ | ||
options:{ | ||
bare: true | ||
}, | ||
files: { | ||
"./www/opentok.js" : "./src/js/*.coffee" | ||
} | ||
} | ||
}, | ||
uglify: { | ||
options: { | ||
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' | ||
}, | ||
build: { | ||
src: 'www/opentok.js', | ||
dest: 'www/opentok.min.js' | ||
} | ||
} | ||
}); | ||
|
||
// Load the plugin that provides the "uglify" task. | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-contrib-coffee'); | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
|
||
// Default task(s). | ||
grunt.registerTask('default', ["coffee"]); | ||
}; |
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,12 @@ | ||
{ | ||
"name": "Cordova-Plugin-OpenTok", | ||
"version": "2.2.0", | ||
"devDependencies": { | ||
"grunt": "^0.4.5", | ||
"grunt-contrib-coffee": "^0.10.1", | ||
"grunt-contrib-jshint": "~0.10.0", | ||
"grunt-contrib-nodeunit": "~0.3.3", | ||
"grunt-contrib-uglify": "~0.4.0", | ||
"grunt-contrib-watch": "^0.6.1" | ||
} | ||
} |
Binary file not shown.
Oops, something went wrong.