sumodev 1.5.3 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/Gemfile.lock +5 -0
- data/lib/sumodev/commands/project.rb +15 -3
- data/lib/sumodev/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e3dae72b193cff5746b11dd6a6730dbdf36ab15
|
4
|
+
data.tar.gz: 82f33d907b89fc5d85d35f4bd0d9d84811c7b1eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53bf7d9564bfdf2cf545e780d06c218e93a276366207a005ab2ef8d2dfeb4b07c304de12a4618ef3db93f344d7fcebbc2dc6d290f528c9048f64271019ab6fa2
|
7
|
+
data.tar.gz: 2f36dc4e3fe57b2d573cffc6c33159800d56d67be628d1ab76606e0961c8a182f83156171f43d0fe38fbb2fea60856c3c5386d550c9f12838ad51f59483dde71
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -53,6 +53,7 @@ class Sumodev::Commands::Project < Sumodev::Command
|
|
53
53
|
option :project_path, :desc => "the path where the project should be placed"
|
54
54
|
option :bundles, :type => :boolean, :default => true, :desc => "install bundles"
|
55
55
|
option :node_modules, :type => :boolean, :default => true, :desc => "install node-modules"
|
56
|
+
option :npm_shrinkwrap, :type => :boolean, :default => true, :desc => "create npm shrinkwrap"
|
56
57
|
option :bower, :type => :boolean, :default => true, :desc => "install bower packages"
|
57
58
|
option :composer, :type => :boolean, :default => true, :desc => "install composer packages"
|
58
59
|
option :composer_run_scripts, :type => :boolean, :default => true, :desc => "run composer scripts"
|
@@ -102,6 +103,7 @@ class Sumodev::Commands::Project < Sumodev::Command
|
|
102
103
|
# install assets
|
103
104
|
install_bundles(project_path) if options[:bundles]
|
104
105
|
install_node_modules(project_path) if options[:node_modules]
|
106
|
+
create_npm_shrinkwrap(project_path) if options[:npm_shrinkwrap]
|
105
107
|
install_bower_packages(project_path) if options[:bower]
|
106
108
|
install_composer_packages(project_path, options[:composer_run_scripts]) if options[:composer]
|
107
109
|
|
@@ -263,12 +265,23 @@ class Sumodev::Commands::Project < Sumodev::Command
|
|
263
265
|
run_command_without_output(
|
264
266
|
[
|
265
267
|
"npm install",
|
266
|
-
"npm shrinkwrap --dev",
|
267
268
|
],
|
268
269
|
path,
|
269
270
|
"--> Installing node modules")
|
270
271
|
end
|
271
272
|
|
273
|
+
def create_npm_shrinkwrap(path)
|
274
|
+
unless File.file?("#{path}/package.json")
|
275
|
+
return
|
276
|
+
end
|
277
|
+
|
278
|
+
run_command_without_output([
|
279
|
+
"npm shrinkwrap --dev",
|
280
|
+
],
|
281
|
+
path,
|
282
|
+
"--> Creating npm shrinkwrap")
|
283
|
+
end
|
284
|
+
|
272
285
|
def install_bower_packages(path)
|
273
286
|
unless File.file?("#{path}/bower.json")
|
274
287
|
return
|
@@ -298,8 +311,7 @@ class Sumodev::Commands::Project < Sumodev::Command
|
|
298
311
|
"cp -r src/Frontend/Themes/Bootstrap src/Frontend/Themes/Custom",
|
299
312
|
"sed -i '' -e 's|.*<name>bootstrap</name>.*| <name>custom</name>|g' src/Frontend/Themes/Custom/info.xml",
|
300
313
|
"sed -i '' -e 's/set :theme.*/set :theme, \"Custom\"/g' Capfile",
|
301
|
-
"sed -i '' -e 's/.*\"theme\":.*/ \"theme\": \"Custom\",/g' package.json"
|
302
|
-
"mysql #{database} -e \"UPDATE modules_settings SET value='s:6:\\\"Custom\\\"' where module='Core' and name='theme'\""
|
314
|
+
"sed -i '' -e 's/.*\"theme\":.*/ \"theme\": \"Custom\",/g' package.json"
|
303
315
|
],
|
304
316
|
path,
|
305
317
|
"--> Creating the initial Custom theme"
|
data/lib/sumodev/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sumodev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan De Poorter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -28,42 +28,42 @@ dependencies:
|
|
28
28
|
name: thor
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: net-ssh
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: net-scp
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: A command line tool to access all things you want
|