Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsz committed Jan 22, 2018
1 parent 5d570bc commit edde111
Show file tree
Hide file tree
Showing 5 changed files with 447 additions and 403 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [1.1.0] - 2017-08-07
### Changed
- Updated depedencies

## [1.0.0] - 2017-08-07
### Changed
- Fixed jQuery module loading to prevent webpack from requiring jQuery during build
Expand All @@ -17,6 +21,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- ```debug``` configuration option [\#1](https://github.com/kasparsz/jquery-app/issues/1)


[1.0.0]: https://github.com/kasparsz/jquery-app/compare/v1.0.0...v1.1.0
[0.4.0]: https://github.com/kasparsz/jquery-app/compare/v0.4.0...v1.0.0
[0.4.0]: https://github.com/kasparsz/jquery-app/compare/v0.3.1...v0.4.0
[0.3.1]: https://github.com/kasparsz/jquery-app/compare/v0.2.2...v0.3.1
2 changes: 1 addition & 1 deletion dist/jquery-app.min.js

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

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jquery-app",
"description": "Declarative jQuery plugin initialization on DOM elements",
"version": "1.0.0",
"version": "1.1.0",
"homepage": "https://github.com/kasparsz/jquery-app",
"repository": "kasparsz/jquery-app",
"bugs": {
Expand All @@ -27,10 +27,10 @@
"plugin"
],
"devDependencies": {
"buble": "^0.8.4",
"jquery": "^2.2.4",
"jsdom": "^9.1.0",
"mocha": "^2.4.5",
"uglify-js": "^2.7.3"
"buble": "^0.18.0",
"jquery": "^3.3.1",
"jsdom": "^11.6.0",
"mocha": "^5.0.0",
"uglify-js": "^3.3.8"
}
}
27 changes: 16 additions & 11 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,28 @@ var assert = require('assert');
var fs = require('fs');
var jsdom = require('jsdom');

var jQuery = fs.readFileSync('./node_modules/jquery/dist/jquery.js', "utf-8");
var jQueryApp = fs.readFileSync('./dist/jquery-app.js', "utf-8");
var jQuery = fs.readFileSync('./node_modules/jquery/dist/jquery.js', 'utf-8');
var jQueryApp = fs.readFileSync('./dist/jquery-app.js', 'utf-8');

function createTestEnv(fn) {
return function (done) {
jsdom.env('<html><body></body></html>', {
src: [jQuery, jQueryApp],
done: function (err, window) {
if (err) throw err; // everything should fail

fn(done, window.$);
window.close(); // clean up memory
}
});
var dom = new jsdom.JSDOM('<html><body></body></html>', {'runScripts': 'dangerously'});
var window = dom.window;

var script = window.document.createElement('script');
script.textContent = jQuery;
window.document.body.appendChild(script);

var script = window.document.createElement('script');
script.textContent = jQueryApp;
window.document.body.appendChild(script);

fn(done, window.$);
window.close(); // clean up memory
};
}


describe('jquery-app', function(done) {

it('$.fn.app plugin exists', createTestEnv(function (done, $) {
Expand Down
Loading

0 comments on commit edde111

Please sign in to comment.