hem-tasks-magento2 2.4.0 → 2.5.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: 2564be8a4f843388708e8012fc8cce5006eeb1c5
4
- data.tar.gz: 2f493736544fb9e124cbae16fe18163c8efa6d69
3
+ metadata.gz: 3c82183b612a27ceaa60fe424594d591c2389d8c
4
+ data.tar.gz: 27c059b772bf42fec993f71e62e633b794f15d6e
5
5
  SHA512:
6
- metadata.gz: d5d73aa604a87dc1051215d68114f8411329d4a65b203024bd3ff82a44d3c4ab42c3e55ea7e5b99bca2e941189ed2727f3e75f55ce53355bec4cdca073f129b6
7
- data.tar.gz: 9693ac9a1aad5b0750a9ca17f40f94848058e26558156467a49f3bc7feac7044663b2191313fa1e0b754efc77e54b2172ab7befc6b743ea6d405ae6495aaa5d8
6
+ metadata.gz: 218bf6927ca97d0d56cb9fafe8d7db47fb6f74c813d41fc0a189c4fae06da24c7e6a8e9b9787fa6508a5a97dee85e89a0c0800df591837389d0e5d19be3c9e04
7
+ data.tar.gz: ecd3d46a6a91c9dccd398560f9c70b4f949b119e55173777cd90c1f581a73fd64933b1dca6f13bd9ba8a262a5a031f94f12b5b3e90fc5aced2afe06dff435342
@@ -12,6 +12,17 @@ namespace :development do
12
12
 
13
13
  desc 'Compile the less files'
14
14
  task :compile_less do
15
+ Rake::Task['magento2:development:compile_less_frontend'].invoke
16
+ Rake::Task['magento2:development:compile_less_backend'].invoke
17
+ end
18
+
19
+ desc 'Compile the less files for the frontend themes'
20
+ task :compile_less_frontend do
21
+ has_javascript_option = run 'bin/magento setup:static-content:deploy --help | grep -- --no-javascript || true',
22
+ capture: true
23
+
24
+ next if has_javascript_option == ''
25
+
15
26
  Hem.ui.title 'Compiling Less files for the en_GB frontend'
16
27
  run_command 'bin/magento setup:static-content:deploy --no-javascript '\
17
28
  '--no-images --no-html --no-misc --no-fonts --no-css '\
@@ -20,6 +31,14 @@ namespace :development do
20
31
  realtime: true,
21
32
  indent: 2
22
33
  Hem.ui.success('Compile finished')
34
+ end
35
+
36
+ desc 'Compile the less files for the admin/backend themes'
37
+ task :compile_less_backend do
38
+ has_javascript_option = run 'bin/magento setup:static-content:deploy --help | grep -- --no-javascript || true',
39
+ capture: true
40
+
41
+ next if has_javascript_option == ''
23
42
 
24
43
  Hem.ui.title 'Compiling Less files for the en_GB and en_US backend'
25
44
  run_command 'bin/magento setup:static-content:deploy --no-javascript '\
@@ -1,7 +1,7 @@
1
1
  module Hem
2
2
  module Tasks
3
3
  module Magento2
4
- VERSION = '2.4.0'.freeze
4
+ VERSION = '2.5.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: 2.4.0
4
+ version: 2.5.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-17 00:00:00.000000000 Z
12
+ date: 2016-10-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler