Skip to content
Snippets Groups Projects
Commit f241da3e authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Merge branch 'rs-yarn' into 'master'

Use yarn instead of npm in Makefile

See merge request !275
parents ff9916a8 d9fe0935
No related branches found
No related tags found
1 merge request!275Use yarn instead of npm in Makefile
Pipeline #
Loading
Loading
@@ -49,6 +49,7 @@
/.gitlab-shell-bundle
/.gitlab-bundle
/.gitlab-npm
/.gitlab-yarn
/gem/*.gem
/gitlab-runner-config.toml
/.gdk-install-root
Loading
Loading
Loading
Loading
@@ -21,7 +21,7 @@ all: gitlab-setup gitlab-shell-setup gitlab-workhorse-setup support-setup gitaly
 
# Set up the GitLab Rails app
 
gitlab-setup: gitlab/.git gitlab-config bundler .gitlab-bundle .gitlab-npm
gitlab-setup: gitlab/.git gitlab-config bundler .gitlab-bundle yarn .gitlab-yarn
 
gitlab/.git:
git clone ${gitlab_repo} gitlab
Loading
Loading
@@ -51,14 +51,22 @@ gitlab/public/uploads:
cd ${gitlab_development_root}/gitlab && bundle install --without mysql production --jobs 4
touch $@
 
.gitlab-npm:
cd ${gitlab_development_root}/gitlab && npm install
.gitlab-yarn:
cd ${gitlab_development_root}/gitlab && yarn install --pure-lockfile
touch $@
 
.PHONY: bundler
bundler:
command -v $@ > /dev/null || gem install $@
 
.PHONY: yarn
yarn:
@command -v $@ > /dev/null || {\
echo "Error: Yarn executable was not detected in the system.";\
echo "Download Yarn at https://yarnpkg.com/en/docs/install";\
exit 1;\
}
# Set up gitlab-shell
 
gitlab-shell-setup: symlink-gitlab-shell ${gitlab_shell_clone_dir}/.git gitlab-shell/config.yml bundler .gitlab-shell-bundle gitlab-shell/.gitlab_shell_secret
Loading
Loading
@@ -109,7 +117,6 @@ gitlab-update: gitlab/.git/pull gitlab-setup
@echo ""
cd ${gitlab_development_root}/gitlab && \
bundle exec rake db:migrate db:test:prepare
cd ${gitlab_development_root}/gitlab && npm prune
 
gitlab-shell-update: gitlab-shell/.git/pull gitlab-shell-setup
 
Loading
Loading
@@ -312,6 +319,7 @@ clean-config:
nginx/conf/nginx.conf \
 
unlock-dependency-installers:
rm -f .gitlab-npm \
rm -f \
.gitlab-bundle \
.gitlab-shell-bundle \
.gitlab-yarn
Loading
Loading
@@ -15,4 +15,4 @@ rails-background-jobs: exec /usr/bin/env SIDEKIQ_LOG_ARGUMENTS=1 RAILS_ENV=devel
#sshd: exec /usr/sbin/sshd -e -D -f /home/git/openssh/sshd_config
#nginx: exec nginx -p /home/git/nginx -c conf/nginx.conf
gitaly: exec gitaly/bin/gitaly /home/git/gitaly/config.toml
webpack: exec /usr/bin/env NODE_ENV=development DEV_SERVER_PORT=3808 support/exec-cd gitlab npm run dev-server
webpack: exec /usr/bin/env NODE_ENV=development DEV_SERVER_PORT=3808 support/exec-cd gitlab yarn dev-server
Loading
Loading
@@ -14,9 +14,14 @@ during installation.
system Ruby
1. Bundler, which you can install with `gem install bundler`
1. Git version of 2.7.X or higher
1. Node 4.3 or newer and Yarn 0.17 or newer. If your package manage does not
have up-to-date versions of node or yarn available, visit the official
websites for [node] and [yarn] for installation instructions.
 
[rbenv]: https://github.com/rbenv/rbenv
[chruby]: https://github.com/postmodern/chruby
[node]: https://nodejs.org/en/download/package-manager/
[yarn]: https://yarnpkg.com/en/docs/install/
 
### OS X 10.9 (Mavericks), 10.10 (Yosemite), 10.11 (El Capitan), macOS 10.12 (Sierra)
 
Loading
Loading
@@ -27,7 +32,7 @@ Please read [the prerequisites for all platforms](#prerequisites-for-all-platfor
```
brew tap homebrew/dupes
brew tap homebrew/versions
brew install git redis postgresql libiconv icu4c pkg-config cmake nodejs go openssl node npm coreutils
brew install git redis postgresql libiconv icu4c pkg-config cmake nodejs go openssl node npm yarn coreutils
bundle config build.eventmachine --with-cppflags=-I/usr/local/opt/openssl/include
sudo npm install phantomjs-prebuilt@2.1.12 -g
```
Loading
Loading
@@ -37,7 +42,7 @@ sudo npm install phantomjs-prebuilt@2.1.12 -g
We are using PostgreSQL-9.5 in the following example. If you want to use another version, please adjust paths accordingly.
 
```
sudo port install git redis libiconv postgresql95-server icu pkgconfig cmake nodejs4 go openssl npm2 coreutils
sudo port install git redis libiconv postgresql95-server icu pkgconfig cmake nodejs4 go openssl npm2 yarn coreutils
bundle config build.eventmachine --with-cppflags=-I/opt/local/include/openssl
sudo npm install phantomjs-prebuilt@2.1.12 -g
echo 'export PATH=/opt/local/lib/postgresql95/bin/:$PATH' >> ~/.profile
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment