Skip to content

Commit

Permalink
Cleaning up the package and adding a gulp build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Ullman committed Mar 3, 2014
1 parent 15fcbe9 commit 68e10c8
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules
/build
12 changes: 12 additions & 0 deletions gulpfile.js
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'));
});
32 changes: 32 additions & 0 deletions package.json
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"
}
2 changes: 1 addition & 1 deletion src/layoutContainer.js → src/opentok-layout.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*!
* opentok-layout-js (http://github.com/aullman/opentok-layout-js)
*
* Automatic layout of video elements (publisher and subscriber) minimising
Expand Down

0 comments on commit 68e10c8

Please sign in to comment.