This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* importmaps * codestyle * fix importmap * remove yarn install call * fix vkid sdk * add pins * fix vk * Update vkid_controller.js * fix issues * Update Dockerfile.dev --------- Co-authored-by: Mikhail Geine <[email protected]>
- Loading branch information
Showing
33 changed files
with
938 additions
and
2,068 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,4 +36,4 @@ | |
!/app/assets/builds/.keep | ||
/public/assets | ||
|
||
*.private | ||
/node_modules |
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
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,82 +1,84 @@ | ||
SHELL=/bin/sh | ||
|
||
UID := $(shell id -u) | ||
GID := $(shell id -g) | ||
|
||
include .env | ||
export | ||
|
||
setup: build db-prepare | ||
|
||
build: | ||
bundle lock --update | ||
npm install --package-lock-only | ||
docker compose build | ||
|
||
up: | ||
docker compose up | ||
|
||
down: | ||
docker compose down | ||
|
||
clear: | ||
sudo docker compose down -v --rmi all | ||
|
||
creds: | ||
EDITOR='code --wait' bin/rails credentials:edit | ||
|
||
ash: | ||
sudo docker compose run --rm app ash | ||
|
||
console: | ||
sudo docker compose run --rm app bundle exec rails c | ||
|
||
yarn: | ||
docker compose run --rm app yarn install | ||
|
||
bundle: | ||
docker compose run --rm app bundle install | ||
|
||
rubocop: | ||
docker compose run --rm app bundle exec rubocop --config /rails/config/rubocop.yml | ||
|
||
rubocop-verbose: | ||
docker compose run --rm app bundle exec rubocop | ||
|
||
rubocopA: | ||
docker compose run --rm app bundle exec rubocop --config /rails/config/rubocop.yml -A | ||
|
||
db-psql: | ||
sudo docker compose run --rm app psql -d ${POSTGRES_DB} -U ${POSTGRES_USER} -W -h db | ||
|
||
db-prepare: db-drop db-create db-migrate db-seed | ||
|
||
db-create: | ||
sudo docker compose run --rm app bin/rails db:create RAILS_ENV=development | ||
|
||
db-migrate: | ||
sudo docker compose run --rm app bin/rails db:migrate | ||
|
||
db-rollback: | ||
sudo docker compose run --rm app bin/rails db:rollback | ||
|
||
db-seed: | ||
sudo docker compose run --rm app bin/rails db:seed | ||
|
||
db-reset: | ||
sudo docker compose run --rm app bin/rails db:reset | ||
|
||
db-drop: | ||
docker compose run --rm app bin/rails db:drop | ||
|
||
ci-build: | ||
bundle lock --update | ||
npm install --package-lock-only | ||
docker compose build -q | ||
|
||
ci-up-healthy: db-prepare | ||
docker compose up -d --wait --wait-timeout 60 | ||
|
||
ci-rubocop: rubocop | ||
|
||
ci-clear: clear | ||
SHELL=/bin/sh | ||
|
||
UID := $(shell id -u) | ||
GID := $(shell id -g) | ||
|
||
include .env | ||
export | ||
|
||
setup: build db-prepare | ||
|
||
build: | ||
docker compose build | ||
|
||
deps: | ||
yarn install && rm -rf ./node_modules | ||
bundle install | ||
|
||
up: | ||
docker compose up | ||
|
||
down: | ||
docker compose down | ||
|
||
clear: | ||
docker compose down -v --rmi all | ||
|
||
creds: | ||
EDITOR='code --wait' bin/rails credentials:edit | ||
|
||
ash: | ||
docker compose run --rm app ash | ||
|
||
console: | ||
docker compose run --rm app bundle exec rails c | ||
|
||
yarn: | ||
docker compose run --rm app yarn install | ||
|
||
bundle: | ||
docker compose run --rm app bundle install | ||
|
||
rubocop: | ||
docker compose run --rm app bundle exec rubocop --config /rails/config/rubocop.yml | ||
|
||
rubocop-verbose: | ||
docker compose run --rm app bundle exec rubocop | ||
|
||
rubocopA: | ||
docker compose run --rm app bundle exec rubocop --config /rails/config/rubocop.yml -A | ||
|
||
db-psql: | ||
docker compose run --rm app psql -d ${POSTGRES_DB} -U ${POSTGRES_USER} -W -h db | ||
|
||
db-prepare: db-drop db-create db-migrate db-seed | ||
|
||
db-create: | ||
docker compose run --rm app bin/rails db:create RAILS_ENV=development | ||
|
||
db-migrate: | ||
docker compose run --rm app bin/rails db:migrate | ||
|
||
db-rollback: | ||
docker compose run --rm app bin/rails db:rollback | ||
|
||
db-seed: | ||
docker compose run --rm app bin/rails db:seed | ||
|
||
db-reset: | ||
docker compose run --rm app bin/rails db:reset | ||
|
||
db-drop: | ||
docker compose run --rm app bin/rails db:drop | ||
|
||
ci-build: | ||
bundle lock --update | ||
npm install --package-lock-only | ||
docker compose build -q | ||
|
||
ci-up-healthy: db-prepare | ||
docker compose up -d --wait --wait-timeout 60 | ||
|
||
ci-rubocop: rubocop | ||
|
||
ci-clear: clear |
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,2 @@ | ||
web: env RUBY_DEBUG_OPEN=true RUBY_DEBUG_PORT=12345 RUBY_DEBUG_HOST=0.0.0.0 bin/rails server -b 0.0.0.0 -p3000 | ||
js: yarn build --watch | ||
css: yarn watch:css |
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,2 +1,4 @@ | ||
//= link_tree ../images | ||
//= link_tree ../builds | ||
//= link_tree ../../javascript .js | ||
//= link_tree ../../../vendor/javascript .js |
This file was deleted.
Oops, something went wrong.
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,4 +1,4 @@ | ||
// Entry point for the build script in your package.json | ||
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails | ||
import "@hotwired/turbo-rails" | ||
import "./controllers" | ||
import * as bootstrap from "bootstrap" | ||
import "controllers" | ||
import * as bootstrap from "bootstrap" |
Oops, something went wrong.