This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
forked from rust-lang/rfcbot-rs
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created frontend provisioning script
This script handles pulling in all of the frontend's dependencies. It also creates a symlink from the node_modules directory inside the shared /vagrant folder to the Vagrant VM's home folder. This fixes issues in windows where npm install tries to create symlinks in a NTFS backed file system. It also speeds up the npm install process as Virtual Box's shared folder engine is significantly slower than a native file system, especially with npm's large number of small files. Former-commit-id: 1059903
- Loading branch information
1 parent
1651b46
commit eec7424
Showing
4 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
# global deps | ||
npm install -g ember-cli | ||
npm install -g bower | ||
|
||
# keep node modules in VM file system to speedup npm install and fix it on Windows/Linux machines | ||
mkdir -p /home/vagrant/local_front/node_modules | ||
rm -f /vagrant/front/node_modules || true | ||
ln -s /home/vagrant/local_front/node_modules /vagrant/front/ | ||
chown -R vagrant:vagrant /home/vagrant/local_front | ||
chown -R vagrant:vagrant /vagrant/front/node_modules | ||
|
||
# install local deps | ||
su vagrant <<'EOF' | ||
cd /vagrant/front | ||
npm install | ||
bower install | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters