Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
fasttime committed Dec 28, 2018
1 parent d8ee0f0 commit 3ca50d0
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 40 deletions.
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
node_modules/
npm-debug.log
.*
!.git*
!/.npmrc
/node_modules
/npm-debug.log
24 changes: 7 additions & 17 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';

const gulp = require('gulp');
const { parallel, series, task } = require('gulp');

gulp.task
task
(
'clean',
() =>
Expand All @@ -14,21 +14,20 @@ gulp.task
}
);

gulp.task
task
(
'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));
const stream =
lint({ src: ['*.js', '!*.screwed.js'], envs: ['node'], parserOptions: { ecmaVersion: 6 } });
return stream;
}
);

gulp.task
task
(
'screw',
callback =>
Expand All @@ -51,13 +50,4 @@ gulp.task
}
);

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

runSequence(['clean', 'lint'], 'screw', callback);
}
);
task('default', series(parallel('clean', 'lint'), 'screw'));
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
"license": "MIT",
"author": "Francesco Trotta <[email protected]> (https://github.com/fasttime)",
"files": [
"jquery-*.screwed.js"
],
"main": "jquery-3.3.1.screwed",
"main": "jquery-3.3.1.screwed.js",
"repository": {
"type": "git",
"url": "https://github.com/fasttime/jquery-screwed.git"
Expand All @@ -26,10 +25,9 @@
},
"devDependencies": {
"del": "~3.0.0",
"gulp": "~3.9.1",
"gulp-fasttime-lint": "~0.3.0",
"gulp": "~4.0.0",
"gulp-fasttime-lint": "~0.6.0",
"jquery": "3.3.1",
"jscrewit": "~2.7.0",
"run-sequence": "~2.2.1"
"jscrewit": "~2.9.0"
}
}
36 changes: 24 additions & 12 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
jQuery *Screwed*
================
# jQuery *Screwed*

jQuery JavaScript library made using only six different characters: `!` `(` `)` `+` `[` `]`

Usage
-----
## Usage

You can use jQuery Screwed anywhere in your code like the regular jQuery.

Expand All @@ -20,29 +18,43 @@ $(function(){
</script>
```

Creation
--------
## Hosting Services

The following is a list of URLs that can be used to serve jQuery Screwed with proper Content-Type
header.

### From NPM

* https://cdn.jsdelivr.net/npm/[email protected]
* https://unpkg.com/[email protected]

### From GitHub

* https://cdn.jsdelivr.net/gh/fasttime/[email protected]/jquery-3.3.1.screwed.js
* https://cdn.staticaly.com/gh/fasttime/jquery-screwed/3.3.1-screwed.1/jquery-3.3.1.screwed.js
* https://gitcdn.xyz/repo/fasttime/jquery-screwed/3.3.1-screwed.1/jquery-3.3.1.screwed.js
* https://rawcdn.githack.com/fasttime/jquery-screwed/3.3.1-screwed.1/jquery-3.3.1.screwed.js

## Creation

jQuery Screwed was created with [JScrewIt](https://github.com/fasttime/JScrewIt).
Below are the steps to recreate it manually.

* 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`
`npm install -g jscrewit`
* 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.3.1.min.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
---------------
## Browser Support

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

Credits
-------
## Credits

jQuery Screwed is based on [jQuery](https://github.com/jquery/jquery).
jQuery is Copyright JS Foundation and other contributors, and licensed under the MIT license.
6 changes: 3 additions & 3 deletions test.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
padding: 1em;
}

.failed { background: tomato; }
.failed { background: #ff7f7f; }

.pending { background: lightgray; }
.pending { background: #bfbfbf; }

.success { background: lightgreen; }
.success { background: #7fff7f; }

a { text-decoration: none; }

Expand Down

0 comments on commit 3ca50d0

Please sign in to comment.