webpack_native 0.2.9 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/webpack_native/install_generator.rb +12 -0
- data/lib/webpack_native/version.rb +1 -1
- 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: ac18021d92dae95f160f133b5c439d55079fa52d1387e4040d972d450fe14adb
|
4
|
+
data.tar.gz: 871780064bb05249c5b056c9ffa3702408bade040a49f58e29bb2e37879c1db7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aac2c0b3a1efe4c2c1eb24bd90ab168042f352da57286fd56802cd6e77c39314e1cf1d9fa0a6fd1fba638450f4062080e81e69467b7382a5b66cb1a0d2c05831
|
7
|
+
data.tar.gz: 7db9e1e5e952308a8cebfd0c60eb30bdfde11e95ef4bb4905f1c2088633df8454cdf2ed7573d4d10640833bace48ee0df6f2cfa7676ee3352e95465d72da0137
|
@@ -40,6 +40,18 @@ class WebpackNative::InstallGenerator < Rails::Generators::Base
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
+
def add_node_modules_to_gitignore
|
44
|
+
puts "\nAdding /app/webpack_native/node_modules to .gitignore...\n"
|
45
|
+
folder_to_ignore = '/app/webpack_native/node_modules'
|
46
|
+
# add webpack_native's node_modules folder to gitignore if it isn't added yet
|
47
|
+
%x{ grep -qxF '#{folder_to_ignore}' .gitignore || echo '#{folder_to_ignore}' >> .gitignore }
|
48
|
+
puts "=> Done!"
|
49
|
+
end
|
50
|
+
|
51
|
+
def output_installation_finished_msg
|
52
|
+
puts "\n\e[32m*** WebpackNative - installation finished. ***\e[0m\n"
|
53
|
+
end
|
54
|
+
|
43
55
|
# This step was moved to railtie class, it's better to run webpack within the gem after initialize than injecting the code in config.ru
|
44
56
|
# (4) When the server starts, start webpack in a separate thread (this should be done in config.ru)
|
45
57
|
# def inject_webpack_command
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webpack_native
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- scratchoo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Use vanilla webpack to manage your assets efficiently, no webpacker or
|
14
14
|
asset pipeline anymore!
|