Skip to content

Commit db8ee13

Browse files
authored
Merge pull request #319 from platanus/webpacker
Webpacker
2 parents 5929cc0 + eed97f7 commit db8ee13

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2374
-923
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ spec/dummy/public/system
1212
.tags
1313
.tags_sorted_by_file
1414
vendor/bundle
15+
node_modules
16+
src

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ rvm:
55
- 2.6.5
66
- 2.7.0
77
script:
8-
- cd spec/dummy && RAILS_ENV=test bundle exec rake db:create db:migrate
9-
- cd ../.. && bundle exec rspec spec
8+
- bundle exec rake tests
109
addons:
1110
chrome: stable
1211
before_install:
12+
- nvm install --lts
1313
- gem install bundler:1.17.2
1414
- google-chrome-stable --headless --disable-gpu --no-sandbox --remote-debugging-port=9222 http://localhost &
1515
env:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
88
* Added filters option in nested selects [#301](https://github.com/platanus/activeadmin_addons/pull/301)
99
* Date range filters and date picker inputs now has `autocomplete: 'off'` by default [#320](https://github.com/platanus/activeadmin_addons/pull/320)
1010
* Added `tags` option to default select2 inputs [#322](https://github.com/platanus/activeadmin_addons/pull/322)
11+
* Added Webpacker compatibility, if ActiveAdmin has been installed using that mode. [#319](https://github.com/platanus/activeadmin_addons/pull/319)
1112

1213
##### Fixed
1314
* Added CSRF header for interactive select tag [#262](https://github.com/platanus/activeadmin_addons/pull/262)

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ gemspec
1313
# To use debugger
1414
# gem "debugger"
1515
gem "activeadmin"
16-
gem "devise"

Gemfile.lock

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ GEM
7373
activesupport (>= 3.0.0)
7474
arel (9.0.0)
7575
ast (2.4.0)
76-
bcrypt (3.1.13)
7776
builder (3.2.4)
7877
capybara (3.31.0)
7978
addressable
@@ -92,12 +91,6 @@ GEM
9291
concurrent-ruby (1.1.6)
9392
crass (1.0.6)
9493
database_cleaner (1.8.2)
95-
devise (4.7.1)
96-
bcrypt (~> 3.0)
97-
orm_adapter (~> 0.1)
98-
railties (>= 4.1.0)
99-
responders
100-
warden (~> 1.2.3)
10194
diff-lcs (1.3)
10295
enumerize (2.3.1)
10396
activesupport (>= 3.2)
@@ -181,7 +174,6 @@ GEM
181174
notiffany (0.1.3)
182175
nenv (~> 0.1)
183176
shellany (~> 0.0)
184-
orm_adapter (0.5.0)
185177
paperclip (6.1.0)
186178
activemodel (>= 4.2.0)
187179
activesupport (>= 4.2.0)
@@ -307,8 +299,6 @@ GEM
307299
tzinfo (1.2.6)
308300
thread_safe (~> 0.1)
309301
unicode-display_width (1.4.1)
310-
warden (1.2.8)
311-
rack (>= 2.0.6)
312302
webdrivers (4.2.0)
313303
nokogiri (~> 1.6)
314304
rubyzip (>= 1.3.0)
@@ -331,7 +321,6 @@ DEPENDENCIES
331321
activeadmin_addons!
332322
capybara-selenium
333323
database_cleaner
334-
devise
335324
enumerize (~> 2.0)
336325
factory_bot_rails
337326
guard

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ filter :category_id, as: :search_select_filter
228228
Use default active_admin theme.
229229

230230
#### Material Theme
231+
##### Not compatible when Active Admin has been installed in webpack mode
232+
231233
Show material design theme using [active_material](https://github.com/vigetlabs/active_material). If you want to use it, you should run the generator using the flag `theme` as follow:
232234

233235
```ruby
@@ -251,9 +253,10 @@ For material documentation you should go to [gem documentation](http://code.vige
251253

252254
1. Fork it
253255
2. Create your feature branch (`git checkout -b my-new-feature`)
254-
3. Commit your changes (`git commit -am 'Add some feature'`)
255-
4. Push to the branch (`git push origin my-new-feature`)
256-
5. Create new Pull Request
256+
3. If you changed the javascript/scss files, run `yarn build`.
257+
4. Commit your changes (`git commit -am 'Add some feature'`)
258+
5. Push to the branch (`git push origin my-new-feature`)
259+
6. Create new Pull Request
257260

258261
If you want to collaborate, please check [the rules](docs/CONTRIBUTING.md) first.
259262

Rakefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,11 @@ RDoc::Task.new(:rdoc) do |rdoc|
1414
rdoc.rdoc_files.include('lib/**/*.rb')
1515
end
1616

17-
Bundler::GemHelper.install_tasks
17+
task :tests do
18+
sh "bin/setup"
19+
sh "rspec"
20+
sh "bin/setup --use_webpacker"
21+
sh "rspec"
22+
end
1823

24+
Bundler::GemHelper.install_tasks

0 commit comments

Comments
 (0)