mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-16 21:12:13 +00:00
Stop asteroids breaking the buildchain.
Game's a bit broken but I've better things to do than fix an easter egg
This commit is contained in:
@@ -70,14 +70,14 @@ function scripts() {
|
|||||||
.pipe(gulpif(function(file) { return interaction.includes(file.relative);}, con('interaction.js')))
|
.pipe(gulpif(function(file) { return interaction.includes(file.relative);}, con('interaction.js')))
|
||||||
.pipe(gulpif(function(file) { return jpop.includes(file.relative);}, con('jpop.js')))
|
.pipe(gulpif(function(file) { return jpop.includes(file.relative);}, con('jpop.js')))
|
||||||
.pipe(flatten())
|
.pipe(flatten())
|
||||||
.pipe(terser())
|
// Only minify if filename does not already denote it as minified
|
||||||
|
.pipe(gulpif(function(file) { return file.path.indexOf("min") == -1;},terser()))
|
||||||
.pipe(gulp.dest(dest))
|
.pipe(gulp.dest(dest))
|
||||||
.pipe(browsersync.stream());
|
.pipe(browsersync.stream());
|
||||||
}
|
}
|
||||||
|
|
||||||
function browserSync(done) {
|
function browserSync(done) {
|
||||||
spawn('python', ['manage.py', 'runserver'], {stdio: 'inherit'});
|
spawn('python', ['manage.py', 'runserver'], {stdio: 'inherit'});
|
||||||
// TODO Wait for Django server to come up before browsersync, it seems inconsistent
|
|
||||||
browsersync.init({
|
browsersync.init({
|
||||||
notify: true,
|
notify: true,
|
||||||
open: false,
|
open: false,
|
||||||
|
|||||||
@@ -17,14 +17,12 @@ jQuery(document).ready(function () {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var easter_egg = new Konami();
|
var easter_egg = new Konami(function () {
|
||||||
easter_egg.code = function () {
|
|
||||||
var s = document.createElement('script');
|
var s = document.createElement('script');
|
||||||
s.type = 'text/javascript';
|
s.type = 'text/javascript';
|
||||||
document.body.appendChild(s);
|
document.body.appendChild(s);
|
||||||
s.src = '{% static "js/asteroids.min.js"%}';
|
s.src = '/static/js/asteroids.min.js';
|
||||||
ga('send', 'event', 'easter_egg', 'activated');
|
});
|
||||||
}
|
|
||||||
easter_egg.load();
|
easter_egg.load();
|
||||||
});
|
});
|
||||||
//CTRL-Enter form submission
|
//CTRL-Enter form submission
|
||||||
|
|||||||
Reference in New Issue
Block a user