hyperbuild 0.0.43 → 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 +19 -9
- 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,19 +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.
|
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).
|
27
29
|
|
28
30
|
##### Get
|
29
31
|
|
30
|
-
[Windows](https://wilsonl.in/hyperbuild/bin/0.0.
|
31
|
-
[macOS](https://wilsonl.in/hyperbuild/bin/0.0.
|
32
|
-
[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)
|
33
35
|
|
34
36
|
##### Use
|
35
37
|
|
@@ -46,7 +48,7 @@ hyperbuild --src /path/to/src.html --out /path/to/output.min.html
|
|
46
48
|
|
47
49
|
```toml
|
48
50
|
[dependencies]
|
49
|
-
hyperbuild = "0.0.
|
51
|
+
hyperbuild = "0.0.44"
|
50
52
|
```
|
51
53
|
|
52
54
|
##### Use
|
@@ -92,6 +94,14 @@ const hyperbuild = require("hyperbuild");
|
|
92
94
|
const minified = hyperbuild.minify("<p> Hello, world! </p>");
|
93
95
|
```
|
94
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
|
+
|
95
105
|
</details>
|
96
106
|
|
97
107
|
<details>
|
@@ -107,7 +117,7 @@ Add as a Maven dependency:
|
|
107
117
|
<dependency>
|
108
118
|
<groupId>in.wilsonl.hyperbuild</groupId>
|
109
119
|
<artifactId>hyperbuild</artifactId>
|
110
|
-
<version>0.0.
|
120
|
+
<version>0.0.44</version>
|
111
121
|
</dependency>
|
112
122
|
```
|
113
123
|
|
@@ -383,10 +393,10 @@ Spaces are removed between attributes if possible.
|
|
383
393
|
Entities are decoded if valid (see relevant parsing section) and their decoded characters as UTF-8 is shorter or equal in length.
|
384
394
|
|
385
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).
|
386
|
-
|
396
|
+
|
387
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`.
|
388
398
|
|
389
|
-
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.
|
390
400
|
|
391
401
|
### Comments
|
392
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
|