diff options
author | Rob Loach <robloach@gmail.com> | 2014-11-03 00:20:08 -0800 |
---|---|---|
committer | Rob Loach <robloach@gmail.com> | 2014-11-03 00:20:08 -0800 |
commit | ad87ba262b4ae6b64e31b10ef9bced5168d8e467 (patch) | |
tree | d9e3e73082c096c9755de0ba9158e2a166e01f31 | |
parent | 31d7ad9ddaf71321ca44ddc27880e5f0a2653f6c (diff) | |
download | jquery-once-ad87ba262b4ae6b64e31b10ef9bced5168d8e467.zip jquery-once-ad87ba262b4ae6b64e31b10ef9bced5168d8e467.tar.gz jquery-once-ad87ba262b4ae6b64e31b10ef9bced5168d8e467.tar.bz2 |
Add CoffeeScript Linting
-rw-r--r-- | Gruntfile.js | 4 | ||||
-rw-r--r-- | example/index.html | 2 | ||||
-rw-r--r-- | jquery.once.js | 2 | ||||
-rw-r--r-- | jquery.once.js.map | 10 | ||||
-rw-r--r-- | jquery.once.litcoffee | 8 | ||||
-rw-r--r-- | package.json | 12 |
6 files changed, 26 insertions, 12 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 740293f..5a17749 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -78,11 +78,11 @@ module.exports = function(grunt) { } }); - grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-qunit'); grunt.loadNpmTasks('grunt-contrib-uglify'); + grunt.loadNpmTasks('grunt-contrib-coffee'); - grunt.registerTask('default', ['jshint', 'qunit']); + grunt.registerTask('default', ['qunit']); grunt.registerTask('release', ['default', 'uglify']); }; diff --git a/example/index.html b/example/index.html index 4b73760..6f9cfe9 100644 --- a/example/index.html +++ b/example/index.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html> <head> - <script src="http://code.jquery.com/jquery-2.1.1.min.js"></script> + <script src="../node_modules/jquery/dist/jquery.js"></script> <script src="../jquery.once.js"></script> </head> <body> diff --git a/jquery.once.js b/jquery.once.js index 593010e..5deed57 100644 --- a/jquery.once.js +++ b/jquery.once.js @@ -31,3 +31,5 @@ }); }).call(this); + +//# sourceMappingURL=jquery.once.js.map diff --git a/jquery.once.js.map b/jquery.once.js.map new file mode 100644 index 0000000..31f3ae9 --- /dev/null +++ b/jquery.once.js.map @@ -0,0 +1,10 @@ +{ + "version": 3, + "file": "jquery.once.js", + "sourceRoot": "", + "sources": [ + "jquery.once.litcoffee" + ], + "names": [], + "mappings": ";AAaI;AAAA,EAAA,CAAC,SAAC,OAAD,GAAA;AACC,IAAA,IAAG,MAAA,CAAA,OAAA,KAAkB,QAArB;AACE,MAAA,OAAA,CAAQ,OAAA,CAAQ,QAAR,CAAR,CAAA,CADF;KAAA,MAEK,IAAG,MAAA,CAAA,MAAA,KAAiB,UAAjB,IAAgC,MAAM,CAAC,GAA1C;AACH,MAAA,MAAA,CAAO,CAAC,QAAD,CAAP,EAAmB,OAAnB,CAAA,CADG;KAAA,MAAA;AAGH,MAAA,OAAA,CAAQ,MAAR,CAAA,CAHG;KAHN;EAAA,CAAD,CAAA,CAQE,SAAC,CAAD,GAAA;AACA,QAAA,IAAA;AAAA,IAAA,IAAA,GAAO,CAAP,CAAA;AAAA,IA4BA,CAAC,CAAC,EAAE,CAAC,IAAL,GAAY,SAAC,EAAD,GAAA;AAGV,UAAA,IAAA;AAAA,MAAA,IAAA,GAAO,cAAA,GAAiB,CAAC,EAAA,IAAM,EAAA,IAAP,CAAxB,CAAA;aAGA,IAAC,CAAA,MAAD,CAAQ,SAAA,GAAA;eACN,CAAA,CAAE,IAAF,CAAO,CAAC,IAAR,CAAa,IAAb,CAAA,KAAwB,KADlB;MAAA,CAAR,CAEA,CAAC,IAFD,CAEM,IAFN,EAEY,IAFZ,EANU;IAAA,CA5BZ,CAAA;AAAA,IAkEA,CAAC,CAAC,EAAE,CAAC,UAAL,GAAkB,SAAC,EAAD,GAAA;aAEhB,IAAC,CAAA,QAAD,CAAU,EAAV,CAAa,CAAC,UAAd,CAAyB,cAAA,GAAiB,EAA1C,EAFgB;IAAA,CAlElB,CAAA;AAAA,IAiGA,CAAC,CAAC,EAAE,CAAC,QAAL,GAAgB,SAAC,EAAD,GAAA;AAEd,UAAA,IAAA;AAAA,MAAA,IAAA,GAAO,cAAA,GAAiB,EAAxB,CAAA;aACA,IAAC,CAAA,MAAD,CAAQ,SAAA,GAAA;eACN,CAAA,CAAE,IAAF,CAAO,CAAC,IAAR,CAAa,IAAb,CAAA,KAAsB,KADhB;MAAA,CAAR,EAHc;IAAA,CAjGhB,CADA;EAAA,CARF,CAAA,CAAA;AAAA" +}
\ No newline at end of file diff --git a/jquery.once.litcoffee b/jquery.once.litcoffee index 32c7e04..369b392 100644 --- a/jquery.once.litcoffee +++ b/jquery.once.litcoffee @@ -65,10 +65,10 @@ Removes the once data from the given elements, based on the given ID. #### Parameters -* `id` *string* A required string representing the name of the data id which should be used -when filtering the elements. This only filters elements that have already -been processed by the once function. The id should be the same id that -was originally passed to the once() function. +* `id` *string* A required string representing the name of the data id which +should be used when filtering the elements. This only filters elements that +have already been processed by the once function. The id should be the same id +that was originally passed to the once() function. #### Returns diff --git a/package.json b/package.json index 29e73b1..b43b57d 100644 --- a/package.json +++ b/package.json @@ -49,16 +49,18 @@ "jquery": "~2.1.1" }, "devDependencies": { + "coffee-script": "~1.8.0", + "coffeelint": "~1.6.1", "grunt": "~0.4.5", - "grunt-contrib-jshint": "~0.10.0", + "grunt-contrib-coffee": "~0.12.0", "grunt-contrib-qunit": "~0.5.2", "grunt-contrib-uglify": "~0.6.0", "projectz": "~0.3.15" }, "scripts": { - "test": "grunt jshint qunit", + "compile": "./node_modules/.bin/coffee -m -c *.litcoffee", + "test": "./node_modules/.bin/coffeelint *.litcoffee && grunt qunit", "projectz": "node_modules/.bin/projectz compile", - "release": "grunt release", - "jsdoc": "npm install jsdoc && node_modules/.bin/jsdoc jquery.once.js" + "release": "npm run-script compile && grunt release" } -}
\ No newline at end of file +} |