Skip to content

Commit

Permalink
Merge branch 'testing' into release
Browse files Browse the repository at this point in the history
Conflicts:
	dist/crafty-min.js
	dist/crafty.js
	package.json
  • Loading branch information
kevinsimper committed Nov 14, 2014
2 parents d58ea18 + 059ec21 commit b74c13c
Show file tree
Hide file tree
Showing 55 changed files with 6,743 additions and 5,465 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ node_js:
- "0.10"
before_script:
- npm install -g grunt-cli
cache:
directories:
- node_modules
21 changes: 9 additions & 12 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,14 @@ var fs = require('fs');

module.exports = function (grunt) {
var pkg = grunt.file.readJSON('package.json');
var fileList = pkg.files, version = pkg.version;
var version = pkg.version;
var banner = '/**\n' +
' * <%= pkg.name %> <%= pkg.version %>\n' +
' * <%= pkg.author.url %>\n *\n' +
' * Copyright <%= grunt.template.today("yyyy") %>, <%= pkg.author.name %>\n' +
' * Dual licensed under the MIT or GPL licenses.\n' +
' */\n\n';

var getFiles = function (){
return fileList;
};

var docGen = function(){
done = this.async();
buildDir = "build/api/";
Expand All @@ -24,7 +20,8 @@ module.exports = function (grunt) {
done();
};
var md = require("./build/api-gen");
md.document(getFiles(), buildDir, "build/template.html", version, callback);
md.document(grunt.file.expand('src/*.js'),
buildDir, "build/template.html", version, callback);
};

// Project configuration.
Expand All @@ -47,12 +44,12 @@ module.exports = function (grunt) {
browserify: {
dist: {
files: {
'crafty.js': ['src/*.js']
'crafty.js': ['src/crafty.js']
}
},
debug: {
files: {
'crafty.js': ['src/*.js']
'crafty.js': ['src/crafty.js']
},
options: {
debug: true
Expand All @@ -76,23 +73,23 @@ module.exports = function (grunt) {
},

jshint: {
files: ['Gruntfile.js', 'src/**/*.js', 'tests/*.js'],
files: ['Gruntfile.js', 'src/**/*.js', 'tests/**/*.js'],
options: {
trailing: true,
ignores: ['tests/lib/*.js'],
globals: {
}
}
},

qunit: {
all: [
'tests/index.html',
'tests/animation/animation.html'
'tests/index.html'
]
},

jsvalidate: {
files: ['crafty.js', 'tests/*.js']
files: ['crafty.js', 'tests/**/*.js']
},

connect: {
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Crafty JS
# Crafty JS [![Build Status](https://travis-ci.org/craftyjs/Crafty.png?branch=develop)](https://travis-ci.org/craftyjs/Crafty)


Crafty is a JavaScript game library that can help you create games in a structured way…

Expand Down
17 changes: 12 additions & 5 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
{
"name": "crafty",
"main": "crafty.js",
"version": "0.6.2",
"repository": {
"type": "git",
"url": "git://github.com/craftyjs/Crafty.git"
}
"main": "dist/crafty.js",
"license": "MIT",
"ignore": [
"**/.*",
"build",
"playgrounds",
"test",
"*.md",
"changelog.txt",
"Gruntfile.js",
"package.json"
]
}
10 changes: 5 additions & 5 deletions dist/crafty-min.js

Large diffs are not rendered by default.

Loading

0 comments on commit b74c13c

Please sign in to comment.