jekyll-uglify 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CODE_OF_CONDUCT.md +1 -1
- data/README.md +7 -2
- data/jekyll-uglify-1.0.1.gem +0 -0
- data/lib/jekyll/uglify.rb +9 -8
- data/lib/jekyll/uglify/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1829d0564075f121d22d27673117b2faec20a2eb81fa1d03d2d5a6dc51983b61
|
4
|
+
data.tar.gz: 5acbbd812be621de4bde1efe22dde5cb28ecbe521358178541482ddc340ea1f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ff9da501bd8d9bde5064445b7b3073e59d7422042729f6c16539aacfa8ca7fdc61f519de397e71cdf8fa8408c3199299e6068f3413b13eaa5b6aa1730637c24
|
7
|
+
data.tar.gz: dbf1210db9a30c009c72917b210785c754de843f3b536e0ff6f4c6aa82f6785cb5a415e949f26ebdee666586755f9e747e93bfe160e105f325ddf29b74199711
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
|
|
55
55
|
## Enforcement
|
56
56
|
|
57
57
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at
|
58
|
+
reported by contacting the project team at me@seanhofer.com All
|
59
59
|
complaints will be reviewed and investigated and will result in a response that
|
60
60
|
is deemed necessary and appropriate to the circumstances. The project team is
|
61
61
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# [jekyll-uglify](https://rubygems.org/gems/jekyll-uglify)
|
2
|
+
[](https://badge.fury.io/rb/jekyll-uglify)
|
2
3
|
|
3
|
-
A Jekyll plugin for uglifying JS in a given directory using [Uglifier](https://github.com/lautis/uglifier), a Ruby wrapper for UglifyJS.
|
4
|
+
A Jekyll plugin for uglifying JS in a given directory using [Uglifier](https://github.com/lautis/uglifier), a Ruby wrapper for UglifyJS by [lautis](https://github.com/lautis).
|
4
5
|
|
5
6
|
## Installation
|
6
7
|
```
|
@@ -10,7 +11,11 @@ gem install jekyll-uglify
|
|
10
11
|
## Set Up
|
11
12
|
In `Gemfile`
|
12
13
|
``` ruby
|
13
|
-
|
14
|
+
...
|
15
|
+
group :jekyll_plugins do
|
16
|
+
...
|
17
|
+
gem 'jekyll-uglify'
|
18
|
+
end
|
14
19
|
```
|
15
20
|
|
16
21
|
To enable options in `_config.yml`
|
Binary file
|
data/lib/jekyll/uglify.rb
CHANGED
@@ -7,14 +7,15 @@ require 'uglifier'
|
|
7
7
|
module Jekyll
|
8
8
|
module Uglify
|
9
9
|
class Error < StandardError; end
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
10
|
+
# Uglify all JS files in a given directory.
|
11
|
+
# Ignores files with `.min.js` extensions.
|
12
|
+
# Gets Uglifier configuration settings from `_config.yml`
|
13
|
+
#
|
14
|
+
# Syntax: jekyll uglify DIRECTORY [or]
|
15
|
+
# bundle exec jekyll uglify DIR
|
16
|
+
# Arguments:
|
17
|
+
# DIR directory in which JS should be uglified
|
18
|
+
class UglifyJS < Jekyll::Command
|
18
19
|
def self.init_with_program(prog)
|
19
20
|
prog.command(:uglify) do |c|
|
20
21
|
c.syntax "uglify DIRECTORY"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-uglify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Hofer
|
@@ -40,6 +40,7 @@ files:
|
|
40
40
|
- Rakefile
|
41
41
|
- bin/console
|
42
42
|
- bin/setup
|
43
|
+
- jekyll-uglify-1.0.1.gem
|
43
44
|
- jekyll-uglify.gemspec
|
44
45
|
- lib/jekyll/uglify.rb
|
45
46
|
- lib/jekyll/uglify/version.rb
|