Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2022-05-31 10:12:34 +0300
committerEvan Read <eread@gitlab.com>2022-06-01 02:30:44 +0300
commitca25fb67dea4da641304dcbf143eba66474a4088 (patch)
tree8ad536d5f977f539c20f3996890efcd45a06ecf8
parent7587182c0ac4d601fb4dee0c9cf4dd9c4ab5b089 (diff)
Split up and expand setup make targetseread/split-up-setup-steps-in-makefile
-rw-r--r--Makefile32
1 files changed, 26 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 2d5dd7de..0ea18661 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY: all clean test up
+.PHONY: all clean setup test up
INFO = \033[32m
INFO_END = \033[0m
@@ -59,11 +59,31 @@ view: compile
live: compile
@printf "\n$(INFO)INFO: Starting GitLab documentation site with live reload..$(INFO_END)\n"
- bundle exec nanoc live
-
-setup:
- @printf "\n$(INFO)INFO: Installing dependencies..$(INFO_END)\n"
- @asdf install && bundle install && yarn install --frozen-lockfile
+ @bundle exec nanoc live
+
+setup-asdf:
+ @printf "\n$(INFO)INFO: Installing asdf plugins..$(INFO_END)\n"
+ @asdf plugin add ruby || true
+ @asdf plugin add nodejs || true
+ @asdf plugin add yarn || true
+ @printf "\n$(INFO)INFO: Updating asdf plugins..$(INFO_END)\n"
+ @asdf plugin update ruby
+ @asdf plugin update nodejs
+ @asdf plugin update yarn
+
+install-asdf-dependencies:
+ @printf "\n$(INFO)INFO: Installing asdf dependencies..$(INFO_END)\n"
+ @asdf install
+
+install-ruby-dependencies:
+ @printf "\n$(INFO)INFO: Installing Ruby dependencies..$(INFO_END)\n"
+ @bundle install
+
+install-nodejs-dependencies:
+ @printf "\n$(INFO)INFO: Installing Node.js dependencies..$(INFO_END)\n"
+ @yarn install --frozen-lockfile
+
+setup: setup-asdf install-asdf-dependencies install-ruby-dependencies install-nodejs-dependencies
update:
@printf "\n$(INFO)INFO: Stash any changes, switch to main branch, and pull updates to GitLab Docs project..$(INFO_END)\n"