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

Commit 99f37ff

Browse files
author
Chris Ferdinandi
committed
Merge pull request #14 from cferdinandi/development
Fixed CommonJS bug
2 parents 3fa7081 + 08b299c commit 99f37ff

13 files changed

+41
-35
lines changed

README.md

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,17 @@ Add your files to the appropriate `src` subdirectories. Gulp will process and an
4545
```
4646
gulp-boilerplate/
4747
|—— dist/
48-
| |—— js/
49-
| | |—— myplugin.js
50-
| | |—— myplugin.min.js
5148
| |—— css/
5249
| | |—— myplugin.css
5350
| | |—— myplugin.min.css
54-
| |—— static/
55-
| | |—— # static assets
51+
| |—— js/
52+
| | |—— bind-polyfill.js
53+
| | |—— bind-polyfill.min.js
54+
| | |—— classList.js
55+
| | |—— classList.min.js
56+
| | |—— myplugin.js
57+
| | |—— myplugin.min.js
58+
| |—— # static assets
5659
|—— src/
5760
| |—— js/
5861
| | |—— bind-polyfill.js
@@ -92,22 +95,21 @@ Inside `gulpfile.js` you'll see a variable named `paths`. Adjust the paths to su
9295

9396
```js
9497
var paths = {
95-
output : 'dist/',
96-
temp: 'src/temp/',
97-
scripts : {
98-
input : [ 'src/js/*' ],
99-
output : 'dist/js/'
100-
},
101-
styles : {
102-
input : 'src/sass/**/*.scss',
103-
output : 'dist/css/'
104-
},
105-
static : 'src/static/**',
106-
test : {
107-
spec : [ 'test/spec/**/*.js' ],
108-
coverage: 'test/coverage/',
109-
results: 'test/results/'
110-
}
98+
output : 'dist/',
99+
scripts : {
100+
input : [ 'src/js/*' ],
101+
output : 'dist/js/'
102+
},
103+
styles : {
104+
input : 'src/sass/**/*.scss',
105+
output : 'dist/css/'
106+
},
107+
static : 'src/static/**',
108+
test : {
109+
spec : [ 'test/spec/**/*.js' ],
110+
coverage: 'test/coverage/',
111+
results: 'test/results/'
112+
}
111113
};
112114
```
113115

@@ -129,6 +131,9 @@ Gulp Boilerplate is licensed under the [MIT License](http://gomakethings.com/mit
129131

130132
Gulp Boilerplate uses [semantic versioning](http://semver.org/).
131133

134+
* v1.0.2 - October 2, 2014
135+
* Added CommonJS bug fix.
136+
* Updated readme.md to reflect new file structure.
132137
* v1.0.1 - September 29, 2014
133138
* Fixed JS concatenation bug.
134139
* v1.0.0 - August 31, 2014

dist/css/myplugin.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gulp-boilerplate v1.0.1
2+
* gulp-boilerplate v1.0.2
33
* My Gulp.js boilerplate for creating new web projects, by Chris Ferdinandi.
44
* http://github.com/cferdinandi/Plugin
55
*

dist/css/myplugin.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/myplugin.css.min.map

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
/** gulp-boilerplate v1.0.1, by Chris Ferdinandi | http://github.com/cferdinandi/Plugin | Licensed under MIT: http://gomakethings.com/mit/ */
1+
/** gulp-boilerplate v1.0.2, by Chris Ferdinandi | http://github.com/cferdinandi/Plugin | Licensed under MIT: http://gomakethings.com/mit/ */
22
{"version":3,"mappings":"","sources":[],"names":[],"file":"myplugin.css"}

dist/css/myplugin.min.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/** gulp-boilerplate v1.0.1, by Chris Ferdinandi | http://github.com/cferdinandi/Plugin | Licensed under MIT: http://gomakethings.com/mit/ */
1+
/** gulp-boilerplate v1.0.2, by Chris Ferdinandi | http://github.com/cferdinandi/Plugin | Licensed under MIT: http://gomakethings.com/mit/ */

dist/js/bind-polyfill.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gulp-boilerplate v1.0.1
2+
* gulp-boilerplate v1.0.2
33
* My Gulp.js boilerplate for creating new web projects, by Chris Ferdinandi.
44
* http://github.com/cferdinandi/Plugin
55
*

dist/js/bind-polyfill.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/classList.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gulp-boilerplate v1.0.1
2+
* gulp-boilerplate v1.0.2
33
* My Gulp.js boilerplate for creating new web projects, by Chris Ferdinandi.
44
* http://github.com/cferdinandi/Plugin
55
*

dist/js/classList.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/myplugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* gulp-boilerplate v1.0.1
2+
* gulp-boilerplate v1.0.2
33
* My Gulp.js boilerplate for creating new web projects, by Chris Ferdinandi.
44
* http://github.com/cferdinandi/Plugin
55
*
@@ -15,7 +15,7 @@
1515
} else {
1616
root.MyPlugin = factory(root);
1717
}
18-
})(this, function (root) {
18+
})(window || this, function (root) {
1919

2020
'use strict';
2121

dist/js/myplugin.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "gulp-boilerplate",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "My Gulp.js boilerplate for creating new web projects",
5+
"main": "./dist",
56
"author": {
67
"name": "Chris Ferdinandi",
78
"url": "http://gomakethings.com"

src/js/myplugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
} else {
77
root.MyPlugin = factory(root);
88
}
9-
})(this, function (root) {
9+
})(window || this, function (root) {
1010

1111
'use strict';
1212

0 commit comments

Comments
 (0)