Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Oct 5, 2021
0 parents commit 6f47a47
Show file tree
Hide file tree
Showing 139 changed files with 14,226 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": [
"standard",
"plugin:vue/vue3-recommended"
],
"rules": {
"vue/no-mutating-props": 0,
"vue/no-v-html": 0
},
"parserOptions": {
"ecmaVersion": 2018,
"parser": "babel-eslint"
}
}
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# See https://git-scm.com/docs/gitattributes for more about git attribute files.

# Mark the database schema as having been generated.
db/schema.rb linguist-generated

# Mark the yarn lockfile as having been generated.
yarn.lock linguist-generated

# Mark any vendored files as having been vendored.
vendor/* linguist-vendored
44 changes: 44 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'

# Ignore bundler config.
/.bundle

# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-*

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# Ignore pidfiles, but keep the directory.
/tmp/pids/*
!/tmp/pids/
!/tmp/pids/.keep

# Ignore uploaded files in development.
/storage/*
!/storage/.keep

/public/assets
.byebug_history

# Ignore master key for decrypting credentials and more.
/config/master.key

/public/packs
/public/packs-test
/node_modules
/yarn-error.log
yarn-debug.log*
.yarn-integrity
.DS_Store
gems
motor-admin.env
motor-admin.sqlite3
76 changes: 76 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec

AllCops:
NewCops: enable
Exclude:
- node_modules/**/*
- ui/node_modules/**/*
- bin/*
- vendor/**/*
- gems/**/*
- db/schema.rb
- lib/generators/motor/templates/**/*
- Gemfile
TargetRubyVersion: '3.0'

Metrics/BlockLength:
Exclude:
- Rakefile
- '**/*.rake'
- spec/**/*
- config/environments/*
- config/routes.rb

Style/Documentation:
Enabled: false

Metrics/MethodLength:
Max: 20

Metrics/CyclomaticComplexity:
Max: 10

Metrics/PerceivedComplexity:
Max: 10

Metrics/AbcSize:
Max: 20

Naming/FileName:
Enabled: false

Naming/MethodParameterName:
MinNameLength: 2

Metrics/ModuleLength:
Max: 300

Rails/Date:
Enabled: false

Rails/SquishedSQLHeredocs:
Enabled: false

Rails/SkipsModelValidations:
Enabled: false

Rails/Output:
Enabled: false

Rails/LexicallyScopedActionFilter:
Enabled: false

RSpec/ExampleLength:
Max: 20

RSpec/MultipleExpectations:
Max: 10

RSpec/NestedGroups:
Max: 5

RSpec/Capybara/VisibilityMatcher:
Enabled: false
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby-2.7.1
18 changes: 18 additions & 0 deletions .rubycignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.git
node_modules
gems/*/node_modules
gems/*/*/node_modules
gems/*/.git
gems/*/.yardoc
gems/*/.github
gems/*/spec
gems/*/test
gems/*/*/spec
gems/*/*.gem
gems/*/*/test
gems/*/guides
gems/*/docs
gems/*/images
motor-admin.env
motor-admin.sqlite3
motor.yml
16 changes: 16 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"plugins": [
"stylelint-scss"
],
"extends": "stylelint-config-sass-guidelines",
"rules": {
"max-nesting-depth": 8,
"selector-max-compound-selectors": 4,
"selector-no-qualifying-type": null,
"property-no-vendor-prefix": null,
"selector-no-vendor-prefix": null,
"scss/dollar-variable-pattern": null,
"selector-max-id": null,
"scss/at-extend-no-missing-placeholder" : null
}
}
40 changes: 40 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# frozen_string_literal: true

source 'https://rubygems.org'

ruby '2.7.1'

gem 'rails', '~> 7.0.0.alpha'

gem 'ar_lazy_preload', git: 'https://github.com/omohokcoj/ar_lazy_preload'
gem 'audited'
gem 'devise', git: 'https://github.com/strobilomyces/devise', branch: 'patch-1'
gem 'dotenv'
gem 'fast_blank'
gem 'image_processing'
gem 'lograge'
gem 'motor-admin'
gem 'mysql2', require: false
gem 'oj'
gem 'pg', require: false
gem 'puma'
gem 'sqlite3'
gem 'webpacker'

group :development, :test do
gem 'brakeman', require: false
gem 'byebug'
gem 'letter_opener'
gem 'pry-rails'
gem 'rubocop', require: false
gem 'rubocop-performance', require: false
gem 'rubocop-rails', require: false
gem 'rubocop-rspec', require: false
gem 'yard', require: false
end

group :development do
gem 'listen'
gem 'spring'
gem 'web-console'
end
Loading

0 comments on commit 6f47a47

Please sign in to comment.