Skip to content

Commit

Permalink
Cleanup unused libraries and prepare for esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhbhatia committed Jan 15, 2024
1 parent 0566b55 commit beafa24
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 26 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ jobs:
POSTGRES_PASSWORD: postgres
POSTGRES_PORT: 5432
run: |
bundle exec rails test:prepare
bundle exec rails assets:precompile
bundle exec rspec
3 changes: 0 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ gem "redis", "~> 5.0"
gem "sidekiq"
gem "invisible_captcha"

gem "vanilla_nested", github: "arielj/vanilla-nested", branch: :main
# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
# gem "kredis"
gem "money-rails"
Expand All @@ -57,8 +56,6 @@ gem "flipper-active_record"
gem "flipper-ui"
gem "meta-tags"
gem "pg_search"
gem "chartkick"
gem "groupdate"
gem "httparty"
gem "dotenv-rails"
gem "honeybadger"
Expand Down
13 changes: 0 additions & 13 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
GIT
remote: https://github.com/arielj/vanilla-nested.git
revision: cab8f390dc99eed933952f6fcc14603bad30c6a8
branch: main
specs:
vanilla_nested (1.7.0)

GIT
remote: https://github.com/dabit/annotate_models.git
revision: b0d0041e06137514fa2bf5d2e10ca4af101cbfb9
Expand Down Expand Up @@ -125,7 +118,6 @@ GEM
rack-test (>= 0.6.3)
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
chartkick (5.0.5)
concurrent-ruby (1.2.2)
connection_pool (2.4.1)
crass (1.0.6)
Expand Down Expand Up @@ -178,8 +170,6 @@ GEM
graphql (>= 1.8, < 2.2)
rails (>= 4.2, < 7.1)
zeitwerk
groupdate (6.4.0)
activesupport (>= 6.1)
hashie (5.0.0)
honeybadger (5.4.1)
httparty (0.21.0)
Expand Down Expand Up @@ -467,7 +457,6 @@ DEPENDENCIES
aws-sdk-s3
bootsnap
capybara
chartkick
debug
devise
dotenv-rails
Expand All @@ -479,7 +468,6 @@ DEPENDENCIES
graphiql-rails
graphql
graphql_devise
groupdate
honeybadger
httparty
image_processing (~> 1.2)
Expand Down Expand Up @@ -511,7 +499,6 @@ DEPENDENCIES
tailwindcss-rails
turbo-rails (~> 1.5.0)
tzinfo-data
vanilla_nested!
view_component
web-console
webdrivers
Expand Down
3 changes: 0 additions & 3 deletions app/javascript/controllers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import { application } from "controllers/application"
import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading"
import { Tabs, Toggle, Dropdown, Modal } from "tailwindcss-stimulus-components"
import * as ActiveStorage from "@rails/activestorage"
import "vanilla-nested"
import "chartkick"
import "Chart.bundle"

// Eager load all controllers defined in the import map under controllers/**/*_controller
ActiveStorage.start()
Expand Down
7 changes: 2 additions & 5 deletions app/views/dashboard/home/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<h1 class="text-2xl font-bold pb-4">Dashboard</h1>

<div>
<h2>Coming Soon, please use links of the left</h2>
<% if current_user.store %>
<h2>Chart only for representational purposes</h2>
<%= line_chart current_user.store.products.group_by_day(:created_at).count %>
<% end %>
<h2>Welcome to your Dashboard</h2>
<p>Please use links on the left to navigate your Dashboard</p>
</div>
2 changes: 0 additions & 2 deletions config/importmap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
pin "vanilla-nested", to: "vanilla_nested.js", preload: true
pin "@hotwired/turbo", to: "https://ga.jspm.io/npm:@hotwired/[email protected]/dist/turbo.es2017-esm.js"
pin "@rails/actioncable/src", to: "https://ga.jspm.io/npm:@rails/[email protected]/src/index.js"
pin "chartkick", to: "chartkick.js"
pin "Chart.bundle", to: "Chart.bundle.js"
pin "pdf.js", to: "https://ga.jspm.io/npm:[email protected]/index.js"
pin "buffer", to: "https://ga.jspm.io/npm:@jspm/[email protected]/nodelibs/browser/buffer.js"
pin "child_process", to: "https://ga.jspm.io/npm:@jspm/[email protected]/nodelibs/browser/child_process.js"
Expand Down

0 comments on commit beafa24

Please sign in to comment.