hyperbuild 0.0.38 → 0.0.44
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -8
- data/lib/linux-ruby2.5 +0 -0
- data/lib/linux-ruby2.6 +0 -0
- data/lib/linux-ruby2.7 +0 -0
- data/lib/macos-ruby2.5 +0 -0
- data/lib/macos-ruby2.6 +0 -0
- data/lib/macos-ruby2.7 +0 -0
- 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: c08a3df4ded7e9f0e90457cbcd2bece9e33ebe8ce47246f0e6a93095a517ea19
|
4
|
+
data.tar.gz: 0bb130c76c5ed061cf3610ce73a9a2b0ebab72f12df0d16767330c8d7cc61f63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d74715dc36e9201b399401b944eb27348e5a0a88885d6db4f9aa609db048f251496bc0b9acbb5f9dea5978789b15d72504be64febc6905b251af200a1bf037fd
|
7
|
+
data.tar.gz: db810d4b7e4290c5f07dfd7c2302ad1396d07d614a1c5fbc153d8e5fc9e273f589e59bc36c3023748693d9e4646864198160bf4e7c1e70571ae84db7a0dc874a
|
data/README.md
CHANGED
@@ -17,17 +17,21 @@ Available as:
|
|
17
17
|
|
18
18
|
Speed and effectiveness of Node.js version compared to [html-minfier](https://github.com/kangax/html-minifier) and [minimize](https://github.com/Swaagie/minimize). See [bench](./bench) folder for more details.
|
19
19
|
|
20
|
-
<img width="435" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/hyperbuild/bench/0.0.
|
20
|
+
<img width="435" alt="Chart showing speed of HTML minifiers" src="https://wilsonl.in/hyperbuild/bench/0.0.44/average-speeds.png"> <img width="435" alt="Chart showing effectiveness of HTML minifiers" src="https://wilsonl.in/hyperbuild/bench/0.0.44/average-sizes.png">
|
21
21
|
|
22
22
|
## Usage
|
23
23
|
|
24
24
|
### CLI
|
25
25
|
|
26
|
+
Precompiled binaries are available for x86-64 Windows, macOS, and Linux.
|
27
|
+
|
28
|
+
To compile and install from source, run `cargo install hyperbuild`, which requires [Rust](https://www.rust-lang.org/tools/install).
|
29
|
+
|
26
30
|
##### Get
|
27
31
|
|
28
|
-
[Windows](https://wilsonl.in/hyperbuild/bin/0.0.
|
29
|
-
[macOS](https://wilsonl.in/hyperbuild/bin/0.0.
|
30
|
-
[Linux](https://wilsonl.in/hyperbuild/bin/0.0.
|
32
|
+
[Windows](https://wilsonl.in/hyperbuild/bin/0.0.44-windows-x86_64.exe) |
|
33
|
+
[macOS](https://wilsonl.in/hyperbuild/bin/0.0.44-macos-x86_64) |
|
34
|
+
[Linux](https://wilsonl.in/hyperbuild/bin/0.0.44-linux-x86_64)
|
31
35
|
|
32
36
|
##### Use
|
33
37
|
|
@@ -44,7 +48,7 @@ hyperbuild --src /path/to/src.html --out /path/to/output.min.html
|
|
44
48
|
|
45
49
|
```toml
|
46
50
|
[dependencies]
|
47
|
-
hyperbuild = "0.0.
|
51
|
+
hyperbuild = "0.0.44"
|
48
52
|
```
|
49
53
|
|
50
54
|
##### Use
|
@@ -90,6 +94,14 @@ const hyperbuild = require("hyperbuild");
|
|
90
94
|
const minified = hyperbuild.minify("<p> Hello, world! </p>");
|
91
95
|
```
|
92
96
|
|
97
|
+
hyperbuild is also available for TypeScript:
|
98
|
+
|
99
|
+
```ts
|
100
|
+
import * as hyperbuild from "hyperbuild";
|
101
|
+
|
102
|
+
const minified = hyperbuild.minify("<p> Hello, world! </p>");
|
103
|
+
```
|
104
|
+
|
93
105
|
</details>
|
94
106
|
|
95
107
|
<details>
|
@@ -105,7 +117,7 @@ Add as a Maven dependency:
|
|
105
117
|
<dependency>
|
106
118
|
<groupId>in.wilsonl.hyperbuild</groupId>
|
107
119
|
<artifactId>hyperbuild</artifactId>
|
108
|
-
<version>0.0.
|
120
|
+
<version>0.0.44</version>
|
109
121
|
</dependency>
|
110
122
|
```
|
111
123
|
|
@@ -381,10 +393,10 @@ Spaces are removed between attributes if possible.
|
|
381
393
|
Entities are decoded if valid (see relevant parsing section) and their decoded characters as UTF-8 is shorter or equal in length.
|
382
394
|
|
383
395
|
Numeric entities that do not refer to a valid [Unicode Scalar Value](https://www.unicode.org/glossary/#unicode_scalar_value) are replaced with the [replacement character](https://en.wikipedia.org/wiki/Specials_(Unicode_block)#Replacement_character).
|
384
|
-
|
396
|
+
|
385
397
|
If an entity is unintentionally formed after decoding, the leading ampersand is encoded, e.g. `&amp;` becomes `&amp;`. This is done as `&` is equal to or shorter than all other entity representations of characters part of an entity (`[&#a-zA-Z0-9;]`), and there is no other conflicting entity name that starts with `amp`.
|
386
398
|
|
387
|
-
Right chevrons after any decoding in text are encoded to `>` if possible or `>` otherwise.
|
399
|
+
Right chevrons after any decoding in text are encoded to `>` if possible or `>` otherwise.
|
388
400
|
|
389
401
|
### Comments
|
390
402
|
|
data/lib/linux-ruby2.5
CHANGED
Binary file
|
data/lib/linux-ruby2.6
CHANGED
Binary file
|
data/lib/linux-ruby2.7
CHANGED
Binary file
|
data/lib/macos-ruby2.5
CHANGED
Binary file
|
data/lib/macos-ruby2.6
CHANGED
Binary file
|
data/lib/macos-ruby2.7
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hyperbuild
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.44
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wilson Lin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01
|
11
|
+
date: 2020-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fiddle
|