-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Packwerk gem, and start adding config for it
- Loading branch information
Showing
6 changed files
with
211 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
# This file was auto-generated by Packwerk through `packwerk init` | ||
|
||
# Needs to be run in test environment in order to have test helper paths available in the autoload paths | ||
ENV["RAILS_ENV"] = "test" | ||
|
||
# Command line arguments needs to be duplicated because spring modifies it | ||
packwerk_argv = ARGV.dup | ||
|
||
begin | ||
load(File.expand_path("spring", __dir__)) | ||
rescue LoadError => e | ||
raise unless e.message.include?("spring") | ||
end | ||
|
||
require File.expand_path("../config/environment", __dir__) | ||
|
||
require "packwerk" | ||
|
||
cli = Packwerk::Cli.new | ||
cli.run(packwerk_argv) |
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 @@ | ||
# ShinyCMS ~ https://shinycms.org | ||
# | ||
# Copyright 2009-2021 Denny de la Haye ~ https://denny.me | ||
# | ||
# ShinyCMS is free software; you can redistribute it and/or modify it under the terms of the GPL (version 2 or later) | ||
|
||
# Packwerk inflections config | ||
|
||
# List your inflections in this file instead of `inflections.rb` | ||
# See steps to set up custom inflections: | ||
# https://github.com/Shopify/packwerk/blob/main/USAGE.md#Inflections | ||
|
||
acronym: | ||
# Acronyms used in the ShinyCMS code | ||
- CMS | ||
- IP | ||
- HTML | ||
- MJML | ||
- SEO | ||
- ShinyCMS | ||
- URL | ||
|
||
# Common acronyms, that might be used in CMS content | ||
# (to prevent them being misformatted by methods such as .titlecase) | ||
- AI | ||
- API | ||
- BBC | ||
- CEO | ||
- CPU | ||
- CRM | ||
- CTO | ||
- EU | ||
- PR | ||
- REST | ||
- RESTful | ||
- UK | ||
- USA | ||
- USB | ||
- VIP | ||
- WWW |
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,29 @@ | ||
# ShinyCMS ~ https://shinycms.org | ||
# | ||
# Copyright 2009-2021 Denny de la Haye ~ https://denny.me | ||
# | ||
# ShinyCMS is free software; you can redistribute it and/or modify it under the terms of the GPL (version 2 or later) | ||
|
||
# Packwerk config for the root package of the application | ||
|
||
# Validate the configuration using `bin/packwerk validate` | ||
# Check your code using `packwerk check` | ||
|
||
# Turn on dependency checks for this package? | ||
enforce_dependencies: true | ||
|
||
# Turn on privacy checks for this package? | ||
enforce_privacy: false | ||
# Enforcing privacy is often not useful for the root package, because it would | ||
# require defining a public interface for something that should only be a thin | ||
# wrapper in the first place. We recommend enabling this for any new packages | ||
# you create to aid with encapsulation. | ||
|
||
# The public path for this package | ||
public_path: public/ | ||
|
||
# A list of this package's dependencies | ||
# Note: packages in this list require their own `package.yml` file | ||
# dependencies: | ||
# - plugins/ShinyAccess | ||
# ... |
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,96 @@ | ||
# ShinyCMS ~ https://shinycms.org | ||
# | ||
# Copyright 2009-2021 Denny de la Haye ~ https://denny.me | ||
# | ||
# ShinyCMS is free software; you can redistribute it and/or modify it under the terms of the GPL (version 2 or later) | ||
|
||
# Packwerk config | ||
|
||
# https://github.com/Shopify/packwerk/blob/main/USAGE.md#setting-up-the-configuration-file | ||
|
||
# List of patterns for folder paths to include | ||
# include: | ||
# - "**/*.{rb,rake,erb}" | ||
|
||
# List of patterns for folder paths to exclude | ||
# exclude: | ||
# - "{bin,node_modules,script,tmp,vendor}/**/*" | ||
|
||
# Patterns to find package configuration files | ||
# package_paths: "**/" | ||
|
||
# List of application load paths | ||
# These load paths were auto generated by Packwerk. | ||
load_paths: | ||
- plugins/ShinyCMS/app/controllers | ||
- plugins/ShinyCMS/app/controllers/concerns | ||
- plugins/ShinyCMS/app/helpers | ||
- plugins/ShinyCMS/app/lib | ||
- plugins/ShinyCMS/app/mailer_previews | ||
- plugins/ShinyCMS/app/mailers | ||
- plugins/ShinyCMS/app/models | ||
- plugins/ShinyCMS/app/models/concerns | ||
- plugins/ShinyCMS/app/policies | ||
- plugins/ShinyAccess/app/controllers | ||
- plugins/ShinyAccess/app/helpers | ||
- plugins/ShinyAccess/app/jobs | ||
- plugins/ShinyAccess/app/mailers | ||
- plugins/ShinyAccess/app/models | ||
- plugins/ShinyAccess/app/policies | ||
- plugins/ShinyBlog/app/controllers | ||
- plugins/ShinyBlog/app/helpers | ||
- plugins/ShinyBlog/app/jobs | ||
- plugins/ShinyBlog/app/models | ||
- plugins/ShinyBlog/app/policies | ||
- plugins/ShinyForms/app/controllers | ||
- plugins/ShinyForms/app/helpers | ||
- plugins/ShinyForms/app/jobs | ||
- plugins/ShinyForms/app/mailers | ||
- plugins/ShinyForms/app/models | ||
- plugins/ShinyForms/app/policies | ||
- plugins/ShinyInserts/app/controllers | ||
- plugins/ShinyInserts/app/helpers | ||
- plugins/ShinyInserts/app/models | ||
- plugins/ShinyInserts/app/policies | ||
- plugins/ShinyLists/app/controllers | ||
- plugins/ShinyLists/app/helpers | ||
- plugins/ShinyLists/app/models | ||
- plugins/ShinyLists/app/policies | ||
- plugins/ShinyNews/app/controllers | ||
- plugins/ShinyNews/app/helpers | ||
- plugins/ShinyNews/app/jobs | ||
- plugins/ShinyNews/app/models | ||
- plugins/ShinyNews/app/policies | ||
- plugins/ShinyNewsletters/app/controllers | ||
- plugins/ShinyNewsletters/app/jobs | ||
- plugins/ShinyNewsletters/app/mailers | ||
- plugins/ShinyNewsletters/app/models | ||
- plugins/ShinyNewsletters/app/policies | ||
- plugins/ShinyPages/app/controllers | ||
- plugins/ShinyPages/app/helpers | ||
- plugins/ShinyPages/app/models | ||
- plugins/ShinyPages/app/policies | ||
- plugins/ShinyPages/app/validators | ||
- plugins/ShinyProfiles/app/controllers | ||
- plugins/ShinyProfiles/app/helpers | ||
- plugins/ShinyProfiles/app/models | ||
- plugins/ShinyProfiles/app/policies | ||
- plugins/ShinySEO/app/controllers | ||
- plugins/ShinySEO/app/helpers | ||
- plugins/ShinySEO/app/models | ||
- plugins/ShinySearch/app/controllers | ||
- plugins/ShinySearch/app/helpers | ||
- plugins/ShinySearch/app/jobs | ||
- plugins/ShinySearch/app/models | ||
- plugins/ShinySearch/app/models/concerns | ||
- app/controllers | ||
- app/models | ||
- app/policies | ||
- app/validators | ||
|
||
# List of custom associations, if any | ||
# custom_associations: | ||
# - "cache_belongs_to" | ||
|
||
# Location of inflections file | ||
# inflections_file: "config/inflections.yml" |