Skip to content

Commit

Permalink
Use 'standalone' option in browserify to generate UMD bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał Sajnóg committed Jun 9, 2016
1 parent c856529 commit cdcbaf7
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/aos.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/aos.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions gulp/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ var reload = browserSync.reload;

var browserifyOptions = {
entries: ['./src/js/aos.js'],
standalone: 'AOS',
debug: true
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"devDependencies": {
"browser-sync": "~2.0.1",
"browserify": "^11.2.0",
"browserify": "^13.0.1",
"gulp": "^3.8.11",
"gulp-autoprefixer": "^2.3.1",
"gulp-concat": "~2.4.3",
Expand Down
2 changes: 1 addition & 1 deletion src/js/aos.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,6 @@ var replaceDataAttr = require('./helpers/replaceDataAttr');
refresh: refresh
};

window.AOS = AOS;
module.exports = AOS;

})(window, document);
3 changes: 1 addition & 2 deletions test/aos.spec.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
require('jasmine-jquery');
require('../src/js/aos');

var $ = require('jquery');
var AOS = window.AOS;
var AOS = require('../src/js/aos');

jasmine.getFixtures().fixturesPath = 'base/test/fixtures';

Expand Down

0 comments on commit cdcbaf7

Please sign in to comment.