Shopify/packwerk

[Issue Report] Lack of information about packages that are located outside the/app folder

Closed this issue · 1 comments

Description
Missing instructions for properly configuring the structure of automatic path loading for packages located outside the /app folder.

Example:

rails-app/packs/components/app/model/...
rails-app/packs/components/app/public/...
rails-app/packs/components/package.yml

How to resolve:
Add config.paths.add 'packs', glob: '*/app/*', eager_load: true to application.rb

This is not an issue with Packwerk. Packwerk will respect any autoload paths you have set up. If your application works, packwerk will work.

However, to give you some help - it seems that you are using https://github.com/rubyatscale/packs ? In which case you most likely will want to use https://github.com/rubyatscale/packs-rails too. Note however that those are separate projects that are not used by Shopify. Shopify uses engines to set up autoload paths, see #361.