jets 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/lib/jets/builders/code_builder.rb +13 -5
- data/lib/jets/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c7b4bf4a3af04ba9de3ddafc8e8483303c50eca8cddc28cb70830eb941bde6a
|
4
|
+
data.tar.gz: 38a3ee6c6fabd939ae3f4ab76639363c3cce222ff85f080cffb7f4652bc3a9e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30b7009d55779a5aa79d4d72b760dc1cfaba6b363112ae30c4e4504df145f6e3acd075a93ddccc9608a5d0f0549c5dbe5ac925e21cbdeb07f907c79135649d1a
|
7
|
+
data.tar.gz: 3981e12eb19f182d874915b17510c31fe03b5107bbc35d8ee1c097e15d5e534e9ddbf95ecd16c3ae8720f645faa6e649fec3d913535d0d48edf13f12355b95e7
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [1.4.3]
|
7
|
+
- fix webpacker:compile on jets build and allow jets deploy to work standalone
|
8
|
+
|
6
9
|
## [1.4.2]
|
7
10
|
- fix webpacker:compile on jets build
|
8
11
|
|
data/Gemfile.lock
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require "action_view"
|
2
|
-
require "bundler"
|
3
2
|
require "colorize"
|
4
3
|
require "fileutils"
|
5
4
|
require "net/http"
|
@@ -178,10 +177,7 @@ class Jets::Builders
|
|
178
177
|
end
|
179
178
|
|
180
179
|
headline "Compling assets in current project directory"
|
181
|
-
|
182
|
-
require "bundler/setup"
|
183
|
-
webpacker_loaded = Gem.loaded_specs.keys.include?("webpacker")
|
184
|
-
return unless webpacker_loaded
|
180
|
+
return unless webpacker_included?
|
185
181
|
|
186
182
|
sh("yarn install")
|
187
183
|
webpack_command = File.exist?("#{Jets.root}bin/webpack") ?
|
@@ -190,6 +186,18 @@ class Jets::Builders
|
|
190
186
|
sh "JETS_ENV=#{Jets.env} #{webpack_command}"
|
191
187
|
end
|
192
188
|
|
189
|
+
def webpacker_included?
|
190
|
+
# Old code, leaving around for now:
|
191
|
+
# Thanks: https://stackoverflow.com/questions/4195735/get-list-of-gems-being-used-by-a-bundler-project
|
192
|
+
# webpacker_loaded = Gem.loaded_specs.keys.include?("webpacker")
|
193
|
+
# return unless webpacker_loaded
|
194
|
+
|
195
|
+
# Checking this way because when using jets standalone for Afterburner mode we don't want to run into
|
196
|
+
# bundler gem collisions. TODO: figure out the a better way to handle the collisions.
|
197
|
+
lines = IO.readlines("#{Jets.root}Gemfile")
|
198
|
+
lines.detect { |l| l =~ /webpacker/ }
|
199
|
+
end
|
200
|
+
|
193
201
|
# This happens in the current app directory not the tmp code for simplicity
|
194
202
|
# This is because the node likely been set up correctly there.
|
195
203
|
def compile_rails_assets
|
data/lib/jets/version.rb
CHANGED