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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 556226b75f3ea526235cafa327403ce0c3a8fc08
4
- data.tar.gz: d319364454293f6362124c8b464ec5f30be178a4
3
+ metadata.gz: bbd0ae0f7ed3e94b157462fabcbe8789d31a5abd
4
+ data.tar.gz: a164c19c36ad18d190af827d0a5192be9520020f
5
5
  SHA512:
6
- metadata.gz: 7e1acfd35773500fe9bb8361c45223e4862101f6b56fa55df4716b7432fa5e43258968178b72dea83dd0387d6e63ad02320f2d7fa7a292ab715618346a0e81b9
7
- data.tar.gz: 5f37ec18217be5d301b828d63ef5e4e23462e70a3383c1deedb99d06569640daa6be594f8ed9912c48009c51c7f7ff725107dd88784cbfea280cfa73d08f8fcb
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
- colors: true # use colors in displaying webpack output, default: true
43
- progress: true # display a progress bar for long compiles, default: true
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
@@ -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
 
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module WebpackVersion
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
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.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-06-25 00:00:00.000000000 Z
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.2.2
92
+ rubygems_version: 2.4.5.1
93
93
  signing_key:
94
94
  specification_version: 4
95
95
  summary: Guard plugin for Webpack