@carpages/jquery-boiler
Advanced tools
Comparing version 0.4.0 to 0.5.0
module.exports = { | ||
extends: "carpages", | ||
extends: 'carpages/rules/dsp', | ||
rules: { | ||
"no-useless-call": "off" | ||
'no-useless-call': 'off' | ||
} | ||
}; |
@@ -5,10 +5,3 @@ { | ||
"description": "A jQuery plugin to help you quickly write custom jQuery plugins.", | ||
"keywords": [ | ||
"jquery", | ||
"plugin", | ||
"boiler", | ||
"boilerplate", | ||
"jquery-plugin", | ||
"jquery-boilerplate" | ||
], | ||
"keywords": ["jquery", "plugin", "boiler", "boilerplate", "jquery-plugin", "jquery-boilerplate"], | ||
"homepage": "https://github.com/mattdrose/jquery-boiler", | ||
@@ -28,3 +21,3 @@ "authors": [ | ||
"dependencies": { | ||
"jquery": ">=1.6" | ||
"jquery": "3.x" | ||
}, | ||
@@ -31,0 +24,0 @@ "devDependencies": { |
@@ -25,7 +25,4 @@ 'use strict'; | ||
options: { | ||
inject: [ | ||
'./test/qunit.config.js', | ||
'./node_modules/grunt-contrib-qunit/phantomjs/bridge.js' | ||
], | ||
urls: [ 'http://localhost:9000/test/<%= pkg.name %>.test.html' ], | ||
inject: [ './test/qunit.config.js', './node_modules/grunt-contrib-qunit/chrome/bridge.js' ], | ||
urls: [ 'http://localhost:9000/test/jquery-boiler.test.html' ], | ||
page: { | ||
@@ -39,5 +36,2 @@ viewportSize: { width: 1280, height: 800 } | ||
eslint: { | ||
options: { | ||
config: '.eslintrc' | ||
}, | ||
target: [ 'jquery.boiler.js' ] | ||
@@ -53,59 +47,2 @@ }, | ||
} | ||
}, | ||
'saucelabs-qunit': { | ||
all: { | ||
options: { | ||
urls: [ 'http://localhost:9000/test/<%= pkg.name %>.test.html' ], | ||
build: process.env.TRAVIS_JOB_ID, | ||
testname: '<%= pkg.name %>', | ||
browsers: [ | ||
// Mobile | ||
{ | ||
browserName: 'iphone' | ||
}, | ||
{ | ||
browserName: 'android' | ||
}, | ||
// Safari | ||
{ | ||
browserName: 'safari', | ||
version: '10' | ||
}, | ||
{ | ||
browserName: 'safari', | ||
version: '9' | ||
}, | ||
{ | ||
browserName: 'safari', | ||
version: '8' | ||
}, | ||
// Firefox | ||
{ | ||
platform: 'mac 10.12', | ||
browserName: 'firefox', | ||
version: 'latest' | ||
}, | ||
// Chrome | ||
{ | ||
platform: 'mac 10.12', | ||
browserName: 'chrome', | ||
version: 'latest' | ||
}, | ||
// IE | ||
{ | ||
browserName: 'internet explorer', | ||
version: 'latest' | ||
}, | ||
{ | ||
browserName: 'internet explorer', | ||
version: '10' | ||
} | ||
] | ||
} | ||
} | ||
} | ||
@@ -118,5 +55,4 @@ }); | ||
// Testing Tasks | ||
grunt.registerTask( 'test:all', [ 'connect', 'qunit', 'saucelabs-qunit' ]); | ||
grunt.registerTask( 'test:all', [ 'connect', 'qunit' ]); | ||
grunt.registerTask( 'test:qunit', [ 'connect', 'qunit' ]); | ||
grunt.registerTask( 'test:saucelabs', [ 'connect', 'saucelabs-qunit' ]); | ||
@@ -123,0 +59,0 @@ // CI Task |
@@ -49,8 +49,3 @@ ( function( factory ) { | ||
// overwrite options with data and defaults | ||
plugin.settings = $.extend( | ||
{}, | ||
plugin.defaults, | ||
plugin.options, | ||
plugin.data | ||
); | ||
plugin.settings = $.extend({}, plugin.defaults, plugin.options, plugin.data ); | ||
@@ -57,0 +52,0 @@ // check for events |
{ | ||
"name": "@carpages/jquery-boiler", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "A jQuery plugin to help you quickly write custom jQuery plugins", | ||
@@ -15,17 +15,17 @@ "author": "Matt Rose <matt@mattrose.ca> (http://mattrose.ca)", | ||
"dependencies": { | ||
"jquery": ">=1.6" | ||
"jquery": "3.x" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^4.2.0", | ||
"eslint-config-carpages": "^1.0.2", | ||
"eslint-plugin-qunit": "^3.2.0", | ||
"eslint": "5.16.x", | ||
"eslint-config-carpages": "3.x", | ||
"eslint-plugin-qunit": "^4.0.0", | ||
"grunt": "^1.0.1", | ||
"grunt-contrib-connect": "^1.0.2", | ||
"grunt-contrib-qunit": "^2.0.0", | ||
"grunt-eslint": "^20.0.0", | ||
"grunt-contrib-connect": "^2.0.0", | ||
"grunt-contrib-qunit": "^3.1.0", | ||
"grunt-eslint": "^22.0.0", | ||
"grunt-saucelabs": "^9.0.0", | ||
"load-grunt-tasks": "^3.5.2", | ||
"time-grunt": "^1.4.0" | ||
"load-grunt-tasks": "^5.1.0", | ||
"time-grunt": "^2.0.0" | ||
}, | ||
"license": "MIT" | ||
} |
module.exports = { | ||
extends: ["carpages", "plugin:qunit/recommended", "plugin:qunit/two"], | ||
plugins: ["qunit"] | ||
extends: ['carpages/rules/dsp', 'plugin:qunit/recommended', 'plugin:qunit/two'], | ||
plugins: ['qunit'] | ||
}; |
require([ 'qunit', 'jquery', 'jquery.boiler' ], function( QUnit, $ ) { | ||
/* | ||
* Added for Saucelabs | ||
* https://github.com/axemclion/grunt-saucelabs#test-result-details-with-qunit | ||
*/ | ||
* Added for Saucelabs | ||
* https://github.com/axemclion/grunt-saucelabs#test-result-details-with-qunit | ||
*/ | ||
var log = []; | ||
@@ -256,19 +256,16 @@ var testName; | ||
QUnit.test( | ||
'Settings properly give priority to data > options > defaults', | ||
function( assert ) { | ||
assert.expect( 1 ); | ||
QUnit.test( 'Settings properly give priority to data > options > defaults', function( assert ) { | ||
assert.expect( 1 ); | ||
this.$el.test({ | ||
one: 'one', | ||
two: 'two' | ||
}); | ||
this.$el.test({ | ||
one: 'one', | ||
two: 'two' | ||
}); | ||
assert.deepEqual( this.$el.data( 'test' ).settings, { | ||
one: 'ONE', | ||
two: 'two', | ||
three: '3' | ||
}); | ||
} | ||
); | ||
assert.deepEqual( this.$el.data( 'test' ).settings, { | ||
one: 'ONE', | ||
two: 'two', | ||
three: '3' | ||
}); | ||
}); | ||
@@ -275,0 +272,0 @@ /* |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
17
1
26064
506
Updatedjquery@3.x