escompress 0.1.0 → 0.2.0
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/Gemfile.lock +1 -1
- data/README.md +8 -3
- data/lib/escompress/railtie.rb +3 -0
- data/lib/escompress/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9245007118ea43d91ab96980ef4ac04b1861e4acd2825edddcff39d2a84d8806
|
|
4
|
+
data.tar.gz: 1e8ec8d2fc946a0cbc684c23f6f4dcd488fd58e39328e58ae6a6ef84e254568a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e1fc8572314ce836c8df045d19f7ab7d544b3953ee6f1e19d6caa90d7dc725ead16b08875f39390f0cb315a85f92b5a7f41b756f939ba5b5771b02e8bdde1c7a
|
|
7
|
+
data.tar.gz: c77ab96f54110622a1ddaa66b272b0d83257f332df23021201ed6b44b585f2557c8587bc47fffeb236b3fdc832fe4ac1b7b8cc4a6ae2e13ccbd641994c495e58
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Use esbuild to compress your Rails CSS (or JS if you want).
|
|
4
4
|
|
|
5
|
+
## Why?
|
|
6
|
+
|
|
7
|
+
You might find yourself with a Rails app that uses sass-rails (and sassc) gems. You may be stuck with these gems for legacy reasons. Ruby sass can't handle newer CSS syntaxes.
|
|
8
|
+
|
|
5
9
|
## Installation
|
|
6
10
|
|
|
7
11
|
Install the gem and add to the application's Gemfile by executing:
|
|
@@ -14,12 +18,13 @@ If bundler is not being used to manage dependencies, install the gem by executin
|
|
|
14
18
|
|
|
15
19
|
## Usage
|
|
16
20
|
|
|
21
|
+
Make sure you have `esbuild` in your package.json file. If you are using Rails, escompress will look in your node_modules folder for the esbuild executable. If not using Rails, the gem will assume the executable is located at `/usr/local/bin/esbuild` on the underlying machine.
|
|
22
|
+
|
|
17
23
|
```ruby
|
|
18
24
|
# in application.rb
|
|
19
25
|
|
|
20
26
|
# You can specify the location of your esbuild executable.
|
|
21
|
-
#
|
|
22
|
-
Escompress.esbuild_executable = Rails.root.join("node_modules/esbuild/bin/esbuild")
|
|
27
|
+
# Escompress.esbuild_executable = Rails.root.join("some/other/path/esbuild")
|
|
23
28
|
|
|
24
29
|
module MyApp
|
|
25
30
|
class Application < Rails::Application
|
|
@@ -38,7 +43,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
38
43
|
|
|
39
44
|
## Contributing
|
|
40
45
|
|
|
41
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
46
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/jwilsjustin/escompress. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to be decent human beings.
|
|
42
47
|
|
|
43
48
|
## License
|
|
44
49
|
|
data/lib/escompress/railtie.rb
CHANGED
data/lib/escompress/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: escompress
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Wilson
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-12-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Use esbuild to compress your Rails CSS
|
|
14
14
|
email:
|
|
@@ -35,7 +35,7 @@ metadata:
|
|
|
35
35
|
homepage_uri: https://github.com/jwilsjustin/escompress
|
|
36
36
|
source_code_uri: https://github.com/jwilsjustin/escompress
|
|
37
37
|
changelog_uri: https://github.com/jwilsjustin/escompress/CHANGELOG.md
|
|
38
|
-
post_install_message:
|
|
38
|
+
post_install_message:
|
|
39
39
|
rdoc_options: []
|
|
40
40
|
require_paths:
|
|
41
41
|
- lib
|
|
@@ -50,8 +50,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
50
50
|
- !ruby/object:Gem::Version
|
|
51
51
|
version: '0'
|
|
52
52
|
requirements: []
|
|
53
|
-
rubygems_version: 3.
|
|
54
|
-
signing_key:
|
|
53
|
+
rubygems_version: 3.3.7
|
|
54
|
+
signing_key:
|
|
55
55
|
specification_version: 4
|
|
56
56
|
summary: Use esbuild to compress your Rails CSS
|
|
57
57
|
test_files: []
|