Skip to content

Commit

Permalink
Bit more linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewilde committed Feb 26, 2017
1 parent c0e3234 commit eb0afc4
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 35 deletions.
58 changes: 28 additions & 30 deletions gruntfile.js
Expand Up @@ -205,36 +205,34 @@ module.exports = function (grunt) {
}
});

grunt.registerTask('default',
[ 'clean',
'browserify',
'jade',
'stylus',
'copy:images',
'copy:audio',
'copy:phaserArcade',
'connect',
'open',
'watch'
]
);

grunt.registerTask('build',
[ /*'jshint',
*/'clean',
'browserify',
'jade',
'stylus',
'uglify',
'copy:images',
'copy:audio',
'copy:phaserArcadeMin',
'cacheBust',
'connect',
'open',
'watch'
]
);
grunt.registerTask('default', [
'clean',
'browserify',
'jade',
'stylus',
'copy:images',
'copy:audio',
'copy:phaserArcade',
'connect',
'open',
'watch'
]);

grunt.registerTask('build', [
/*'jshint',
*/'clean',
'browserify',
'jade',
'stylus',
'uglify',
'copy:images',
'copy:audio',
'copy:phaserArcadeMin',
'cacheBust',
'connect',
'open',
'watch'
]);

grunt.registerTask('optimise', ['pngmin', 'copy:images']);
grunt.registerTask('cocoon', ['compress:cocoon']);
Expand Down
7 changes: 4 additions & 3 deletions src/js/game/app.js
@@ -1,9 +1,10 @@
var _ = require('lodash');
var properties = require('./properties');

var states = {
boot: require('./states/boot.js'),
preloader: require('./states/preloader.js'),
game: require('./states/game.js')
boot: require('./states/boot.js'),
preloader: require('./states/preloader.js'),
game: require('./states/game.js')
};

var game = new Phaser.Game(properties.size.x, properties.size.y, Phaser.AUTO, 'game');
Expand Down
2 changes: 1 addition & 1 deletion src/js/game/properties.js
Expand Up @@ -12,4 +12,4 @@ module.exports = {
y: 600
},
analyticsId: 'UA-50892214-2'
};
};
2 changes: 1 addition & 1 deletion src/js/game/states/boot.js
Expand Up @@ -25,7 +25,7 @@ function addStats(game) {

document.body.appendChild(stats.domElement);

// In order to correctly monitor FPS, we have to make calls to the stats package before and after phaser's update.
// Monkey patch Phaser's update in order to correctly monitor FPS.
var oldUpdate = game.update;
game.update = function() {
stats.begin();
Expand Down

0 comments on commit eb0afc4

Please sign in to comment.