hem-tasks-magento2 3.0.0 → 3.1.0

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: 39c2e856e63b110a9260fcdc76853d31d88b2092
4
- data.tar.gz: 764986a9677b0957c03546e8f9f27ab145aee081
3
+ metadata.gz: 2a9f485a61a47ce2c1c1f94fd8759604bbb1e482
4
+ data.tar.gz: 5d8a737b0f59181d3c7a97c3752295b488f0676f
5
5
  SHA512:
6
- metadata.gz: a8699684f6517e53fed799671419e1179ea3fe0f83610ce521dddd362b71764457ebbc45b3431fb06ee75eee7942ef8a7b1a98fbad11cdc766b78d73d20bfe01
7
- data.tar.gz: 9a9c52511e27f1b224ba855180f1ca3b0d92ef6004355524fb9758b3b113e805b926bb0bdbf261488aecfdb42ee1d64d7cdf2432af2c2faeb5d01cbb70810d08
6
+ metadata.gz: 901fc52b5a708864556f466d779ffbffdf7b3aa8168bf463504b80bbaf9f47f751cc5c3f00ca97d0320fbad22bd3c2d541cb1675fae7d49b329904e525cdf75f
7
+ data.tar.gz: 7292ae4e84c9fa23001cd7bfcb0baa36fed60d54867a70b85c250acdc5391c104aa17f049272362a2659d389d5d656569c60c7c51240526a0451354c738acc88
@@ -23,13 +23,16 @@ namespace :development do
23
23
 
24
24
  next if has_javascript_option == ''
25
25
 
26
+ has_force_option = run 'bin/magento setup:static-content:deploy --help | grep -- --force || true',
27
+ capture: true
28
+
26
29
  Hem.ui.title 'Compiling Less files for the en_GB frontend'
27
- run_command 'bin/magento setup:static-content:deploy --no-javascript '\
28
- '--no-images --no-html --no-misc --no-fonts --no-css '\
29
- '--language en_GB --area frontend '\
30
- '--theme Magento/luma --theme Magento/blank',
31
- realtime: true,
32
- indent: 2
30
+ command = 'bin/magento setup:static-content:deploy --no-javascript '\
31
+ '--no-images --no-html --no-misc --no-fonts --no-css '\
32
+ '--language en_GB --area frontend '\
33
+ '--theme Magento/luma --theme Magento/blank'
34
+ command += ' --force' if has_force_option
35
+ run_command command, realtime: true, indent: 2
33
36
  Hem.ui.success('Compile finished')
34
37
  end
35
38
 
@@ -40,12 +43,15 @@ namespace :development do
40
43
 
41
44
  next if has_javascript_option == ''
42
45
 
46
+ has_force_option = run 'bin/magento setup:static-content:deploy --help | grep -- --force || true',
47
+ capture: true
48
+
43
49
  Hem.ui.title 'Compiling Less files for the en_GB and en_US backend'
44
- run_command 'bin/magento setup:static-content:deploy --no-javascript '\
45
- '--no-images --no-html --no-misc --no-fonts --no-css '\
46
- '--language en_GB --language en_US --area adminhtml',
47
- realtime: true,
48
- indent: 2
50
+ command += ' --force' if has_force_option
51
+ command = 'bin/magento setup:static-content:deploy --no-javascript '\
52
+ '--no-images --no-html --no-misc --no-fonts --no-css '\
53
+ '--language en_GB --language en_US --area adminhtml'
54
+ run_command command, realtime: true, indent: 2
49
55
  Hem.ui.success('Compile finished')
50
56
  end
51
57
 
@@ -1,7 +1,7 @@
1
1
  module Hem
2
2
  module Tasks
3
3
  module Magento2
4
- VERSION = '3.0.0'.freeze
4
+ VERSION = '3.1.0'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hem-tasks-magento2
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Norbert Nagy
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-10-25 00:00:00.000000000 Z
12
+ date: 2017-10-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler