Bower support
This commit is contained in:
parent
5e1da1345e
commit
8c32387f4a
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
out.js*
|
out.js*
|
||||||
node_modules
|
node_modules/
|
||||||
|
libs/
|
||||||
|
|
6
app.html
6
app.html
|
@ -4,9 +4,9 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset=utf-8 />
|
<meta charset=utf-8 />
|
||||||
<title>agario-webclient</title>
|
<title>agario-webclient</title>
|
||||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/pixi.js/3.0.6/pixi.min.js"></script>
|
<script src="libs/pixi.js/bin/pixi.js"></script>
|
||||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.5/dat.gui.min.js"></script>
|
<script src="libs/dat.gui/dat.gui.min.js"></script>
|
||||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/stats.js/r11/Stats.js"></script>
|
<script src="libs/stats.js/build/stats.min.js"></script>
|
||||||
<script src="out.js"></script>
|
<script src="out.js"></script>
|
||||||
<link rel="stylesheet" type="text/css" href="style.css">
|
<link rel="stylesheet" type="text/css" href="style.css">
|
||||||
</style>
|
</style>
|
||||||
|
|
20
bower.json
Normal file
20
bower.json
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"name": "agario-webclient",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"homepage": "https://github.com/GeoffreyFrogeye/agario-webclient",
|
||||||
|
"authors": [
|
||||||
|
"Geoffrey Frogeye <geoffrey@frogeye.fr>"
|
||||||
|
],
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
}
|
11
gulpfile.js
11
gulpfile.js
|
@ -6,6 +6,7 @@ var gutil = require('gulp-util');
|
||||||
var uglify = require('gulp-uglify');
|
var uglify = require('gulp-uglify');
|
||||||
var sourcemaps = require('gulp-sourcemaps');
|
var sourcemaps = require('gulp-sourcemaps');
|
||||||
var reactify = require('reactify');
|
var reactify = require('reactify');
|
||||||
|
var bower = require('gulp-bower');
|
||||||
|
|
||||||
gulp.task('javascript', function () {
|
gulp.task('javascript', function () {
|
||||||
// set up the browserify instance on a task basis
|
// set up the browserify instance on a task basis
|
||||||
|
@ -13,7 +14,7 @@ gulp.task('javascript', function () {
|
||||||
entries: './script.js',
|
entries: './script.js',
|
||||||
debug: true,
|
debug: true,
|
||||||
// defining transforms here will avoid crashing your stream
|
// defining transforms here will avoid crashing your stream
|
||||||
// transform: [reactify]
|
transform: [reactify]
|
||||||
});
|
});
|
||||||
|
|
||||||
return b.bundle()
|
return b.bundle()
|
||||||
|
@ -27,4 +28,10 @@ gulp.task('javascript', function () {
|
||||||
.pipe(gulp.dest('./'));
|
.pipe(gulp.dest('./'));
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('default', ['javascript']);
|
|
||||||
|
gulp.task('bower', function() {
|
||||||
|
return bower()
|
||||||
|
.pipe(gulp.dest('libs/'));
|
||||||
|
});
|
||||||
|
|
||||||
|
gulp.task('default', ['javascript', 'bower']);
|
||||||
|
|
|
@ -6,8 +6,10 @@
|
||||||
"agario-client": "^0.0.8"
|
"agario-client": "^0.0.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"bower": "^1.4.1",
|
||||||
"browserify": "^10.2.4",
|
"browserify": "^10.2.4",
|
||||||
"gulp": "^3.9.0",
|
"gulp": "^3.9.0",
|
||||||
|
"gulp-bower": "0.0.10",
|
||||||
"gulp-sourcemaps": "^1.5.2",
|
"gulp-sourcemaps": "^1.5.2",
|
||||||
"gulp-uglify": "^1.2.0",
|
"gulp-uglify": "^1.2.0",
|
||||||
"gulp-util": "^3.0.5",
|
"gulp-util": "^3.0.5",
|
||||||
|
|
Reference in a new issue