Skip to content

Commit

Permalink
chore: fix naming of things
Browse files Browse the repository at this point in the history
  • Loading branch information
KonnorRogers committed Jul 19, 2020
1 parent a52d4a9 commit 33ed185
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 25 deletions.
Empty file removed examples/railsapp/.gitignore
Empty file.
23 changes: 1 addition & 22 deletions examples/railsapp/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,52 +3,31 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.6.3'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 6.0.3', '>= 6.0.3.2'
# Use sqlite3 as the database for Active Record
gem 'sqlite3', '~> 1.4'
# Use Puma as the app server
gem 'puma', '~> 4.1'
# Use SCSS for stylesheets
gem 'sass-rails', '>= 6'
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
gem 'webpacker', '~> 4.0'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.7'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use Active Model has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Active Storage variant
# gem 'image_processing', '~> 1.2'

# Reduces boot times through caching; required in config/boot.rb
gem 'snowpacker', '~> 0.0.1'
gem 'bootsnap', '>= 1.4.2', require: false

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end

group :development do
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '~> 3.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end

group :test do
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '>= 2.15'
gem 'selenium-webdriver'
# Easy installation and use of web drivers to run system tests with browsers
gem 'webdrivers'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
6 changes: 3 additions & 3 deletions lib/snowpacker/rails/snowpacker_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ class SnowpackerGenerator < ::Rails::Generators::Base
def create_initializer_file
initializer 'snowpacker.rb' do
%{Rails.application.config.snowpacker do |snowpacker|
snowpacker.entry_points = %w(app/javascript/application.js)
snowpacker.destination = 'public/snowpacks'
snowpacker.entry_points = %w(app/javascript/snowpacks/application.js)
snowpacker.destination = 'snowpacks'
end}
end
end

def add_snowpack
`yarn add snowpack parcel-bundler \
snowpack/plugin-babel @snowpack/plugin-parcel`
@snowpack/plugin-babel @snowpack/plugin-parcel`
end
end

0 comments on commit 33ed185

Please sign in to comment.