Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to webpacker [outdated] #10

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"presets": [
["env", {
"modules": false,
"targets": {
"browsers": "> 1%",
"uglify": true
},
"useBuiltIns": true
}]
],

"plugins": [
"syntax-dynamic-import",
"transform-object-rest-spread",
["transform-class-properties", { "spec": true }]
]
}
30 changes: 30 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint'
},
env: {
browser: true,
jquery: true
},
extends: "airbnb-base",
rules: {
// don't require .vue extension when importing
'import/extensions': ['error', 'always', {
js: 'never'
}],
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
// no semicolon at the end
'semi': ['error', 'never'],
"comma-dangle": ["error", {
"arrays": "never",
"objects": "never",
"imports": "never",
"exports": "never",
"functions": "never"
}],
'no-alert': 'off',
'func-names': 'off'
}
};
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,9 @@ pickle-email-*.html

# tilde files are usually backup files from a text editor
*~
/public/packs
/public/packs-test
/node_modules
yarn-debug.log*
.yarn-integrity
yarn-error.log
3 changes: 3 additions & 0 deletions .postcssrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins:
postcss-import: {}
postcss-cssnext: {}
17 changes: 2 additions & 15 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,15 @@ git_source(:github) do |repo_name|
end
ruby '2.4.2'
gem 'rails', '~> 5.1.4'
gem 'webpacker'
gem 'puma', '~> 3.7'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.2'
gem 'turbolinks', '~> 5'
gem 'turbolinks', '~> 5', require: false
gem 'jbuilder', '~> 2.5'
gem 'haml', '~> 5.0'
gem 'didww-v3', '~> 1.1.0', require: 'didww'
gem 'request_store', git: 'https://github.com/didww/request_store'
gem 'will_paginate'
gem 'will_paginate-bootstrap'
gem 'bootstrap-datepicker-rails'

group :development, :test do
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
Expand All @@ -32,16 +29,6 @@ group :development do
end
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

gem 'jquery-rails'
gem 'font-awesome-rails'

source 'https://rails-assets.org' do
gem 'rails-assets-bootstrap', '~> 3.3.7'
gem 'rails-assets-metismenu', '~> 2.0'
gem 'rails-assets-js-cookie', '~> 2.2.0'
gem 'rails-assets-onmount', '~>1.3.0'
end

group :development do
gem 'guard-bundler'
gem 'guard-rails'
Expand Down
54 changes: 7 additions & 47 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ GIT

GEM
remote: https://rubygems.org/
remote: https://rails-assets.org/
specs:
actioncable (5.1.4)
actionpack (= 5.1.4)
Expand Down Expand Up @@ -51,8 +50,6 @@ GEM
ast (2.4.0)
awesome_print (1.8.0)
bindex (0.5.0)
bootstrap-datepicker-rails (1.7.1.1)
railties (>= 3.0)
builder (3.2.3)
byebug (9.1.0)
capybara (2.16.1)
Expand All @@ -65,13 +62,6 @@ GEM
childprocess (0.8.0)
ffi (~> 1.0, >= 1.0.11)
coderay (1.1.2)
coffee-rails (4.2.2)
coffee-script (>= 2.2.0)
railties (>= 4.0.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.0.5)
crass (1.0.3)
didww-v3 (1.1.0)
Expand All @@ -85,7 +75,6 @@ GEM
unf (>= 0.0.5, < 1.0.0)
down (4.2.1)
erubi (1.7.0)
execjs (2.7.0)
factory_bot (4.8.2)
activesupport (>= 3.0.0)
factory_bot_rails (4.8.2)
Expand All @@ -98,8 +87,6 @@ GEM
faraday_middleware (0.12.2)
faraday (>= 0.7.4, < 1.0)
ffi (1.9.18)
font-awesome-rails (4.7.0.2)
railties (>= 3.2, < 5.2)
formatador (0.2.5)
globalid (0.4.1)
activesupport (>= 4.2.0)
Expand Down Expand Up @@ -142,10 +129,6 @@ GEM
jbuilder (2.7.0)
activesupport (>= 4.2.0)
multi_json (>= 1.2)
jquery-rails (4.3.1)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json_api_client (1.5.3)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
Expand Down Expand Up @@ -189,6 +172,8 @@ GEM
public_suffix (3.0.1)
puma (3.11.0)
rack (2.0.3)
rack-proxy (0.6.4)
rack
rack-test (0.8.2)
rack (>= 1.0, < 3)
rails (5.1.4)
Expand All @@ -203,13 +188,6 @@ GEM
bundler (>= 1.3.0)
railties (= 5.1.4)
sprockets-rails (>= 2.0.0)
rails-assets-bootstrap (3.3.7)
rails-assets-jquery (>= 1.9.1, < 4)
rails-assets-jquery (2.2.4)
rails-assets-js-cookie (2.2.0)
rails-assets-metismenu (2.7.1)
rails-assets-jquery (~> 2.2.4)
rails-assets-onmount (1.3.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
Expand Down Expand Up @@ -260,17 +238,6 @@ GEM
ruby-progressbar (1.9.0)
ruby_dep (1.5.0)
rubyzip (1.2.1)
sass (3.5.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sass-rails (5.0.7)
railties (>= 4.0.0, < 6)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
selenium-webdriver (3.8.0)
childprocess (~> 0.5)
rubyzip (~> 1.0)
Expand Down Expand Up @@ -298,8 +265,6 @@ GEM
turbolinks-source (5.0.3)
tzinfo (1.2.4)
thread_safe (~> 0.1)
uglifier (4.0.2)
execjs (>= 0.3.0, < 3)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.5)
Expand All @@ -309,6 +274,10 @@ GEM
activemodel (>= 5.0)
bindex (>= 0.4.0)
railties (>= 5.0)
webpacker (3.4.3)
activesupport (>= 4.2)
rack-proxy (>= 0.6.1)
railties (>= 4.2)
websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3)
Expand All @@ -323,46 +292,37 @@ PLATFORMS

DEPENDENCIES
awesome_print
bootstrap-datepicker-rails
byebug
capybara (~> 2.13)
coffee-rails (~> 4.2)
didww-v3 (~> 1.1.0)
factory_bot_rails
faker
font-awesome-rails
guard-bundler
guard-rails
guard-rspec
haml (~> 5.0)
http_logger
jbuilder (~> 2.5)
jquery-rails
launchy
listen (>= 3.0.5, < 3.2)
pry-rails
puma (~> 3.7)
rails (~> 5.1.4)
rails-assets-bootstrap (~> 3.3.7)!
rails-assets-js-cookie (~> 2.2.0)!
rails-assets-metismenu (~> 2.0)!
rails-assets-onmount (~> 1.3.0)!
rails_layout
rb-fchange
rb-fsevent
rb-inotify
request_store!
rspec-rails
rubocop
sass-rails (~> 5.0)
selenium-webdriver
spring
spring-commands-rspec
spring-watcher-listen (~> 2.0.0)
turbolinks (~> 5)
tzinfo-data
uglifier (>= 1.3.0)
web-console (>= 3.3.0)
webpacker
will_paginate
will_paginate-bootstrap

Expand Down
3 changes: 0 additions & 3 deletions app/assets/config/manifest.js

This file was deleted.

Empty file removed app/assets/images/.keep
Empty file.
35 changes: 0 additions & 35 deletions app/assets/javascripts/application.js

This file was deleted.

19 changes: 0 additions & 19 deletions app/assets/javascripts/balance.coffee

This file was deleted.

13 changes: 0 additions & 13 deletions app/assets/javascripts/cable.js

This file was deleted.

Empty file.
Loading