discourse/lib/theme_store
David Taylor 93c96cf6fa
DEV: Filter files included by theme DirectoryImporter (#23842)
To match discourse_theme CLI behavior, we should skip hidden files/directories (e.g. `.git`), and two regular directories: `node_modules/` and `src/`.

Without these excludes, it's very easy for a theme to hit the file count limit. e.g. when trying this with discourse-kanban-board, I got:

> The number of files (20366) in the theme has exceeded the maximum allowed number of files (1024)
2023-10-09 12:03:02 +01:00
..
base_importer.rb SECURITY: Add limits for themes and theme assets 2023-09-12 15:31:31 -03:00
directory_importer.rb DEV: Filter files included by theme DirectoryImporter (#23842) 2023-10-09 12:03:02 +01:00
git_importer.rb DEV: Add support for uploading a theme from a directory in system tests (#23402) 2023-09-12 07:38:47 +08:00
zip_exporter.rb DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
zip_importer.rb SECURITY: Add limits for themes and theme assets 2023-09-12 15:31:31 -03:00