346 Commits (trunk)
 

Author SHA1 Message Date
Matt Brictson 55907973b0
Switch to new cimg/ruby docker image for CI
The -browsers variant includes Node LTS, so we no longer need to install
it manually. Also since the new image uses the root user, we need to
pass `--no-sandbox` to Chrome.
4 years ago
Matt Brictson 5e8687f216
Upgrade to webpacker 5
This allows us to have a CSS file named "application.scss" (webpacker 4
would not).
4 years ago
Matt Brictson 489d7ab56b
Include more files in rubocop checks 4 years ago
Matt Brictson 89893fae11
Remove eslint-plugin-jest; we don't include jest yet 4 years ago
Matt Brictson 36c0e90558
Work around issue in spring 2.1.1
Spring 2.1.1 does something different with regards to the working
directory, such that `rails new` would fail with this error:

```
run  bin/rake tmp:create… rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
```

Work around this by enabling spring later in the `rails new` process.
4 years ago
Matt Brictson 0141fff645
Don't swallow command output 4 years ago
Matt Brictson d7d3f95b7a
Set up some basic stylesheets 4 years ago
Matt Brictson a3ea724a12
Install dart sass for webpack 4 years ago
Matt Brictson 3d66c223f2
Silence the 'Capybara starting Puma...' noise 4 years ago
Matt Brictson 79675a98ce
Silence 'Running via Spring...' noisy output 4 years ago
Matt Brictson 81f18c05c9
Use new Rails db:prepare tasks 4 years ago
Matt Brictson 6ae9b5fec4
Default rake task should fail if lint fails 4 years ago
Matt Brictson 91e967dc12
Relax some stylelint rules 4 years ago
Matt Brictson 47bf58dbe4
Lint JS and CSS in app/components directory 4 years ago
Matt Brictson 245f77fdea
Remove better_errors, stick with web-console 4 years ago
Matt Brictson 0ff883baf0
Work around Postmark TLS error 4 years ago
Matt Brictson 0815b96f87
Switch to inline testing strategy for sidekiq 4 years ago
Matt Brictson 0d7d01d709
mock_redis is not being used at all 4 years ago
Matt Brictson 1711150eec
Compile webpack when first setting up the project
This ensures that you won't see an error about a missing manifest the
first time you visit the Rails app.
4 years ago
Matt Brictson ea13b4acb5
Auto launch web browser when starting puma 4 years ago
Matt Brictson 1c52f9e6d0
Set up stylelint 4 years ago
Matt Brictson 365db492e0
Improved default rake task; headless chrome option 4 years ago
Matt Brictson 40c42b04c5
-C config/sidekiq.yml is the default and redundant 4 years ago
Matt Brictson c5d4e3d903
Remove annotate binstub 4 years ago
Matt Brictson e08c153000
Remove overcommit from Gemfile; run it w/o bundler
This makes overcommit opt-in.
4 years ago
Matt Brictson 4476827211
Automatically parse tomo release information
If the app is deployed via tomo, there will be a .tomo_release.json file
with information about the git commit SHA and timestamp of the version
that was deployed. Use that information if present, otherwise gracefully
fall back.
4 years ago
Matt Brictson 0ec7dca114
SECRET_KEY_BASE is not needed in dev or test
In development and test environments, Rails automatically generates a
value for SECRET_KEY_BASE. So we don't need to worry about specifying it
in an environment var.
4 years ago
Matt Brictson 1f63cce9bb
Don't use basic auth for sidekiq in local development 4 years ago
Matt Brictson 94b43ebaeb
Remove overcommit from default rake task
Overcommit is slow and prone to false positives when run outside of the
regular pre-commit hook. Remove it from the default rake task.
4 years ago
Matt Brictson d131026178
Exclude autoprefixer-rails if not using sprockets 4 years ago
Matt Brictson 8fc8802223
Use overcommit to run rake lint checks 4 years ago
Matt Brictson 55a0811be7
Fix trailing white space 4 years ago
Matt Brictson 0eda8618d4
Clarify why dotenv is used 4 years ago
Matt Brictson 859b754437
Remove asset pipeline customizations
Remove livereload and other asset-pipeline specific customizations.

The preference when using this template is to pass `--skip-sprockets` to
disable the asset pipeline entirely. If this option is detected, the
template will create `app/javascript/stylesheets` and
`app/javascript/images` directories as an alternative to `app/assets`.
4 years ago
Matt Brictson 96946b23a6
Set up basic auth via optional env vars 4 years ago
Matt Brictson 8878a1e0ac
Update README to reference .env.development 4 years ago
Matt Brictson c4e4ae658e
Switch to "yarn start" (using foreman) to run app 4 years ago
Matt Brictson 7b0cf1a41c
Use dotenv for local development only
Configuring the app via a `.env` file is problematic because it affects
all environments, including test. The test environment should work
regardless of local configuration.

This commit more narrowly focuses the usage of dotenv by recommending a
`.env.development` file be used as opposed to `.env`. This limits the
effects to just the local development environment.

Also, there is no reason to load the dotenv gem in production.
4 years ago
Matt Brictson 28f42da3d3
No need to make sidekiq.rb a .tt template 4 years ago
Matt Brictson bfb05853fb
Format with latest Prettier 4 years ago
Matt Brictson 5c4e925112
Use `webpack-dev-server` & `rails s` to run local
`bundle exec puma` works great in production but it obscures console log
output when used in development. Live reloading of JS requires an extra
process, webpack-dev-server. Create a `Procfile.dev` to make it easier
to run all the right things locally.
4 years ago
Matt Brictson 06e9817634
Install yarn so that eslint works 4 years ago
Matt Brictson 2c4ea92e00
Make some env vars optional in production
If SIDEKIQ_WEB_PASSWORD and SIDEKIQ_WEB_USERNAME are not specified, then
simply don't allow access to the `/sidekiq` dashboard.
4 years ago
Matt Brictson 229bb5a4fb
Remove doc directory
I haven't been using this in practice.
4 years ago
Matt Brictson fcee4c3368
Fix tasks for latest version of annotate gem 4 years ago
Matt Brictson 52d2097896
Simpler Gemfile, use `bundle update` to get newest 4 years ago
Matt Brictson 216df87e9d
Fix minor rubocop issues 4 years ago
Matt Brictson d9fa0855cb
Disable animations to speed up system tests 4 years ago
Matt Brictson 5bb8a1c8dc
Simplify rubocop config 4 years ago
Matt Brictson 5158c8d737
Update docs to reference amazing_print 4 years ago