Skip to content

Commit

Permalink
Init!
Browse files Browse the repository at this point in the history
  • Loading branch information
Casmo committed Feb 13, 2019
1 parent 6c780dc commit b1b5e98
Show file tree
Hide file tree
Showing 11 changed files with 1,475 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/game.js

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions build/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Funky game</title>
<link href="assets/game.css" rel="stylesheet" />
</head>
<body>
<script src="game.js"></script>
</body>
</html>
42 changes: 42 additions & 0 deletions gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
sourceMap: false,
sourceMapIncludeSources: false,
banner: '/**\n * @link https://couchfriends.com\n * @license MIT\n */\n'
},
build: {
src: [
'node_modules/matter-js/build/matter.js',
'src/Funky.js',
'src/Funky.Levels.js',
'src/Funky.Player.js',
'src/game.js'
],
dest: 'build/game.js'
}
},
copy: {
main: {
src: 'src/assets/*',
dest: 'build/assets/',
flatten: true,
expand: true,
filter: 'isFile'
}
}
});

// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');

// Default task(s).
grunt.registerTask('default', ['uglify', 'copy']);

grunt.loadNpmTasks('grunt-contrib-copy');

};
Loading

0 comments on commit b1b5e98

Please sign in to comment.