decidim 0.25.0.rc3 → 0.25.0.rc4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of decidim might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 353648d800f30d6d1ae533dbcf53e98db11017e0d7fdeca0ed67ba915e1c4f35
4
- data.tar.gz: 911bf9addcf98e2cfcaaa6e9342545255b3b155cd73f10b3b26ca04118833ebb
3
+ metadata.gz: 669bd9a525ab33dd37ea3b2aa68e644ff34751595edad6c70714f7d73314f3da
4
+ data.tar.gz: 0dda19b573c625137eac6f17764b75abc0067e87ab3eed8bb824c839829a4620
5
5
  SHA512:
6
- metadata.gz: b599e6f94100f7ffa523d9a8c9445b6829b2a94ba54ca452295bdade86f4721b7836b27afee87524f1131e5ecf43aee076b74032b2aae31366c220622939db29
7
- data.tar.gz: ff97e3b5954f0f22e4716c183c80a210ad8911d42e9fa1888dff1b0eebf1bc5a3d2c22e7d579194e575adcf9ed16629291d999bf2b14c8c9a9016f7b53047275
6
+ metadata.gz: 386340222687878a528eac94e36d28e0bcdb5c2f6ed9ea0bd0af2b4b490d9eafa6302580170f56b2d8a3e44d7c7a5c843e0e6f7b086d662f2a06be897fc649a3
7
+ data.tar.gz: e7019090a58beb62bf011681d017ed3c9844b9fbb56a53b5988538e55a096553de478f493e3a0834e8fbccb3d5c69ece06fb874be8af313844898bbef0b2b047
data/Rakefile CHANGED
@@ -80,7 +80,31 @@ task :bundle do
80
80
  [".", "decidim-generators", "decidim_app-design"].each do |dir|
81
81
  Bundler.with_original_env do
82
82
  puts "Updating #{dir}...\n"
83
- Dir.chdir(dir) { sh "bundle install" }
83
+ system!("bundle install", dir)
84
84
  end
85
85
  end
86
86
  end
87
+
88
+ desc "Synchronize npm packages files on the whole repo"
89
+ task :webpack do
90
+ FileUtils.rm_rf(decidim_app_design_path.join("package-lock.json"))
91
+ FileUtils.rm_rf(decidim_app_design_path.join("packages"))
92
+ FileUtils.cp_r(root_folder.join("package.json"), decidim_app_design_path)
93
+ FileUtils.cp_r(root_folder.join("package-lock.json"), decidim_app_design_path)
94
+ FileUtils.cp_r(root_folder.join("packages"), decidim_app_design_path)
95
+
96
+ system!("npm install", root_folder)
97
+ system!("npm install", decidim_app_design_path)
98
+ end
99
+
100
+ def root_folder
101
+ @root_folder ||= Pathname.new(__dir__)
102
+ end
103
+
104
+ def decidim_app_design_path
105
+ @decidim_app_design_path ||= Pathname.new(root_folder.join("decidim_app-design"))
106
+ end
107
+
108
+ def system!(command, path)
109
+ system("cd #{path} && #{command}") || abort("\n== Command #{command} failed ==")
110
+ end
@@ -15,8 +15,8 @@ It's recommended to understand how Webpacker works. More information:
15
15
 
16
16
  Before starting the migration, please check you have the following dependencies installed:
17
17
 
18
- - Node.js version 15.14.0 (this version is mandatory)
19
- - Npm version 7.7.0 (it works with other versions, but this is the recommended)
18
+ - Node.js version 16.9.x (this version is mandatory)
19
+ - Npm version 7.21.x (it works with other versions, but this is the recommended)
20
20
 
21
21
  == Add Webpacker to the application
22
22
 
@@ -5,8 +5,8 @@ In order to develop on decidim, you'll need:
5
5
  * *Git* 2.15+
6
6
  * *PostgreSQL* 12.7+
7
7
  * *Ruby* 2.7.1
8
- * *NodeJS* 15.14.x
9
- * *Npm* 7.7.x
8
+ * *NodeJS* 16.9.x
9
+ * *Npm* 7.21.x
10
10
  * *ImageMagick*
11
11
  * *Chrome* browser and https://sites.google.com/a/chromium.org/chromedriver/[chromedriver].
12
12
 
@@ -3,6 +3,6 @@
3
3
  # This holds the decidim version and the faker version it uses.
4
4
  module Decidim
5
5
  def self.version
6
- "0.25.0.rc3"
6
+ "0.25.0.rc4"
7
7
  end
8
8
  end