-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaning up the package and adding a gulp build script
- Loading branch information
Adam Ullman
committed
Mar 3, 2014
1 parent
15fcbe9
commit 68e10c8
Showing
4 changed files
with
47 additions
and
1 deletion.
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,2 @@ | ||
/node_modules | ||
/build |
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 @@ | ||
var gulp = require('gulp'), | ||
jshint = require('gulp-jshint'), | ||
rename = require('gulp-rename'), | ||
uglify = require('gulp-uglify'); | ||
|
||
gulp.task('default', function(){ | ||
gulp.src('src/opentok-layout.js') | ||
.pipe(jshint()) | ||
.pipe(uglify()) | ||
.pipe(rename('opentok-layout.min.js')) | ||
.pipe(gulp.dest('./build')); | ||
}); |
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,32 @@ | ||
{ | ||
"name": "opentok-layout-js", | ||
"version": "0.0.1", | ||
"description": "Automatic layout of video elements (publisher and subscriber) minimising white-space for the OpenTok on WebRTC API. This is intended for use with the OpenTok on WebRTC JS API.", | ||
"main": "gulpfile.js", | ||
"dependencies": { | ||
"gulp": "~3.5.5" | ||
}, | ||
"devDependencies": { | ||
"gulp": "~3.5.5", | ||
"gulp-uglify": "~0.2.1", | ||
"gulp-jshint": "~1.5.0", | ||
"gulp-rename": "~1.1.0" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/aullman/opentok-layout-js.git" | ||
}, | ||
"keywords": [ | ||
"opentok", | ||
"webrtc" | ||
], | ||
"author": "Adam Ullman", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/aullman/opentok-layout-js/issues" | ||
}, | ||
"homepage": "https://github.com/aullman/opentok-layout-js" | ||
} |
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