Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

Commit

Permalink
Add new entry file. Now we expose window.should as should global func…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
btd committed Dec 8, 2015
1 parent aacf9fc commit 23e9971
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions browser-entry.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
window.Should = require('./index');

Object.defineProperty(window, 'should', {
enumerable: false,
configurable: true,
value: window.Should
});
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var banner = [

gulp.task('script', function() {
var bundleStream = browserify({
entries: pkg.main,
entries: './browser-entry',
builtins: null,
insertGlobals: false,
detectGlobals: false,
Expand Down

0 comments on commit 23e9971

Please sign in to comment.