Skip to content

Commit

Permalink
Better AMD definition; fixed copyright date
Browse files Browse the repository at this point in the history
  • Loading branch information
patik committed Mar 20, 2015
1 parent c34858e commit c4fa5ee
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ module.exports = function(grunt) {
' * @version <%= pkg.version %>\n' +
' * @date <%= grunt.template.today("yyyy-mm-dd") %>\n' +
' * @copyright <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>\n' +
' * <%= pkg.homepage %>\n' +
' * @see <%= pkg.homepage %>\n' +
' */\n'
},
build: {
src: '<%= pkg.name %>.js',
dest: '<%= pkg.name %>.min.js'
src: '<%= pkg.main %>.js',
dest: '<%= pkg.main %>.min.js'
}
},
jshint: {
Expand Down Expand Up @@ -49,7 +49,7 @@ module.exports = function(grunt) {
grunt.registerTask('default', ['jshint', 'uglify', 'qunit']);

// Development
grunt.registerTask('dev', ['default', 'watch']);
grunt.registerTask('build', ['default', 'watch']);

// Testing
grunt.registerTask('test', ['qunit']);
Expand Down
12 changes: 6 additions & 6 deletions kind.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/** @description Precise type-checker for JavaScript
* @version 1.0.3
* @date 2015-02-28
* @copyright 2014
* https://github.com/patik/kind
* @version 1.0.4
* @date 2015-03-20
* @copyright 2015
* @see https://github.com/patik/kind
*/

/*global define: true */
(function (name, definition) {
if (typeof define === "function" && define.amd) {
define(definition);
if (typeof define === 'function' && define.amd) {
define([], definition);
}
// Fall back to a global variable
else {
Expand Down
8 changes: 4 additions & 4 deletions kind.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kindjs",
"description": "Precise type-checker for JavaScript",
"version": "1.0.3",
"version": "1.0.4",
"main": "kind",
"author": "Craig Patik <[email protected]> (http://patik.com)",
"devDependencies": {
Expand Down

0 comments on commit c4fa5ee

Please sign in to comment.