Consume icon.json files as assets
Instead of loading `icons.json` and `file_icons/file_icons.json` from `node_modules/@gitlab/svgs/dist`, we can also make them assets and consume them from the asset pipeline. This means that if assets are pre-compiled inside of `compile-test-assets`, they will be included in the asset bundle and our rspec tests can pass _without_ relying on the `node_modules` folder.
显示
- .gitlab/ci/frontend.gitlab-ci.yml 0 个添加, 2 个删除.gitlab/ci/frontend.gitlab-ci.yml
- app/helpers/icons_helper.rb 13 个添加, 2 个删除app/helpers/icons_helper.rb
- config/application.rb 1 个添加, 0 个删除config/application.rb
- lib/tasks/gitlab/assets.rake 1 个添加, 0 个删除lib/tasks/gitlab/assets.rake
- spec/helpers/icons_helper_spec.rb 15 个添加, 7 个删除spec/helpers/icons_helper_spec.rb
加载中
想要评论请 注册 或 登录