From ab1514a900f6da5b3dd804896b522099749a6d35 Mon Sep 17 00:00:00 2001 From: Alex Skrenchuk Date: Thu, 21 Nov 2019 13:36:01 -0800 Subject: [PATCH] add capistrano tasks for yarn --- Capfile | 1 + Gemfile | 4 ++++ Gemfile.lock | 21 +++++++++++++++++++++ 3 files changed, 26 insertions(+) diff --git a/Capfile b/Capfile index dc336aa13..8cbf6f87e 100644 --- a/Capfile +++ b/Capfile @@ -23,6 +23,7 @@ install_plugin Capistrano::SCM::Git #require 'capistrano/rails/assets' #require 'capistrano/rails/migrations' require 'capistrano/rails' +require 'capistrano/yarn' require 'capistrano/locally' # Loads custom tasks from `lib/capistrano/tasks' if you have any defined. diff --git a/Gemfile b/Gemfile index c6342ad13..831876e4c 100644 --- a/Gemfile +++ b/Gemfile @@ -61,6 +61,10 @@ group :development do gem 'capistrano-bundler', require: false gem 'capistrano-locally', require: false gem 'capistrano-passenger', require: false + gem 'capistrano-yarn', require: false gem 'html2haml' + # static code analysis + gem "brakeman", require: false + gem "rubocop", require: false # gem 'i18n-debug' end diff --git a/Gemfile.lock b/Gemfile.lock index 759f69ff9..a492e64aa 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -55,12 +55,14 @@ GEM airbrussh (1.4.0) sshkit (>= 1.6.1, != 1.7.0) arel (8.0.0) + ast (2.4.0) autoprefixer-rails (9.7.1) execjs bootstrap (4.1.3) autoprefixer-rails (>= 6.0.3) popper_js (>= 1.12.9, < 2) sass (>= 3.5.2) + brakeman (4.7.1) builder (3.2.3) capistrano (3.11.2) airbrussh (>= 1.0.0) @@ -76,6 +78,8 @@ GEM capistrano-rails (1.4.0) capistrano (~> 3.1) capistrano-bundler (~> 1.1) + capistrano-yarn (2.0.2) + capistrano (~> 3.0) chart-js-rails (0.1.7) railties (> 3.1) coderay (1.1.2) @@ -110,6 +114,7 @@ GEM i18n (1.7.0) concurrent-ruby (~> 1.0) iconv (1.0.8) + jaro_winkler (1.5.4) jquery-rails (4.3.5) rails-dom-testing (>= 1, < 3) railties (>= 4.2.0) @@ -141,6 +146,9 @@ GEM mini_portile2 (~> 2.4.0) oj (3.9.2) open_uri_redirections (0.2.1) + parallel (1.18.0) + parser (2.6.5.0) + ast (~> 2.4.0) popper_js (1.14.5) pry (0.12.2) coderay (~> 1.1.0) @@ -175,6 +183,7 @@ GEM method_source rake (>= 0.8.7) thor (>= 0.18.1, < 2.0) + rainbow (3.0.0) rake (13.0.0) rb-fsevent (0.10.3) rb-inotify (0.10.0) @@ -186,6 +195,14 @@ GEM http-cookie (>= 1.0.2, < 2.0) mime-types (>= 1.16, < 3.0) netrc (~> 0.7) + rubocop (0.76.0) + jaro_winkler (~> 1.5.1) + parallel (~> 1.10) + parser (>= 2.6) + rainbow (>= 2.2.2, < 4.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 1.4.0, < 1.7) + ruby-progressbar (1.10.1) ruby_parser (3.14.1) sexp_processor (~> 4.9) sass (3.7.4) @@ -229,6 +246,7 @@ GEM unf (0.1.4) unf_ext unf_ext (0.0.7.6) + unicode-display_width (1.6.0) websocket-driver (0.6.5) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.4) @@ -240,11 +258,13 @@ PLATFORMS DEPENDENCIES bootstrap (~> 4.1.0) + brakeman capistrano (~> 3.11) capistrano-bundler capistrano-locally capistrano-passenger capistrano-rails (~> 1.4) + capistrano-yarn chart-js-rails cube-ruby dalli @@ -269,6 +289,7 @@ DEPENDENCIES rdoc recaptcha (~> 5.2) rest-client (~> 1.8.0) + rubocop sass-rails (~> 5.0) select2-rails stackprof