guard-webpack 0.1.1 → 0.1.2
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.
- checksums.yaml +4 -4
- data/README.md +5 -3
- data/lib/guard/webpack.rb +1 -1
- data/lib/guard/webpack/runner.rb +2 -0
- data/lib/guard/webpack/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbd0ae0f7ed3e94b157462fabcbe8789d31a5abd
|
4
|
+
data.tar.gz: a164c19c36ad18d190af827d0a5192be9520020f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 568d82ed7f31492c39c3b92378b64ba822c566068218f2c2382a13029384ec07fab77aae93dda8ff2e0d8e303a14b3c50887d367d4473872c46508283c516312
|
7
|
+
data.tar.gz: 65bd327eebc6c07a5295aef4a9ab0efa6a26764e60dc9aee2090bef20f1e3c9fa79563f6d9898c77506a6ecfc0a3408724d848e926c8f3b78d69c75d92b20737
|
data/README.md
CHANGED
@@ -31,7 +31,7 @@ At present, Guard::Webpack assumes you already have Webpack configured via a `we
|
|
31
31
|
You can, however, add additional options to your Guardfile, as seen below:
|
32
32
|
|
33
33
|
```ruby
|
34
|
-
guard :webpack, colors: false
|
34
|
+
guard :webpack, colors: false, config: './config/webpack/development.config.js'
|
35
35
|
```
|
36
36
|
|
37
37
|
## Options
|
@@ -39,8 +39,10 @@ guard :webpack, colors: false
|
|
39
39
|
### List of available options
|
40
40
|
|
41
41
|
```ruby
|
42
|
-
|
43
|
-
|
42
|
+
d: false # development mode turns on debug mode, source maps, and path info, default: false
|
43
|
+
colors: true # use colors in displaying webpack output, default: true
|
44
|
+
progress: true # display a progress bar for long compiles, default: true
|
45
|
+
config: 'path_to_config' # define an alternate config file
|
44
46
|
```
|
45
47
|
|
46
48
|
## Notes on Guard 1.x
|
data/lib/guard/webpack.rb
CHANGED
@@ -4,6 +4,7 @@ module Guard
|
|
4
4
|
require 'guard/webpack/runner'
|
5
5
|
|
6
6
|
DEFAULT_OPTIONS = {
|
7
|
+
d: false,
|
7
8
|
progress: true,
|
8
9
|
colors: true
|
9
10
|
}
|
@@ -14,7 +15,6 @@ module Guard
|
|
14
15
|
with_defaults(args[-1]) do |opts|
|
15
16
|
super(opts)
|
16
17
|
@runner = Runner.new(opts)
|
17
|
-
@runner.start
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
data/lib/guard/webpack/runner.rb
CHANGED
@@ -43,8 +43,10 @@ class Guard::Webpack::Runner
|
|
43
43
|
|
44
44
|
def option_flags
|
45
45
|
output = ""
|
46
|
+
output += " -d" if @options[:d]
|
46
47
|
output += " --colors" if @options[:colors]
|
47
48
|
output += " --progress" if @options[:progress]
|
49
|
+
output += " --config #{@options[:config]}" if @options[:config]
|
48
50
|
output
|
49
51
|
end
|
50
52
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-webpack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Gisi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
91
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.
|
92
|
+
rubygems_version: 2.4.5.1
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
95
|
summary: Guard plugin for Webpack
|