Prepare for war.

This commit is contained in:
Aaron Mueller 2014-12-02 00:01:16 +01:00
parent d355efaffd
commit b917544ef3
9 changed files with 1709 additions and 4 deletions

View file

@ -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.

36
gulpfile.js Normal file
View file

@ -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);
});

13
package.json Normal file
View file

@ -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": "*"
}
}

2
public/app.js Normal file
View file

@ -0,0 +1,2 @@
(function(){$(function(){return console.log("Hi dude!")})}).call(this);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1haW4uY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJDQUFBLFdBQUEsRUFBRSxpQkFDQSxTQUFRLElBQUkiLCJmaWxlIjoiYXBwLmpzIiwic291cmNlc0NvbnRlbnQiOlsiJCAtPlxuICBjb25zb2xlLmxvZyBcIkhpIGR1ZGUhXCJcbiJdLCJzb3VyY2VSb290IjoiL3NvdXJjZS8ifQ==

14
public/index.html Normal file
View file

@ -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>

0
public/styles.css Normal file
View file

1635
public/vendors/canvasquery.js vendored Normal file

File diff suppressed because it is too large Load diff

4
public/vendors/jquery-1.11.1.min.js vendored Normal file

File diff suppressed because one or more lines are too long

2
src/main.coffee Normal file
View file

@ -0,0 +1,2 @@
$ ->
console.log "Hi dude!"