From 8c32387f4a79d510259234d471abb10fba16f254 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Tue, 9 Jun 2015 22:47:55 +0200 Subject: [PATCH] Bower support --- .bowerrc | 3 +++ .gitignore | 3 ++- app.html | 6 +++--- bower.json | 20 ++++++++++++++++++++ gulpfile.js | 11 +++++++++-- package.json | 2 ++ 6 files changed, 39 insertions(+), 6 deletions(-) create mode 100644 .bowerrc create mode 100644 bower.json diff --git a/.bowerrc b/.bowerrc new file mode 100644 index 0000000..88ecdf0 --- /dev/null +++ b/.bowerrc @@ -0,0 +1,3 @@ +{ + "directory" : "libs" +} diff --git a/.gitignore b/.gitignore index 0cf37d4..e21e8e9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ out.js* -node_modules +node_modules/ +libs/ diff --git a/app.html b/app.html index 20b0046..8d18a12 100644 --- a/app.html +++ b/app.html @@ -4,9 +4,9 @@ agario-webclient - - - + + + diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..1bf8c11 --- /dev/null +++ b/bower.json @@ -0,0 +1,20 @@ +{ + "name": "agario-webclient", + "version": "0.0.0", + "homepage": "https://github.com/GeoffreyFrogeye/agario-webclient", + "authors": [ + "Geoffrey Frogeye " + ], + "description": "Web-based agar.io client implementation with graphical display'", + "keywords": [ + "agar.io", + "pixijs" + ], + "license": "MIT", + "dependencies": { + "pixijs": "~1.3.0", + "dat.gui": "*", + "stats.js": "*", + "pixi.js": "~3.0.6" + } +} diff --git a/gulpfile.js b/gulpfile.js index 807148b..988fa8a 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -6,6 +6,7 @@ var gutil = require('gulp-util'); var uglify = require('gulp-uglify'); var sourcemaps = require('gulp-sourcemaps'); var reactify = require('reactify'); +var bower = require('gulp-bower'); gulp.task('javascript', function () { // set up the browserify instance on a task basis @@ -13,7 +14,7 @@ gulp.task('javascript', function () { entries: './script.js', debug: true, // defining transforms here will avoid crashing your stream - // transform: [reactify] + transform: [reactify] }); return b.bundle() @@ -27,4 +28,10 @@ gulp.task('javascript', function () { .pipe(gulp.dest('./')); }); -gulp.task('default', ['javascript']); + +gulp.task('bower', function() { + return bower() + .pipe(gulp.dest('libs/')); +}); + +gulp.task('default', ['javascript', 'bower']); diff --git a/package.json b/package.json index 87fcee8..355bfb0 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,10 @@ "agario-client": "^0.0.8" }, "devDependencies": { + "bower": "^1.4.1", "browserify": "^10.2.4", "gulp": "^3.9.0", + "gulp-bower": "0.0.10", "gulp-sourcemaps": "^1.5.2", "gulp-uglify": "^1.2.0", "gulp-util": "^3.0.5",