sumodev 1.7.7 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sumodev/commands/project.rb +2 -14
- data/lib/sumodev/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 007ab07d4773633aa6c99b35f02bda8e35e174c3
|
4
|
+
data.tar.gz: cb4bff406347c3e69bd440687c39be47ecc2172e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6941b3fd0db0cbc678969f08384632b2ac966b138bf0072c4a5cd951750197222e321d391b85977e8a9176e46beb677b2ffd9f86b489e2923a87642349447c22
|
7
|
+
data.tar.gz: '082e951b4c53c8e49ca0ed25663721e05fc1cc0d3f4316cd36b38d923301a2910f8fdb7fb3a88f7d0fba3df64ec505115610fb532142a5c536af9a389ac6102d'
|
@@ -53,7 +53,6 @@ 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"
|
57
56
|
option :bower, :type => :boolean, :default => true, :desc => "install bower packages"
|
58
57
|
option :composer, :type => :boolean, :default => true, :desc => "install composer packages"
|
59
58
|
option :composer_run_scripts, :type => :boolean, :default => true, :desc => "run composer scripts"
|
@@ -103,7 +102,6 @@ class Sumodev::Commands::Project < Sumodev::Command
|
|
103
102
|
# install assets
|
104
103
|
install_bundles(project_path) if options[:bundles]
|
105
104
|
install_node_modules(project_path) if options[:node_modules]
|
106
|
-
create_npm_shrinkwrap(project_path) if options[:npm_shrinkwrap]
|
107
105
|
install_bower_packages(project_path) if options[:bower]
|
108
106
|
install_composer_packages(project_path, options[:composer_run_scripts]) if options[:composer]
|
109
107
|
|
@@ -146,7 +144,7 @@ class Sumodev::Commands::Project < Sumodev::Command
|
|
146
144
|
"git add Capfile",
|
147
145
|
"git add app/config/parameters_install.yml",
|
148
146
|
"git add package.json",
|
149
|
-
"git add
|
147
|
+
"git add yarn.lock",
|
150
148
|
"git add Gemfile.lock",
|
151
149
|
"git add src/Frontend/Themes/Custom",
|
152
150
|
"git commit -n -m 'Init configuration of the project'",
|
@@ -257,22 +255,12 @@ class Sumodev::Commands::Project < Sumodev::Command
|
|
257
255
|
|
258
256
|
run_command_without_output(
|
259
257
|
[
|
260
|
-
"
|
258
|
+
"yarn install",
|
261
259
|
],
|
262
260
|
path,
|
263
261
|
"--> Installing node modules")
|
264
262
|
end
|
265
263
|
|
266
|
-
def create_npm_shrinkwrap(path)
|
267
|
-
return unless File.file?("#{path}/package.json")
|
268
|
-
|
269
|
-
run_command_without_output([
|
270
|
-
"npm shrinkwrap --dev",
|
271
|
-
],
|
272
|
-
path,
|
273
|
-
"--> Creating npm shrinkwrap")
|
274
|
-
end
|
275
|
-
|
276
264
|
def install_bower_packages(path)
|
277
265
|
return unless File.file?("#{path}/bower.json")
|
278
266
|
|
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.8.0
|
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: 2017-
|
11
|
+
date: 2017-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|