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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7f1a68d09162386737acf2c548fa7f5b15f41b583d442d11d3a4f565f79c9c8
4
- data.tar.gz: 2f0e25eb8bd5716680a903b5fefe38dc0f798971b43755b452f67bba7b8057a1
3
+ metadata.gz: ac18021d92dae95f160f133b5c439d55079fa52d1387e4040d972d450fe14adb
4
+ data.tar.gz: 871780064bb05249c5b056c9ffa3702408bade040a49f58e29bb2e37879c1db7
5
5
  SHA512:
6
- metadata.gz: c7c21e4f8779da0840b67d4521ee2b6860cfacdd8378c42f0f4442200e73a7f24dfe36fcf9b30cc4aa9b16666f886d65c9d31fd7de92f03d286771f60b400c2f
7
- data.tar.gz: acf37985bcfded4ad4f3f61ab63aa7844145200004441555517d301d119b8316f5e7dade17ccdcab9c0ee1ac7a12caa737839a289aff477964c5f58fd0320386
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
@@ -1,3 +1,3 @@
1
1
  module WebpackNative
2
- VERSION = "0.2.9"
2
+ VERSION = "0.3.0"
3
3
  end
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.2.9
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-03 00:00:00.000000000 Z
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!