Skip to content

Commit

Permalink
Try installing node modules locally then coping back to the shared fo…
Browse files Browse the repository at this point in the history
…lder
  • Loading branch information
dpslwk committed Oct 23, 2016
1 parent 7fcf712 commit 36d302e
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 5,923 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ database/database.sqlite
Icon?
ehthumbs.db
Thumbs.db
gulpwatch.txt

/public/css
/public/js
gulpwatch.log
Empty file modified dev/startgulpwatch
100644 → 100755
Empty file.
7 changes: 6 additions & 1 deletion dev/vagrant-config/scripts/gulp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ echo "running as user $_user ($_uid)"
echo " "

# move to the share folder and use yarn to install deps
cd /vagrant
mkdir ~/hms2/
cp /vagrant/package.json ~/hms2/
cp /vagrant/yarn.lock ~/hms2/
cd ~/hms2/
/usr/bin/yarn
cp -R node_modules /vagrant/

# create gulp watch script
cat <<\EOF > /home/vagrant/gulpwatch.sh
Expand All @@ -33,4 +37,5 @@ chmod +x /home/vagrant/gulpwatch.sh
chmod +x /home/vagrant/restartwatch.sh

# run gulp once
cd /vagrant
/usr/bin/gulp
Empty file added public/css/.gitkeep
Empty file.
Loading

0 comments on commit 36d302e

Please sign in to comment.