sumodev 1.7.7 → 1.8.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: 13965f142f44e2f4960dfd4398d464a76d30fe50
4
- data.tar.gz: 790451417d59f0822536b2cd14a9c348b551b6bf
3
+ metadata.gz: 007ab07d4773633aa6c99b35f02bda8e35e174c3
4
+ data.tar.gz: cb4bff406347c3e69bd440687c39be47ecc2172e
5
5
  SHA512:
6
- metadata.gz: 59f7ddea3ef1e75889a62c3f40ce489c4480e5c9db6cef8078f36db844d9b77bbe58801c2fc19ec1d01e962242b0329cdc627f98a98648397b2b7537737f3aff
7
- data.tar.gz: dca5c1fd925b4a28d832c77aab28a9f0c45f121c0e398c606790498b6166ea2681c233ae61c824b0a4e540971ef69810f2451be9f882f98b1d46e7ab6ac6aad8
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 npm-shrinkwrap.json",
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
- "npm install",
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
 
@@ -1,3 +1,3 @@
1
1
  module Sumodev
2
- VERSION = "1.7.7"
2
+ VERSION = "1.8.0"
3
3
  end
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.7.7
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-01-03 00:00:00.000000000 Z
11
+ date: 2017-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport