railpack 1.3.6 → 1.3.7

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +53 -0
  3. data/lib/railpack/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ab6242e1116f0591d98d49712f9f1fd6d9735683eed7f6dcd2e4cd36f1cb2e6
4
- data.tar.gz: 64eb2e33f8bd741af4959b9395218b5243e6b6db376f2bb9010a095c3639f019
3
+ metadata.gz: 95f36a32c539fe6e859f97bfd2a301fb933a051ee8048d06434601890fd4f6d4
4
+ data.tar.gz: 6dd6331cd806d2c1345d84290264634997721272bc0b632269f006a37b0da901
5
5
  SHA512:
6
- metadata.gz: c6a996d3d6cf458c7a83040de401ac2d14efc65dc66ce06fb0d1c124d39bcc6b9539c7a1f901b6f9412605da1b25e1ceed08a3d8ee96884b4d4fe9f90c88e464
7
- data.tar.gz: 7832e7bb4c1e79fcbdbe260a6b0f7208625f50f08f3abc59419c6353ccc3ac80874d3376f9598dc885274014e5022349cab6f90ac2aa09826cf489ec37c08572
6
+ metadata.gz: b8a277301dbb05856aa3cb123cb494d18fea3d33433eeb516cb92d0dc53fcfc4330bb33ada25b3ef8f368f9307be00fa6e68bf29c61aafbe78a2c733dfe95a0e
7
+ data.tar.gz: '01228226c62dcf91d5147ffc6addc7d21f0bf891b5c89ee63e9552d933025d05a9991ddaf3113c8b2c9014840458dfcbad04bd76e7b6b1e9912ef7354ffa2d5f'
data/README.md CHANGED
@@ -76,6 +76,12 @@ bundlers:
76
76
  bun:
77
77
  commands:
78
78
  build: "bunx custom-build"
79
+ rollup:
80
+ commands:
81
+ build: "rollup --config custom-config.js"
82
+ webpack:
83
+ commands:
84
+ build: "webpack --config custom-webpack.config.js"
79
85
  ```
80
86
 
81
87
  #### Watch Flags Configuration
@@ -87,6 +93,53 @@ esbuild:
87
93
  target: browser
88
94
  format: esm
89
95
  watch_flags: ["--watch", "--serve=3000"] # Custom watch flags
96
+
97
+ rollup:
98
+ format: esm
99
+ sourcemap: true
100
+ watch_flags: ["--watch"]
101
+
102
+ webpack:
103
+ mode: production
104
+ target: web
105
+ watch_flags: ["--watch"]
106
+ ```
107
+
108
+ #### Dynamic Bundler Switching
109
+
110
+ Switch bundlers per environment or dynamically:
111
+
112
+ ```yaml
113
+ # Switch bundlers per environment
114
+ development:
115
+ bundler: bun # Fast for development
116
+
117
+ production:
118
+ bundler: esbuild # Speed for production
119
+
120
+ # Or use different bundlers for different tasks
121
+ bundlers:
122
+ esbuild:
123
+ commands:
124
+ build: "esbuild --production"
125
+ webpack:
126
+ commands:
127
+ build: "webpack --config webpack.prod.js"
128
+ ```
129
+
130
+ #### Custom Entry Points and Outputs
131
+
132
+ Configure multiple entry points and custom outputs:
133
+
134
+ ```yaml
135
+ default:
136
+ entrypoints: ["./app/javascript/application.js", "./app/javascript/admin.js"]
137
+ outdir: "app/assets/builds"
138
+
139
+ # Or single entrypoint
140
+ default:
141
+ entrypoint: "./app/javascript/application.js"
142
+ outdir: "app/assets/builds"
90
143
  ```
91
144
 
92
145
  ## Usage
@@ -1,3 +1,3 @@
1
1
  module Railpack
2
- VERSION = "1.3.6"
2
+ VERSION = "1.3.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.6
4
+ version: 1.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - 21tycoons LLC