Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bd27b9b
Showing
19 changed files
with
13,290 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.DS_Store | ||
.grunt/ | ||
node_modules/ | ||
_SpecRunner.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
language: node_js | ||
node_js: | ||
- 0.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
/*global module:false*/ | ||
module.exports = function(grunt) { | ||
// Project configuration. | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
uglify: { | ||
plugin: { | ||
files: [{ | ||
expand: true, | ||
cwd: 'js/', | ||
src: '*.js', | ||
dest: 'js/', | ||
ext: '.min.js' | ||
}], | ||
options: { | ||
banner : '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + | ||
'<%= grunt.template.today("yyyy-mm-dd") %>\n' + | ||
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' + | ||
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' + | ||
' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */' | ||
} | ||
} | ||
}, | ||
coffee : { | ||
plugin : { | ||
files: [{ | ||
expand: true, | ||
cwd: 'js/', | ||
src: '*.coffee', | ||
dest: 'js/', | ||
ext: '.js' | ||
}] | ||
}, | ||
specs : { | ||
files: [{ | ||
expand: true, | ||
cwd: 'spec/coffeescripts/', | ||
src: '*.coffee', | ||
dest: 'spec/javascripts/', | ||
ext: '.js' | ||
}] | ||
}, | ||
helpers : { | ||
files: [{ | ||
expand: true, | ||
cwd: 'spec/coffeescripts/helpers/', | ||
src: '*.coffee', | ||
dest: 'spec/javascripts/helpers/', | ||
ext: '.js' | ||
}] | ||
} | ||
}, | ||
jasmine : { | ||
src : ['js/libs/*.js', 'spec/javascripts/libs/*.js', 'js/*.js', '!js/*.min.js'], | ||
options : { | ||
specs : 'spec/javascripts/**/*.js', | ||
This comment has been minimized.
Sorry, something went wrong. |
||
helpers : 'spec/javascripts/helpers/**/*.js' | ||
} | ||
}, | ||
watch : { | ||
files: [ | ||
'js/*.coffee', | ||
'spec/coffeescripts/**/*.coffee' | ||
], | ||
tasks: ['coffee', 'growl:coffee', 'jasmine', 'growl:jasmine'] | ||
}, | ||
growl : { | ||
coffee : { | ||
title : 'CoffeeScript', | ||
message : 'Compiled successfully' | ||
}, | ||
jasmine : { | ||
title : 'Jasmine', | ||
message : 'Tests passed successfully' | ||
} | ||
} | ||
}); | ||
|
||
// Lib tasks. | ||
grunt.loadNpmTasks('grunt-growl'); | ||
grunt.loadNpmTasks('grunt-contrib-jasmine'); | ||
grunt.loadNpmTasks('grunt-contrib-coffee'); | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
|
||
// Default and Build tasks | ||
mainTasks = ['coffee', 'growl:coffee', 'jasmine', 'growl:jasmine'] | ||
grunt.registerTask('default', mainTasks); | ||
grunt.registerTask('build', mainTasks.concat(['uglify'])); | ||
|
||
// Travis CI task. | ||
grunt.registerTask('travis', ['coffee', 'jasmine']); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright © 2012 Matthieu Aussaguel | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# <pluginName> [![Build Status](https://secure.travis-ci.org/<github-username>/<pluginName>.png?branch=master)](http://travis-ci.org/<github-username>/<pluginName>) | ||
|
||
<description> | ||
|
||
## Version | ||
|
||
v0.1.0 | ||
|
||
## Website Url | ||
|
||
https://github.com/<github-username>/<pluginName> | ||
|
||
## Bug tracker | ||
|
||
If you find a bug, please raise it the [issue here](https://github.com/<github-username>/<pluginName>/issues) on Github! | ||
|
||
## Documenation | ||
|
||
- Basic usage | ||
|
||
```javascript | ||
$('#element').<pluginName>({ | ||
message: 'Hi' | ||
}); | ||
``` | ||
|
||
## Developer | ||
|
||
Developed by <name>, <website url> | ||
|
||
+ [Github Profile](http://github.com/<github-username>) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# [Jack In The Box](https://github.com/matthieua/jackInTheBox) [![Build Status](https://secure.travis-ci.org/matthieua/jackInTheBox.png?branch=master)](http://travis-ci.org/matthieua/jackInTheBox) | ||
|
||
Jack In The Box | ||
|
||
## Version | ||
|
||
v0.0.1 | ||
|
||
## Website Url | ||
|
||
- | ||
|
||
## Bug tracker | ||
|
||
If you find a bug, please raise it the [issue here](https://github.com/matthieua/jackInTheBox/issues) on Github! | ||
|
||
## Developer | ||
|
||
Developed by Matthieu Aussaguel, [mynameismatthieu.com](http://mynameismatthieu.com) | ||
|
||
+ [@mattaussaguel](http://twitter.com/mattaussaguel) | ||
+ [Github Profile](http://github.com/matthieua) |
Oops, something went wrong.
This causes
spec/javascripts/libs/jasmine-jquery.js
to be pulled in and executed as specs, which is what has been causing the weird warnings in Travis CI.This should be mare strict, or the
jasmine-jquery.js
should be moved one level up so it is not caught by this expression.