obdev/Makefile

61 lines
1.5 KiB
Makefile

push:
git add --all
git commit -a
git push
pull:
git pull
version:
-@rails --version
-@whereis rails
-@echo "npm" `npm --version`
-@whereis npm
-@echo "yarn" `yarn -version`
-@whereis yarn
-@ruby --version
-@whereis ruby
reset:
git reset --hard
# gem 'devise'
# bundle install
# rails generate devise:install
# rails generate devise User
# rails db:migrate
# rails generate devise:views
# gem 'webpacker'
# bundle install
# rails webpacker:install
# gem 'kaminari'
# bundle install
# rails g kaminari:views default
# mariams box:
# mariam@flippy:~/obdev$ make version
# Rails 7.1.2
# rails: /usr/bin/rails /home/mariam/.rbenv/shims/rails
# npm 9.2.0
# npm: /usr/bin/npm /usr/share/npm /usr/share/man/man1/npm.1.gz
# yarn 1.22.21
# yarn: /usr/local/bin/yarn
# ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]
# ruby: /usr/bin/ruby /usr/lib/x86_64-linux-gnu/ruby /usr/lib/ruby /home/mariam/.rbenv/shims/ruby /usr/share/man/man1/ruby.1.gz
# mariam@flippy:~/obdev$
#
# +firstscaffold:
# rails generate lsdslkjdkl Product
# ben@tempy:~/obdev$ make version
# Rails 7.1.2
# rails: /usr/bin/rails /home/ben/.rbenv/shims/rails
# npm 10.2.4
# npm: /usr/bin/npm /usr/share/npm /home/ben/.nvm/versions/node/v20.11.0/bin/npm /usr/share/man/man1/npm.1.gz
# yarn 1.22.19
# yarn: /usr/bin/yarn /usr/share/yarn
# ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-linux]
# ruby: /usr/bin/ruby /usr/lib/x86_64-linux-gnu/ruby /usr/lib/ruby /home/ben/.rbenv/shims/ruby /usr/share/man/man1/ruby.1.gz