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 +4 -4
- data/Rakefile +25 -1
- data/docs/modules/develop/pages/guide_migrate_webpacker_app.adoc +2 -2
- data/docs/modules/install/pages/manual.adoc +2 -2
- data/lib/decidim/version.rb +1 -1
- data/package-lock.json +35 -1532
- data/package.json +3 -4
- data/packages/browserslist-config/package.json +2 -6
- data/packages/core/package.json +4 -4
- data/packages/dev/package.json +1 -5
- data/packages/elections/package.json +1 -5
- data/packages/eslint-config/package.json +1 -5
- data/packages/stylelint-config/package.json +2 -6
- data/packages/webpacker/package.json +2 -7
- metadata +42 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 669bd9a525ab33dd37ea3b2aa68e644ff34751595edad6c70714f7d73314f3da
|
4
|
+
data.tar.gz: 0dda19b573c625137eac6f17764b75abc0067e87ab3eed8bb824c839829a4620
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
19
|
-
- Npm version 7.
|
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*
|
9
|
-
* *Npm* 7.
|
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
|
|