To create project:
- run
./new.rb
and choose options in interactive mode; - run
./new.rb file-name-with-options
, wherefile-name-with-options
is the file path to your file with options (this script asks to create this file before runningrails new
command).
To apply changes to existing project:
- run
./change.rb
and choose options in interactive mode; - run
./change.rb project-directory
, whereproject-directory
is path to the directory of your project; - run
./change.rb project-directory feature-name
, wherefeature-name
is name of desired feature (see list of features below). You may pass several feature names separated by space.
bundle-config
: predefined config files forbundler
docker
: generate Dockerfile & Docker Compose filesdotenv
: add gemdotenv
and example files for configuration via ENVlinters
: add linters for Ruby and its ecosystemmisc
: miscellaneous tasks for changing and removing files and directories within Rails applicationremove-comments
: remove unnecessary comments from project filessettings
: store project configuration in YAML or JSON formatsort-config
: sort configuration lines inconfig/environments/*.rb
yarn
: install latest version of Yarn and add actual config values for Yarn
... to be continued ...
Run rake
or rake test
to run all tests.
Run rake test TEST=test/template_test.rb TESTOPTS="--name=test_full_6"
or similar keystroke to run
one specific test.