Skip to content

Commit 670f26f

Browse files
committed
setup qunit on travis-ci
1 parent f40d76b commit 670f26f

15 files changed

+192
-8648
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
language: node_js
2+
node_js:
3+
- "0.10"
4+
- "0.8"

Gruntfile.coffee

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module.exports = (grunt) ->
2+
grunt.initConfig({
3+
pkg: grunt.file.readJSON('package.json'),
4+
coffeelint: {
5+
app: ['*.coffee'],
6+
tests: {
7+
files: {
8+
src: ['test/*.coffee']
9+
},
10+
options: {
11+
max_line_length: {
12+
value: 120
13+
}
14+
}
15+
}
16+
},
17+
qunit: {
18+
all: ['test/index.html']
19+
}
20+
})
21+
22+
grunt.loadNpmTasks('grunt-coffeelint')
23+
grunt.loadNpmTasks('grunt-contrib-qunit')
24+
25+
grunt.registerTask('test', ['coffeelint', 'qunit'])
26+

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2013 Ben Cao
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
"Software"), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

config.json

Whitespace-only changes.

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<head>
44
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
55
<title>FC Tank - a coffeescript rewritten of classic 90 tank on Nintendo family computer</title>
6-
<script type="text/javascript" src="js/coffeescript.js"></script>
7-
<script type='text/javascript' src='js/jquery-2.0.0b1.js'></script>
6+
<script type="text/javascript" src="js/coffeescript-v1.6.2.min.js"></script>
7+
<script type='text/javascript' src='js/jquery-v1.9.1.min.js'></script>
88
<script type='text/javascript' src='js/lodash.min.js'></script>
99
<script type='text/javascript' src="js/ocanvas-2.3.1.min.js"></script>
1010
<style type='text/css'>

js/coffeescript-v1.6.2.min.js

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/coffeescript.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)