-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from CodiTramuntana/migrate-from-sprockets-to-w…
…ebpacker Migrate from sprockets to webpacker
- Loading branch information
Showing
8 changed files
with
50 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.7.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Changelog | ||
Current version is defined at `lib/decidim/verify_wo_registration/version.rb` | ||
|
||
## Version 0.0.2 | ||
*Migrate Sprockets to Webpacker to fit the 0.25 version of decidim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# frozen_string_literal: true | ||
# This file is located at `config/assets.rb` of your module. | ||
|
||
# Define the base path of your module. Please note that `Rails.root` may not be | ||
# used because we are not inside the Rails environment when this file is loaded. | ||
base_path = File.expand_path("..", __dir__) | ||
|
||
# Register an additional load path for webpack. All the assets within these | ||
# directories will be available for inclusion within the Decidim assets. For | ||
# example, if you have `app/packs/src/decidim/foo.js`, you can include that file | ||
# in your JavaScript entrypoints (or other JavaScript files within Decidim) | ||
# using `import "src/decidim/foo"` after you have registered the additional path | ||
# as follows. | ||
Decidim::Webpacker.register_path("#{base_path}/app/packs") | ||
|
||
# Register the entrypoints for your module. These entrypoints can be included | ||
# within your application using `javascript_pack_tag` and if you include any | ||
# SCSS files within the entrypoints, they become available for inclusion using | ||
# `stylesheet_pack_tag`. | ||
#Decidim::Webpacker.register_entrypoints( | ||
# decidim_foo: "#{base_path}/app/packs/entrypoints/decidim_foo.js", | ||
# decidim_foo_admin: "#{base_path}/app/packs/entrypoints/decidim_foo_admin.js" | ||
#) | ||
|
||
# If you want to import some extra SCSS files in the Decidim main SCSS file | ||
# without adding any extra stylesheet inclusion tags, you can use the following | ||
# method to register the stylesheet import for the main application. | ||
#Decidim::Webpacker.register_stylesheet_import("stylesheets/decidim/verify_wo_registration/engine") | ||
|
||
# If you want to do the same but include the SCSS file for the admin panel's | ||
# main SCSS file, you can use the following method. | ||
#Decidim::Webpacker.register_stylesheet_import("stylesheets/decidim/verify_wo_registration/admin_engine", group: :admin) | ||
|
||
# If you want to override some SCSS variables/settings for Foundation from the | ||
# module, you can add the following registered import. | ||
#Decidim::Webpacker.register_stylesheet_import("stylesheets/decidim/foo/settings", type: :settings) | ||
|
||
# If you want to do the same but override the SCSS variables of the admin | ||
# panel's styles, you can use the following method. | ||
#Decidim::Webpacker.register_stylesheet_import("stylesheets/decidim/foo/admin_settings", type: :settings, group: :admin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters