FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update asset structure with webpacker gem · DMPRoadmap/roadmap@0fefaab · GitHub

Update asset structure with webpacker gem · DMPRoadmap/roadmap@0fefaab · GitHub
Skip to content

Navigation Menu

Repository navigation

Commit 0fefaab

Browse files
committed
Update asset structure with webpacker gem
1 parent db25309 commit 0fefaab

259 files changed

Lines changed: 12045 additions & 12841 deletions

File tree

Some content is hidden

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

‎.gitignore‎

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Ignore rbenv files
32
.ruby-version
43

@@ -25,7 +24,6 @@ public/videos/*
2524

2625
# Ignore branded content
2726
app/views/branded/*
28-
app/assets
2927
config/locales/static_pages/*.yml
3028

3129

@@ -55,7 +53,7 @@ config/branding.yml
5553

5654
# Ignore some of the initializers
5755
config/initializers/recaptcha.rb
58-
config/initializers/devise.rb
56+
# config/initializers/devise.rb
5957
config/initializers/wicked_pdf.rb
6058
config/initializers/fingerprint.rb
6159

@@ -84,14 +82,23 @@ config/locale/*/app.edit.po
8482
config/locale/*/app.po.time_stamp
8583

8684
# Front-end related
87-
lib/assets/node_modules
88-
lib/assets/npm-debug.log
89-
lib/assets/.eslintcache
9085
!.keep
9186
.byebug_history
9287
lib/data_cleanup/rules/org/fix_blank_abbreviation.yml
9388
.rspec
94-
node_modules
89+
90+
yarn-error.log
91+
yarn-debug.log*
92+
93+
.yarn-integrity
9594
.env
96-
public/packs
95+
package-lock.json
96+
node_modules
97+
/public/packs
98+
/public/packs-test
99+
97100
spec/examples.txt
101+
.babelrc
102+
.eslintignore
103+
.eslintrc.json
104+
.postcssrc.yml

‎.travis.yml‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ addons:
1818
chrome: stable
1919
apt:
2020
packages:
21-
- nodejs
2221
- wkhtmltopdf
2322

2423
# artifacts:
@@ -42,12 +41,25 @@ env:
4241
- DB_ADAPTER=postgresql
4342
- DB_ADAPTER=mysql2
4443

44+
before_install:
45+
- nvm install 10.10.0
46+
47+
install:
48+
- bundle install --with development,ci --path=${BUNDLE_PATH:-vendor/bundle}
49+
- yarn install --ignore-optional
50+
51+
# This is a temporary bug fix for Karma tests
52+
# See here: https://github.com/travis-ci/travis-ci/issues/9024
53+
before_script:
54+
- "sudo chown root /opt/google/chrome/chrome-sandbox"
55+
- "sudo chmod 4755 /opt/google/chrome/chrome-sandbox"
56+
4557
# Main test script
4658
script:
4759
- export WICKED_PDF_PATH=./vendor/bundle/ruby/2.4.0/bin/wkhtmltopdf
4860
# Copy over config files needed for setup, and create DB
4961
- bin/setup
50-
# Precompile the assets
62+
- bundle exec rake webpacker:compile
5163
- bundle exec rake assets:precompile
5264
# Default test stage: Run all specs, listing the 10 slowest.
5365
- bundle exec rspec spec --profile=10
@@ -70,6 +82,10 @@ jobs:
7082
name: "Bundle audit"
7183
script: bundle exec bundle-audit check --update
7284

85+
- stage: test
86+
name: "Karma JS tests"
87+
script: yarn run eslint --ext .js --ext .jsx app/assets/javascripts/**/*.js
88+
7389
- stage: hygiene
7490
name: "Check seeds are valid"
7591
script: bin/setup && bundle exec rake db:seed

‎Gemfile‎

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ ruby '>= 2.4.0'
77
# Full-stack web application framework. (http://www.rubyonrails.org)
88
gem 'rails', '~> 4.2.10'
99

10+
gem "rake"
11+
1012
# Tools for creating, working with, and running Rails applications. (http://www.rubyonrails.org)
1113
gem 'railties'
1214

@@ -92,11 +94,29 @@ gem 'recaptcha'
9294
# Ideal gem for handling attachments in Rails, Sinatra and Rack applications. (http://github.com/markevans/dragonfly)
9395
gem 'dragonfly'
9496

97+
gem 'bootstrap-sass', '~> 3.3.7'
98+
99+
# This is required for Font-Awesome, but not used as the main sass compiler
100+
101+
gem "sass-rails", require: false
102+
103+
gem "sassc-rails"
104+
105+
gem 'font-awesome-sass', '~> 4.2.0'
106+
107+
gem 'webpacker', '~> 3.5'
108+
109+
gem "autoprefixer-rails"
110+
111+
gem 'mini_racer'
112+
95113
# ------------------------------------------------
96114
# EXPORTING
97115
# Provides binaries for WKHTMLTOPDF project in an easily accessible package.
98116
gem 'wkhtmltopdf-binary'
99117

118+
gem 'puma'
119+
100120
# PDF generator (from HTML) gem for Ruby on Rails (https://github.com/mileszs/wicked_pdf)
101121
gem 'wicked_pdf'
102122

@@ -122,6 +142,8 @@ gem 'gettext', require: false, group: :development
122142
# A pagination engine plugin for Rails 4+ and other modern frameworks (https://github.com/kaminari/kaminari)
123143
gem 'kaminari'
124144

145+
gem "rails_12factor"
146+
125147
# ------------------------------------------------
126148
# ENVIRONMENT SPECIFIC DEPENDENCIES
127149
group :development, :test do
@@ -131,10 +153,6 @@ group :development, :test do
131153
# RSpec for Rails (https://github.com/rspec/rspec-rails)
132154
gem "rspec-rails"
133155

134-
# factory_bot_rails provides integration between factory_bot and rails 3 or newer (http://github.com/thoughtbot/factory_bot_rails)
135-
# rspec-collection_matchers-1.1.3 (https://github.com/rspec/rspec-collection_matchers)
136-
gem "rspec-collection_matchers"
137-
138156
# factory_bot_rails provides integration between factory_bot and rails 3 or newer (http://github.com/thoughtbot/factory_bot_rails)
139157
gem "factory_bot_rails"
140158

0 commit comments

Comments
 (0)

Footer

© 2026 GitHub, Inc.

Back | FazBrowse Home | New Git URL