jekyll-uglify 1.1.0 → 1.1.1
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/README.md +3 -3
- data/lib/jekyll/uglify.rb +1 -0
- data/lib/jekyll/uglify/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 03fedfaf0d0b03b2c73e747ccefd103bd73332e8e9124ddd8b591600992ec9a1
|
|
4
|
+
data.tar.gz: b5b78ebd24d91eb106200969fb35004ed9891805afec7bf31362eb05f2c9bb7c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 042ae01e8d30609151c8a9cc3b4880bbd0b81617f79e7957fdbbb3ef5ad1807ad86437e826c53a18865ba6a461742760a88e16a0fa7ebd29eafc8216e9e86997
|
|
7
|
+
data.tar.gz: bfcad15886e8c87635d7c0de1396b4c69959de079bc463e00c3d557caa633aa006e3389af807382922f8f968193eed1892879e6147543ea5ad38120d0c202f3c
|
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# [jekyll-uglify](https://rubygems.org/gems/jekyll-uglify)
|
|
2
2
|
[](https://badge.fury.io/rb/jekyll-uglify)
|
|
3
3
|
|
|
4
|
-
A Jekyll plugin for uglifying JS
|
|
4
|
+
A Jekyll command plugin for uglifying given JS files or directories using [Uglifier](https://github.com/lautis/uglifier), a Ruby wrapper for UglifyJS by [lautis](https://github.com/lautis).
|
|
5
5
|
|
|
6
6
|
## Installation
|
|
7
7
|
```
|
|
@@ -27,9 +27,9 @@ You can find all available options and default values [here](https://github.com/
|
|
|
27
27
|
|
|
28
28
|
## Usage
|
|
29
29
|
```
|
|
30
|
-
bundle exec jekyll uglify [
|
|
30
|
+
bundle exec jekyll uglify FILEPATH [ADDITIONAL_FILEPATHS]
|
|
31
31
|
```
|
|
32
|
-
Include this command in your build process to uglify JS at build time.
|
|
32
|
+
You can list any number of files or directories to be uglified. Include this command in your build process to uglify JS at build time.
|
|
33
33
|
|
|
34
34
|
## License
|
|
35
35
|
|
data/lib/jekyll/uglify.rb
CHANGED
|
@@ -46,6 +46,7 @@ module Jekyll
|
|
|
46
46
|
if !(dir.end_with? "/") then dir = dir + "/" end
|
|
47
47
|
Dir.foreach(Dir.pwd + dir) do |file|
|
|
48
48
|
next if file == '.' or file == '..' or file.include? '.min.js'
|
|
49
|
+
next unless file.include? '.js'
|
|
49
50
|
filepath = Dir.pwd + dir + file
|
|
50
51
|
output = Uglifier.compile(File.open(filepath, 'r'), config)
|
|
51
52
|
File.open(filepath, 'w').write(output)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-uglify
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sean Hofer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-07-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: uglifier
|