Permalink
Browse files

gamee 2.0.0

  • Loading branch information...
EntityB committed Feb 15, 2017
1 parent 4e70d1d commit 15655c7a75354ccc900a3395fb8473c6eb0291aa
Showing with 4,090 additions and 18,381 deletions.
  1. +15 −0 .gitignore
  2. +3 −0 .jshintrc
  3. +91 −66 Gruntfile.js
  4. +16 −24 README.md
  5. +2 −2 bower.json
  6. +0 −1,319 dist/gamee.all.devel.js
  7. +0 −2 dist/gamee.all.min.js
  8. +0 −1,210 dist/gamee.js
  9. +0 −1 dist/gamee.min.js
  10. +0 −1 doc/doc-filelist.js
  11. +0 −230 doc/doc-script.js
  12. +0 −376 doc/doc-style.css
  13. +0 −123 doc/integration.en.html
  14. +0 −123 doc/integration.sk.html
  15. +0 −1,626 doc/src/controller.js.html
  16. +0 −977 doc/src/gamee.js.html
  17. +0 −443 doc/src/gamee_native.js.html
  18. +0 −99 doc/vendor/strapdown/strapdown.css
  19. +0 −442 doc/vendor/strapdown/strapdown.js
  20. +0 −174 doc/vendor/strapdown/themes/LICENSE
  21. +0 −7 doc/vendor/strapdown/themes/README.md
  22. +0 −959 doc/vendor/strapdown/themes/amelia.min.css
  23. +0 −9 doc/vendor/strapdown/themes/bootstrap-responsive.min.css
  24. +0 −9 doc/vendor/strapdown/themes/bootstrap.min.css
  25. +0 −854 doc/vendor/strapdown/themes/cerulean.min.css
  26. +0 −933 doc/vendor/strapdown/themes/cyborg.min.css
  27. +0 −869 doc/vendor/strapdown/themes/journal.min.css
  28. +0 −905 doc/vendor/strapdown/themes/readable.min.css
  29. +0 −885 doc/vendor/strapdown/themes/simplex.min.css
  30. +0 −913 doc/vendor/strapdown/themes/slate.min.css
  31. +0 −873 doc/vendor/strapdown/themes/spacelab.min.css
  32. +0 −920 doc/vendor/strapdown/themes/spruce.min.css
  33. +0 −943 doc/vendor/strapdown/themes/superhero.min.css
  34. +0 −845 doc/vendor/strapdown/themes/united.min.css
  35. +2,014 −0 gamee/dist/gamee-js.2.0.0.js
  36. +4 −0 gamee/dist/gamee-js.2.0.0.min.js
  37. +1 −0 gamee/dist/gamee-js.2.0.0.min.js.map
  38. +128 −0 gamee/libs/shims.js
  39. +447 −0 gamee/src/core.js
  40. +594 −0 gamee/src/game_controllers.js
  41. +273 −0 gamee/src/gameeAPI.js
  42. +88 −0 gamee/src/main.js
  43. +362 −0 gamee/src/platform_bridge.js
  44. +35 −0 jsdoc.conf.json
  45. +17 −11 package.json
  46. +0 −642 src/controller.js
  47. +0 −382 src/gamee.js
  48. +0 −184 src/gamee_native.js
