hanami-assets 2.1.0.beta2 → 2.1.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da6a6be342f7e3a9e3147c0583c3ad707a0173a3deab09e0d98e48b1cd12adb3
4
- data.tar.gz: ace54aa27a7f37393e94643bcf841c1b1a98260d69b83d0687e95aaef5fa5e5f
3
+ metadata.gz: c63f686712b26848bd0d228c8d16a17ff9c38096360dcd86b901fe9db7acde91
4
+ data.tar.gz: f85ca3433bcec2d6003c770924e5f9d01713a8e35c5b5af13e93bc8c0741645b
5
5
  SHA512:
6
- metadata.gz: 98d2d451da096daa3e3ee398985c175de38cc7745ee46e037176ac689e0387611473eca736b79fcddfe4436456c693fcb99bf60f27a46226bc7d7e590f0d341d
7
- data.tar.gz: f540b8ed261fba7efcc2c0c48a1e5b5656f1a6fd9b69b403e2bc29d092cb9961760c34695c57df961f67983d175a32994dce192b699067a03623a24abfaa58e8
6
+ metadata.gz: 270ec0aad2e026303ffaa9e52d0d218b3cd1566e07d698dd6787eed98fc99d9526e81829f9e719594926f659956191cb7a323f6f21e897016d54b5e8b4f7a5b2
7
+ data.tar.gz: aa83f4b50a3c763d7b3f3ec6e0817e9a0bcdc60ab5206cc856e02465394b6eb270f568dc38bba0a095897343979258aa04c94a0122eb92e9c681759b52b690ee
data/CHANGELOG.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Hanami::Assets
2
2
  Assets management for Ruby web applications
3
3
 
4
+ ## v2.1.0.rc1 - 2023-11-01
5
+
4
6
  ## v2.1.0.beta2 - 2023-10-04
5
7
  ### Added
6
8
  - [Luca Guidi] Official support for Ruby: Ruby 3.1, and 3.2
data/README.md CHANGED
@@ -118,9 +118,9 @@ Among other directories, it generates a specific structure for assets:
118
118
  $ tree app/assets
119
119
  ├── images
120
120
  │   └── favicon.ico
121
- ├── javascripts
121
+ ├── js
122
122
  │   └── app.ts
123
- └── stylesheets
123
+ └── css
124
124
     └── app.css
125
125
  ```
126
126
 
@@ -135,16 +135,16 @@ This process includes any kind of asset: other JavaScript files, stylesheets, im
135
135
 
136
136
  The default entry points are:
137
137
 
138
- * `app/assets/javascripts/app.ts`
139
- * `slices/[slice-name]/assets/javascripts/app.ts`
138
+ * `app/assets/js/app.ts`
139
+ * `slices/[slice-name]/assets/js/app.ts`
140
140
 
141
141
  You can specify custom Entry Points, by adding an `app.{js,ts,mjs,mts,tsx,jsx}` file into the assets directory of the app or a slice.
142
142
 
143
- An example is: `app/assets/javascripts/login/app.ts` to define a new Entry Point for a Login page where you want to have a more lightweight bundle.
143
+ An example is: `app/assets/js/login/app.ts` to define a new Entry Point for a Login page where you want to have a more lightweight bundle.
144
144
 
145
145
  #### Static Assets
146
146
 
147
- Except for `javascripts` and `stylesheets` directories, all the other directories are considered **static**.
147
+ Except for `js` and `css` directories, all the other directories are considered **static**.
148
148
  Their files will be copied as they are to the destination directory.
149
149
 
150
150
  If you have a custom directory `app/assets/fonts`, all the fonts are copied to the destination direcotry.
@@ -176,7 +176,7 @@ By doing so, you can safely cache and deliver updated versions of assets to clie
176
176
 
177
177
  During the deployment process, Hanami Assets appends to the file name a unique hash.
178
178
 
179
- Example: `app/assets/javascripts/app.ts` -> `public/assets/app-QECGTTYG.js`
179
+ Example: `app/assets/js/app.ts` -> `public/assets/app-QECGTTYG.js`
180
180
 
181
181
  It creates a `/public/assets.json` to map the original asset name to the fingerprint name.
182
182
 
@@ -18,15 +18,7 @@ module Hanami
18
18
 
19
19
  # @since 2.1.0
20
20
  # @api private
21
- setting :package_manager_executable, default: "npm"
22
-
23
- # @since 2.1.0
24
- # @api private
25
- setting :package_manager_command, default: "exec"
26
-
27
- # @since 2.1.0
28
- # @api private
29
- setting :executable, default: "hanami-assets"
21
+ setting :package_manager_run_command, default: "npm run --silent"
30
22
 
31
23
  # @since 2.1.0
32
24
  # @api private
@@ -5,6 +5,6 @@ module Hanami
5
5
  # Defines the version
6
6
  #
7
7
  # @since 0.1.0
8
- VERSION = "2.1.0.beta2"
8
+ VERSION = "2.1.0.rc1"
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0.beta2
4
+ version: 2.1.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-04 00:00:00.000000000 Z
11
+ date: 2023-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zeitwerk