Skip to content

Commit

Permalink
0.5.3: Remove unneeded .id property.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanve committed Oct 6, 2013
1 parent c851a85 commit f94085b
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
20 changes: 14 additions & 6 deletions GruntFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@ module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
beforeconcat: ['src/', 'test/', 'GruntFile.js'],
afterconcat: ['<%= pkg.name %>.js'],
// gruntjs.com/configuring-tasks#globbing-patterns
// **/** matches in current and sub dirs
all: ['./'], // current dir and sub dirs
sub: ['*/'], // sub dirs
dir: ['*.js'], // current dir
src: ['src/'],
test: ['test/'],
grunt: ['GruntFile.js'],
build: ['<%= pkg.name %>.js'],
options: {
expr:true, sub:true, supernew:true, debug:true, node:true,
boss:true, devel:true, evil:true, laxcomma:true, eqnull:true,
undef:true, unused:true, browser:true, jquery:true, maxerr:10
ignores: ['**/**/node_modules/', '**/**/vendor/', '**/**.min.js'],
debug:true, expr:true, sub:true, boss:true, supernew:true, node:true,
undef:true, unused:true, devel:true, evil:true, laxcomma:true, eqnull:true,
browser:true, globals:{ender:true}, jquery:true, maxerr:10
}
},
concat: {
Expand Down Expand Up @@ -41,5 +49,5 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('default', ['jshint:beforeconcat', 'concat', 'jshint:afterconcat', 'uglify']);
grunt.registerTask('default', ['jshint:grunt', 'jshint:sub', 'concat', 'jshint:build', 'uglify']);
};
3 changes: 1 addition & 2 deletions cmon.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* cmon 0.5.2+201309031951
* cmon 0.5.3+201310060225
* https://github.com/ryanve/cmon
* MIT License 2013 Ryan Van Etten
*/
Expand All @@ -9,7 +9,6 @@
module['exports'] = make.call(root);
} else {
root[name] = make = make.call(root);
make['id'] = name;
root['require'] || make['claim']('require', make['require'], root);
root['provide'] || make['claim']('provide', make['provide'], root);
make['provide'](name, make);
Expand Down
4 changes: 2 additions & 2 deletions cmon.min.js

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "cmon",
"description": "CommonJS and ender-inspired require/provide with events",
"version": "0.5.2",
"version": "0.5.3",
"homepage": "https://github.com/ryanve/cmon",
"license": "MIT",
"author": "Ryan Van Etten",
"keywords": ["require", "common", "commonjs", "module", "browser", "ender"],
"main": "./cmon.js",
Expand Down
1 change: 0 additions & 1 deletion src/cmon.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
module['exports'] = make.call(root);
} else {
root[name] = make = make.call(root);
make['id'] = name;
root['require'] || make['claim']('require', make['require'], root);
root['provide'] || make['claim']('provide', make['provide'], root);
make['provide'](name, make);
Expand Down

0 comments on commit f94085b

Please sign in to comment.