View
@@ -50,3 +50,18 @@ Session.vim
.netrwhist
*~
## builds
gamee/dist
## documentation files
gamee/docs
## packed samples
projects-dist
projects-build
## IDE
.vscode
View
@@ -0,0 +1,3 @@
{
"esversion": 5
}
View
@@ -1,83 +1,108 @@
'use strict';
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
module.exports = function (grunt) {
grunt.initConfig({
app: {
src: './src/',
dist: './dist/',
docs: './doc/',
test: './test/',
bower: './bower_components/'
},
jshint: {
pkg: grunt.file.readJSON('package.json'),
concat: { // file merging, good for libraries and shims
options: {
reporter: require('jshint-stylish')
separator: '\n\n',
process: function (src, filepath) {
return '//#### ' + filepath + '\n' + src;
}
},
target: '<%= app.src %>/*.js'
},
uglify: {
dist: {
src: '<%= app.dist %>/gamee.js',
dest: '<%= app.dist %>/gamee.min.js'
src: ['bower_components/bullet/dist/bullet.js', 'gamee/libs/shims.js', '<%= file_dependencies.src_target.ordered_files %>'],
dest: 'gamee/dist/<%= pkg.name %>.<%= pkg.version %>.js'
}
},
concat: {
source: {
src: [
'<%= app.src %>/gamee_native.js',
'<%= app.src %>/gamee.js',
'<%= app.src %>/controller.js'
],
dest: '<%= app.dist %>/gamee.js'
},
devel: {
src: ['<%= app.bower %>/bullet/dist/bullet.js', '<%= app.dist %>/gamee.js'],
dest: '<%= app.dist %>/gamee.all.devel.js'
uglify: { // minification
options: {
banner: '/*! <%= pkg.name %>.<%= pkg.version %> <%= grunt.template.today("dd-mm-yyyy") %> */\n',
mangle: { // maximum level of minification
toplevel: true,
except: ["Gamee",
"OneButtonController",
"TwoButtonController",
"FourButtonController",
"FiveButtonController",
"SixButtonController",
"FourArrowController",
"TouchController",
"JoystickController",
"JoystickButtonController",
"TwoArrowsTwoButtonsController",
"TwoArrowsOneButtonController",
"TwoActionButtonsController"] // this will make objects reserved words, so it wont be minified and its constructor is visible in IDE and debugger
},
compress: {
sequences: true,
properties: true,
dead_code: true,
drop_debugger: true,
drop_console: false,
conditionals: true,
comparisons: true
},
sourceMap: true,
wrap: "gamee" // everything is being wrapped into gamee variable. We expose only API of Gamee (actualy we have to expose some other bindings for native apps :( )
},
mins: {
src: ['<%= app.bower %>/bullet/dist/bullet.min.js', '<%= app.dist %>/gamee.min.js'],
dest: '<%= app.dist %>/gamee.all.min.js'
dist: {
src: 'gamee/dist/<%= pkg.name %>.<%= pkg.version %>.js',
dest: 'gamee/dist/<%= pkg.name %>.<%= pkg.version %>.min.js'
}
},
docker: {
app: {
src: '<%= app.src %>',
dest: '<%= app.docs %>'
jshint: { // check your code validity with jshint (you must watch the console if build is passing)
files: ['Gruntfile.js', 'gamee/src/*.js', 'gamee/libs/shims.js', 'test/**/*.js'],
options: {
// options here to override JSHint defaults
globals: {
jQuery: true,
console: true,
module: true,
document: true
},
jshintrc: true
}
},
watch: {
scripts: {
files: ['<%= app.src %>/**/*.js'],
tasks: ['docker'],
options: {
spawn: false
}
}
watch: { // this does automatic buidling while you work
files: ['<%= jshint.files %>'],
tasks: ['default']
},
karma: {
unit: {
configFile: '<%= app.test %>/karma.conf.js',
autoWatch: true
file_dependencies: { // file dependency algorithm, concat files based on jsdoc
options: {
extractDefinesRegex: /(?:@class|@interface)\s*([\w.]*)/g,
extractRequiresRegex: /@requires\s*([\w.]*)/g
},
src_target: {
src: ['gamee/src/*.js']
}
},
jsdoc: {
docs: {
src: ['gamee/src/*.js', 'gamee/libs/*.js'],
options: {
destination: 'gamee/docs',
configure: 'jsdoc.conf.json',
// template: './node_modules/minami',
template: './docgen',
outputSourceFiles: false,
},
},
}
});
grunt.registerTask('default', [
'jshint',
'concat:source',
'concat:devel',
'uglify',
'concat:mins',
'docker'
]);
};
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
// will use different testing tool
// grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-file-dependencies');
grunt.loadNpmTasks('grunt-jsdoc');
grunt.registerTask('test', ['jshint']);
// TODO doesn't know ES6
// grunt.registerTask('default', ['jshint', 'concat', 'uglify']);
grunt.registerTask('default', ['jshint', 'file_dependencies', 'concat', 'uglify']);
};
View
@@ -1,36 +1,28 @@
Gamee JS
========
Gamee JS 2
==========
Javascript library for [Gamee].
Javascript framework for [Gamee].
Documentation
-------------
Annoted source code: https://gameeapp.github.io/gamee-js/doc/src/gamee.js.html
[Documentation on github wiki]
Easy intro: https://gameeapp.github.io/gamee-js/integration.en.html
Easy intro (in Slovak): https://gameeapp.github.io/gamee-js/integration.sk.html
Project structure
Previous versions
-----------------
* __dist/__ source files ready to be included in your game
* __gamee.all.devel.js__ non minified with dependencies
* __gamee.all.min.js__ minified with dependencies
* __gamee.js__ non minified without dependencies
* __gamee.min.js__ minified
* __src/__ source files
* __doc__/ documentation
[Gamee]:http://www.gameeapp.com/
Gamee JS - first version
Install & build
---------------
Building
--------
```
git clone git@github.com:gameeapp/gamee-js.git
```
```bash
npm install
bower install
grunt
grunt
grunt watch (Framework development)
```
[Gamee]:http://www.gameeapp.com/
[Documentation on github wiki]:https://github.com/gameeapp/gamee-js/wiki
View
@@ -1,8 +1,8 @@
{
"name": "gamee-js",
"version": "0.1.0",
"version": "2.0.0",
"description": "Gamee JS components",
"main": "dist/gamee.js",
"main": "",
"ignore": [
"**/.*",
"node_modules",
Oops, something went wrong.

0 comments on commit 15655c7

Please sign in to comment.