Skip to content

Commit

Permalink
Update to jQuery 3.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fasttime committed Sep 1, 2018
1 parent 40ee222 commit d8ee0f0
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 57 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
56 changes: 29 additions & 27 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,40 @@
/* eslint-env node */

'use strict';

var gulp = require('gulp');
const gulp = require('gulp');

gulp.task(
gulp.task
(
'clean',
function ()
() =>
{
var del = require('del');
var stream = del('*.screwed.js');
const del = require('del');

const stream = del('*.screwed.js');
return stream;
}
);

gulp.task(
gulp.task
(
'lint',
function ()
() =>
{
var lint = require('gulp-fasttime-lint');

var SRC = ['*.js', '!*.screwed.js'];
var stream = gulp.src(SRC).pipe(lint());
const lint = require('gulp-fasttime-lint');

const src = ['*.js', '!*.screwed.js'];
const options = { envs: ['node'], parserOptions: { ecmaVersion: 6 } };
const stream = gulp.src(src).pipe(lint(options));
return stream;
}
);

gulp.task(
gulp.task
(
'screw',
function (callback)
callback =>
{
var child_process = require('child_process');
const child_process = require('child_process');

function execCallback(error, stdout, stderr)
{
if (stdout)
Expand All @@ -41,21 +43,21 @@ gulp.task(
console.error(stderr);
callback(error);
}

var COMMAND =
'node node_modules/jscrewit/screw.js ' +
'-ct -f BROWSER node_modules/jquery/dist/jquery.min.js ' +
'jquery-3.2.1.screwed.js';

const COMMAND =
'node node_modules/jscrewit/screw.js ' +
'-ct -f BROWSER node_modules/jquery/dist/jquery.min.js jquery-3.3.1.screwed.js';
child_process.exec(COMMAND, execCallback);
}
);

gulp.task(
gulp.task
(
'default',
function (callback)
callback =>
{
var runSequence = require('run-sequence');
const runSequence = require('run-sequence');

runSequence(['clean', 'lint'], 'screw', callback);
}
);
1 change: 0 additions & 1 deletion jquery-3.2.1.screwed.js

This file was deleted.

1 change: 1 addition & 0 deletions jquery-3.3.1.screwed.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery-screwed",
"version": "3.2.1-screwed.1",
"version": "3.3.1-screwed.1",
"description": "jQuery JavaScript library made of only six different characters: ! ( ) + [ ]",
"keywords": [
"jquery",
Expand All @@ -16,7 +16,7 @@
"files": [
"jquery-*.screwed.js"
],
"main": "jquery-3.2.1.screwed",
"main": "jquery-3.3.1.screwed",
"repository": {
"type": "git",
"url": "https://github.com/fasttime/jquery-screwed.git"
Expand All @@ -25,11 +25,11 @@
"build": "npm install && gulp"
},
"devDependencies": {
"del": "~2.2.2",
"del": "~3.0.0",
"gulp": "~3.9.1",
"gulp-fasttime-lint": "~0.2.6",
"jquery": "3.2.1",
"jscrewit": "~2.6.1",
"run-sequence": "~1.2.2"
"gulp-fasttime-lint": "~0.3.0",
"jquery": "3.3.1",
"jscrewit": "~2.7.0",
"run-sequence": "~2.2.1"
}
}
13 changes: 7 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Usage
You can use jQuery Screwed anywhere in your code like the regular jQuery.

```html
<script src="jquery-3.2.1.screwed.js"></script>
<script src="jquery-3.3.1.screwed.js"></script>
```

```html
Expand All @@ -26,19 +26,20 @@ Creation
jQuery Screwed was created with [JScrewIt](https://github.com/fasttime/JScrewIt).
Below are the steps to recreate it manually.

* Install [Node.js](http://nodejs.org) if you haven't done so yet.
* Install [Node.js](https://nodejs.org) if you haven't done so yet.
* Install JScrewIt: run in the command line<br>
`$ npm install -g jscrewit`
* Download jQuery—current stable version is 3.2.1: http://code.jquery.com/jquery-3.2.1.min.js
* Download jQuery—current stable version is 3.3.1: https://code.jquery.com/jquery-3.3.1.min.js
* Replace path names as appropriate and run<br>
`$ node jscrewit -ct -f BROWSER path/to/source/jquery-3.2.1.min.js
path/to/dest/jquery-3.2.1.screwed.js`
`$ node jscrewit -ct -f BROWSER path/to/source/jquery-3.3.1.min.js
path/to/dest/jquery-3.3.1.screwed.js`

Browser Support
---------------

jQuery Screwed supports all browsers also
[supported by jQuery 3.x](http://jquery.com/browser-support/).
[supported by jQuery 3.x](https://jquery.com/browser-support/).
Node.js is *not* supported.

Credits
-------
Expand Down
31 changes: 15 additions & 16 deletions test.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE HTML>
<html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
Expand All @@ -17,20 +17,20 @@
{
var script = document.createElement('SCRIPT');
script.onload =
function ()
function ()
{
if (window.$)
{
if (window.$)
{
statusBlock.className = 'success';
statusBlock.textContent = 'jQuery Screwed was loaded correctly.';
}
else
{
statusBlock.className = 'failed';
statusBlock.textContent = 'jQuery Screwed was not loaded correctly.';
}
};
script.src = 'jquery-3.2.1.screwed.js';
statusBlock.className = 'success';
statusBlock.textContent = 'jQuery Screwed was loaded correctly.';
}
else
{
statusBlock.className = 'failed';
statusBlock.textContent = 'jQuery Screwed was not loaded correctly.';
}
};
script.src = 'jquery-3.3.1.screwed.js';
document.querySelector('head').appendChild(script);
}

Expand All @@ -39,7 +39,7 @@
</script>
<style>

#statusBlock
#statusBlock
{
border: thin solid black;
border-radius: .125em;
Expand All @@ -61,7 +61,6 @@

</style>
<title>jQuery Screwed Test Page</title>
<body>
<p>This page tests your browser’s ability to load <a
href='https://github.com/fasttime/jquery-screwed'>jQuery Screwed</a>.</p>
<div class='pending' id='statusBlock'>Trying to load jQuery Screwed…</div>

0 comments on commit d8ee0f0

Please sign in to comment.