Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

Commit

Permalink
Fixed factory/root/UMD definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Ferdinandi committed Jun 19, 2014
1 parent 92ce62c commit 583a75b
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 12 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ Gulp Boilerplate is licensed under the [MIT License](http://gomakethings.com/mit

## Changelog

* v0.0.5 - June 19, 2014
* Fixed factory/root/UMD definition.
* v0.0.4 - June 16, 2014
* Added ability to concatenate `src/js` subdirectories.
* v0.0.3 - June 15, 2014
Expand Down
2 changes: 1 addition & 1 deletion dist/css/myplugin.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* gulp-boilerplate v0.0.4
* gulp-boilerplate v0.0.5
* My Gulp.js boilerplate for creating new web projects, by Chris Ferdinandi.
* http://github.com/cferdinandi/Plugin
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/** gulp-boilerplate v0.0.4, by Chris Ferdinandi | http://github.com/cferdinandi/Plugin | Licensed under MIT: http://gomakethings.com/mit/ */
/** gulp-boilerplate v0.0.5, by Chris Ferdinandi | http://github.com/cferdinandi/Plugin | Licensed under MIT: http://gomakethings.com/mit/ */
8 changes: 4 additions & 4 deletions dist/js/myplugin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* gulp-boilerplate v0.0.4
* gulp-boilerplate v0.0.5
* My Gulp.js boilerplate for creating new web projects, by Chris Ferdinandi.
* http://github.com/cferdinandi/Plugin
*
Expand All @@ -9,11 +9,11 @@

(function (root, factory) {
if ( typeof define === 'function' && define.amd ) {
define(factory);
define('MyPlugin', factory(root));
} else if ( typeof exports === 'object' ) {
module.exports = factory;
module.exports = factory(root);
} else {
root.MyPlugin = factory(root); // @todo Update to plugin name
root.MyPlugin = factory(root);
}
})(this, function (root) {

Expand Down
2 changes: 0 additions & 2 deletions dist/js/myplugin.min.1402961540489.js

This file was deleted.

2 changes: 2 additions & 0 deletions dist/js/myplugin.min.1403190469754.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,6 +1,6 @@
{
"name": "gulp-boilerplate",
"version": "0.0.4",
"version": "0.0.5",
"description": "My Gulp.js boilerplate for creating new web projects",
"author": {
"name": "Chris Ferdinandi",
Expand Down
6 changes: 3 additions & 3 deletions src/js/myplugin.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
(function (root, factory) {
if ( typeof define === 'function' && define.amd ) {
define(factory);
define('MyPlugin', factory(root));
} else if ( typeof exports === 'object' ) {
module.exports = factory;
module.exports = factory(root);
} else {
root.MyPlugin = factory(root); // @todo Update to plugin name
root.MyPlugin = factory(root);
}
})(this, function (root) {

Expand Down

0 comments on commit 583a75b

Please sign in to comment.