-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
poc-websocket: migrate sprockets to esbuild, cssbundling
- Loading branch information
1 parent
c640b2d
commit 2b81338
Showing
27 changed files
with
572 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
web: bundle exec puma -C config/puma.rb | ||
worker_1: bundle exec sidekiq -c ${SIDEKIQ_CONCURRENCY:-2} -q sms -q salesforce -q translation -q mailers -q default -q openai_requests -q broadcast -q denorm | ||
release: ACTIVERECORD_STATEMENT_TIMEOUT=90s bundle exec rake db:migrate | ||
js: yarn build --watch | ||
css: yarn build:css --watch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
web: bundle exec puma -C config/puma.rb | ||
worker_1: bundle exec sidekiq -c ${SIDEKIQ_CONCURRENCY:-2} -q sms -q salesforce -q translation -q mailers -q default -q openai_requests -q broadcast -q denorm | ||
release: ACTIVERECORD_STATEMENT_TIMEOUT=90s bundle exec rake db:migrate | ||
js: yarn build --watch | ||
css: yarn build:css --watch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
web: env RUBY_DEBUG_OPEN=true bin/rails server | ||
js: yarn build --watch | ||
css: yarn build:css --watch |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
//= link application.css | ||
// = link_tree ../images | ||
// = link_directory ../stylesheets | ||
//= link_tree ../builds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// Entry point for your Sass build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Entry point for the build script in your package.json | ||
import "@hotwired/turbo-rails" | ||
import { Application } from "stimulus" | ||
import { definitionsFromContext } from "stimulus/webpack-helpers" | ||
|
||
const application = Application.start() | ||
const context = require.context("./controllers", true, /\.js$/) | ||
application.load(definitionsFromContext(context)) | ||
|
||
import "jquery" | ||
import "jquery-ui" | ||
import "select2" | ||
import "moment" | ||
import "daterangepicker" | ||
import "bootstrap-multiselect" | ||
import "chartkick" | ||
// import "Chart.bundle" | ||
import { Chart } from "chart.js" | ||
|
||
const customContext = require.context("./custom", true, /\.js$/) | ||
customContext.keys().forEach(customContext) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env sh | ||
|
||
if gem list --no-installed --exact --silent foreman; then | ||
echo "Installing foreman..." | ||
gem install foreman | ||
fi | ||
|
||
# Default to port 3000 if not specified | ||
export PORT="${PORT:-3000}" | ||
|
||
exec foreman start -f Procfile.dev --env /dev/null "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "app", | ||
"private": true, | ||
"scripts": { | ||
"build": "esbuild app/javascript/*.* --bundle --sourcemap --format=esm --outdir=app/assets/builds --public-path=/assets", | ||
"build:css": "sass ./app/assets/stylesheets/application.sass.scss:./app/assets/builds/application.css --no-source-map --load-path=node_modules" | ||
}, | ||
"devDependencies": { | ||
"esbuild": "^0.25.0" | ||
}, | ||
"dependencies": { | ||
"@hotwired/turbo-rails": "^8.0.13", | ||
"bootstrap-multiselect": "^1.1.0", | ||
"chart.js": "^4.4.8", | ||
"chartkick": "^5.0.1", | ||
"daterangepicker": "^3.1.0", | ||
"jquery": "^3.7.1", | ||
"jquery-ui": "^1.14.1", | ||
"moment": "^2.30.1", | ||
"sass": "^1.85.1", | ||
"select2": "^4.1.0-rc.0", | ||
"stimulus": "^3.2.2" | ||
} | ||
} |
Oops, something went wrong.