parent
d355efaffd
commit
b917544ef3
9 changed files with 1709 additions and 4 deletions
@ -1,4 +1,3 @@ |
||||
canvasquery-playground |
||||
====================== |
||||
|
||||
Playing around with Canvas Query |
||||
1. `npm install` |
||||
2. `gulp` |
||||
3. hack hack hack, until the time is over. |
||||
|
@ -0,0 +1,36 @@ |
||||
// npm install -g gulp
|
||||
// npm install --save-dev browser-sync
|
||||
|
||||
var gulp = require('gulp'); |
||||
|
||||
var coffee = require('gulp-coffee'); |
||||
var concat = require('gulp-concat'); |
||||
var uglify = require('gulp-uglify'); |
||||
var sourcemaps = require('gulp-sourcemaps'); |
||||
|
||||
var browserSync = require('browser-sync'); |
||||
var reload = browserSync.reload; |
||||
|
||||
|
||||
gulp.task('server', function() { |
||||
browserSync({ |
||||
server: { |
||||
baseDir: 'public' |
||||
} |
||||
}); |
||||
}); |
||||
|
||||
gulp.task('compile', function() { |
||||
return gulp.src(['src/*.coffee']) |
||||
.pipe(sourcemaps.init()) |
||||
.pipe(coffee()) |
||||
.pipe(uglify()) |
||||
.pipe(concat('app.js')) |
||||
.pipe(sourcemaps.write()) |
||||
.pipe(gulp.dest('public')); |
||||
}); |
||||
|
||||
gulp.task('default', ['server'], function() { |
||||
gulp.watch(['src/*.coffee'], ['compile']); |
||||
gulp.watch(['*.html', 'styles.css', 'app.js', 'images/*'], {cwd: 'public'}, reload); |
||||
}); |
@ -0,0 +1,13 @@ |
||||
{ |
||||
"name": "arg-games-ld31", |
||||
"description": "ARG-Games Lumdum Date 31 Entry", |
||||
"version": "0.0.1", |
||||
"dependencies": { |
||||
"gulp": "*", |
||||
"gulp-coffee": "*", |
||||
"gulp-concat": "*", |
||||
"gulp-uglify": "*", |
||||
"gulp-sourcemaps": "*", |
||||
"browser-sync": "*" |
||||
} |
||||
} |
@ -0,0 +1,2 @@ |
||||
(function(){$(function(){return console.log("Hi dude!")})}).call(this); |
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1haW4uY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJDQUFBLFdBQUEsRUFBRSxpQkFDQSxTQUFRLElBQUkiLCJmaWxlIjoiYXBwLmpzIiwic291cmNlc0NvbnRlbnQiOlsiJCAtPlxuICBjb25zb2xlLmxvZyBcIkhpIGR1ZGUhXCJcbiJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==
|
@ -0,0 +1,14 @@ |
||||
<!doctype html> |
||||
<html lang=""> |
||||
<head> |
||||
<meta charset="utf-8"> |
||||
<title>LD31</title> |
||||
<link rel="stylesheet" href="styles.css"> |
||||
<script src="vendors/jquery-1.11.1.min.js"></script> |
||||
<script src="vendors/canvasquery.js"></script> |
||||
<script src="app.js"></script> |
||||
</head> |
||||
<body> |
||||
<h1>Ludum Dare, here we come again!!</h1> |
||||
</body> |
||||
</html> |
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -0,0 +1,2 @@ |
||||
$ -> |
||||
console.log "Hi dude!" |
Loading…
Reference in new issue