Skip to content

Commit

Permalink
v0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-martin committed Nov 19, 2013
1 parent da2f428 commit edb0138
Show file tree
Hide file tree
Showing 8 changed files with 217 additions and 205 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
.idea
node_modules
atlassian-ide-plugin.xml
116 changes: 49 additions & 67 deletions .jshintrc
@@ -1,74 +1,56 @@
{
"predef": [
"jasmine",
"spyOn",
"it",
"console",
"describe",
"expect",
"beforeEach",
"afterEach",
"waits",
"waitsFor",
"runs",
"$",
"jQuery",
"_",
"require",
"define",
"sinon",
"thumbs"
"define"
],

"node" : true,
"browser" : true,
"devel" : true,
"jquery" : true,
"node": true,
"browser": true,
"devel": true,
"jquery": true,

"bitwise" : false,
"camelcase" : true,
"curly" : true,
"eqeqeq" : true,
"forin" : false,
"immed" : true,
"indent" : 4,
"latedef" : true,
"newcap" : true,
"noarg" : true,
"noempty" : true,
"nonew" : false,
"plusplus" : false,
"quotmark" : false,
"regexp" : false,
"undef" : true,
"unused" : false,
"strict" : false,
"trailing" : true,
"white" : false,
"bitwise": false,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"forin": false,
"immed": true,
"indent": 4,
"latedef": true,
"newcap": true,
"noarg": true,
"noempty": true,
"nonew": false,
"plusplus": false,
"quotmark": false,
"regexp": false,
"undef": true,
"unused": false,
"strict": false,
"trailing": true,
"white": false,

"asi" : false,
"boss" : false,
"debug" : false,
"eqnull" : true,
"es5" : true,
"esnext" : true,
"evil" : false,
"expr" : true,
"funcscope" : false,
"globalstrict" : false,
"iterator" : false,
"lastsemic" : false,
"laxbreak" : false,
"laxcomma" : false,
"loopfunc" : false,
"multistr" : false,
"onecase" : false,
"proto" : false,
"regexdash" : false,
"scripturl" : false,
"smarttabs" : false,
"shadow" : false,
"sub" : true,
"supernew" : true,
"validthis" : false
"asi": false,
"boss": true,
"debug": false,
"eqnull": true,
"esnext": true,
"evil": false,
"expr": true,
"funcscope": false,
"globalstrict": false,
"iterator": false,
"lastsemic": false,
"laxbreak": false,
"laxcomma": false,
"loopfunc": false,
"multistr": false,
"onecase": false,
"proto": false,
"regexdash": false,
"scripturl": false,
"smarttabs": false,
"shadow": false,
"sub": true,
"supernew": true,
"validthis": false
}
61 changes: 61 additions & 0 deletions Gruntfile.js
@@ -0,0 +1,61 @@
/*global module:false*/
module.exports = function (grunt) {
var fs = require('fs');

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
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 %>;' +
' Licensed <%= pkg.license %> */'
},

jshint: {
src: ["./index.js"],
options: {
jshintrc: '.jshintrc'
}
},

lint: {
files: [
'index.js'
]
},

it: {
all: {
src: 'test/**/*.test.js',
options: {
reporter: 'dot'
}
}
},
uglify: {
options: {
banner: '/*! <%= 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 %>;' +
' Licensed <%= pkg.license %> */\n',
report: 'min'
},
min: {
files: {
'<%= pkg.name %>.min.js': ['index.js']
}
}
},

});

// Default task.
grunt.registerTask('default', ['jshint', 'it:all', 'uglify:min']);
grunt.loadNpmTasks('grunt-it');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');

};
56 changes: 0 additions & 56 deletions grunt.js

This file was deleted.

0 comments on commit edb0138

Please sign in to comment.