Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieua committed Dec 29, 2013
0 parents commit bd27b9b
Show file tree
Hide file tree
Showing 19 changed files with 13,290 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
@@ -0,0 +1,4 @@
.DS_Store
.grunt/
node_modules/
_SpecRunner.html
3 changes: 3 additions & 0 deletions .travis.yml
@@ -0,0 +1,3 @@
language: node_js
node_js:
- 0.8
93 changes: 93 additions & 0 deletions Gruntfile.js
@@ -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.

Copy link
@attilaolah

attilaolah Jan 31, 2014

Collaborator

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.

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']);
};
7 changes: 7 additions & 0 deletions LICENSE-MIT
@@ -0,0 +1,7 @@
Copyright &copy; 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.
31 changes: 31 additions & 0 deletions README.example.md
@@ -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>)
22 changes: 22 additions & 0 deletions README.md
@@ -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)

0 comments on commit bd27b9b

Please sign in to comment.