summaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorRob Loach <robloach@gmail.com>2014-11-03 00:42:50 -0800
committerRob Loach <robloach@gmail.com>2014-11-03 00:42:50 -0800
commit43af89bfb0d71acf447ab3c21b552facb461da6a (patch)
tree638a10e1ecaeb9d143a861255a5667c4b9d95da7 /Gruntfile.js
parentad87ba262b4ae6b64e31b10ef9bced5168d8e467 (diff)
parent2dde6eb29fa82af61ddba108da42c79cab60f100 (diff)
downloadjquery-once-43af89bfb0d71acf447ab3c21b552facb461da6a.zip
jquery-once-43af89bfb0d71acf447ab3c21b552facb461da6a.tar.gz
jquery-once-43af89bfb0d71acf447ab3c21b552facb461da6a.tar.bz2
Update CoffeeScript source
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js65
1 files changed, 9 insertions, 56 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 5a17749..86df8fb 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -1,7 +1,6 @@
/*jshint node:true*/
module.exports = function(grunt) {
- "use strict";
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
@@ -15,72 +14,26 @@ module.exports = function(grunt) {
},
all: {
files: {
- 'jquery.once.min.js': ['jquery.once.js']
+ 'jquery.once.min.js': [
+ 'jquery.once.js'
+ ]
}
}
},
qunit: {
- files: ['test/index.html']
- },
- jshint: {
- options: {
- curly: true,
- eqeqeq: true,
- immed: true,
- latedef: true,
- newcap: true,
- noarg: true,
- sub: true,
- undef: true,
- eqnull: true,
- browser: true,
- globals: {
- jQuery: true,
- $: true,
- console: true,
- require: true,
- define: true
- }
- },
files: [
+ 'test/index.html'
+ ]
+ },
+ eslint: {
+ target: [
'jquery.once.js'
- ],
- test: {
- options: {
- globals: {
- jQuery: true,
- $: true,
- QUnit: true,
- module: true,
- test: true,
- start: true,
- stop: true,
- expect: true,
- ok: true,
- equal: true,
- deepEqual: true,
- strictEqual: true
- }
- },
- files: {
- src: [
- 'test/test.js'
- ]
- }
- },
- grunt: {
- files: {
- src: [
- 'Gruntfile.js'
- ]
- }
- }
+ ]
}
});
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-uglify');
- grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.registerTask('default', ['qunit']);
grunt.registerTask('release', ['default', 'uglify']);