aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2017-09-07 23:11:42 +0200
committerNoah Loomans <noahloomans@gmail.com>2017-09-07 23:11:42 +0200
commitc8d6527d802a64e19ef5e7141a9c817517d5a99f (patch)
tree013f75e23283b634ea32a2f93b292a0b22ec03b4
parent412d77357f3a8f32b2a0eefca972b9382987e918 (diff)
Add Vagrant support
-rw-r--r--.gitignore76
-rw-r--r--Dockerfile13
-rw-r--r--Vagrantfile18
3 files changed, 38 insertions, 69 deletions
diff --git a/.gitignore b/.gitignore
index 6f76b30..7d4c6d6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,66 +1,20 @@
/public/components
-# Created by https://www.gitignore.io/api/node,bower
-
-### Node ###
-# Logs
-logs
-*.log
-npm-debug.log*
-
-# Runtime data
-pids
-*.pid
-*.seed
-*.pid.lock
-
-# Directory for instrumented libs generated by jscoverage/JSCover
-lib-cov
-
-# Coverage directory used by tools like istanbul
-coverage
-
-# nyc test coverage
-.nyc_output
-
-# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
-.grunt
-
-# node-waf configuration
-.lock-wscript
-
-# Compiled binary addons (http://nodejs.org/api/addons.html)
-build/Release
-
-# Dependency directories
-node_modules
-jspm_packages
-
-# Optional npm cache directory
-.npm
-
-# Optional eslint cache
-.eslintcache
-
-# Optional REPL history
-.node_repl_history
-
-# Output of 'npm pack'
-*.tgz
-
+# Created by https://www.gitignore.io/api/node,bower,vagrant
### Bower ###
bower_components
.bower-cache
.bower-registry
.bower-tmp
-# Created by https://www.gitignore.io/api/node,bower
### Node ###
# Logs
logs
*.log
npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
# Runtime data
pids
@@ -80,6 +34,8 @@ coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
+# Bower dependency directory (https://bower.io/)
+
# node-waf configuration
.lock-wscript
@@ -87,8 +43,11 @@ coverage
build/Release
# Dependency directories
-node_modules
-jspm_packages
+node_modules/
+jspm_packages/
+
+# Typescript v1 declaration files
+typings/
# Optional npm cache directory
.npm
@@ -102,9 +61,14 @@ jspm_packages
# Output of 'npm pack'
*.tgz
+# Yarn Integrity file
+.yarn-integrity
-### Bower ###
-bower_components
-.bower-cache
-.bower-registry
-.bower-tmp
+# dotenv environment variables file
+.env
+
+
+### Vagrant ###
+.vagrant/
+
+# End of https://www.gitignore.io/api/node,bower,vagrant
diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644
index 700b691..0000000
--- a/Dockerfile
+++ /dev/null
@@ -1,13 +0,0 @@
-FROM node:6.10
-
-WORKDIR /app
-
-ADD . /app
-
-RUN npm run setup
-
-EXPOSE 80
-
-ENV PORT 80
-
-CMD ["npm", "start"]
diff --git a/Vagrantfile b/Vagrantfile
new file mode 100644
index 0000000..131fc03
--- /dev/null
+++ b/Vagrantfile
@@ -0,0 +1,18 @@
+Vagrant.configure("2") do |config|
+ config.vm.box = "bento/ubuntu-16.04"
+
+ config.vm.network "forwarded_port", guest: 3000, host: 3000
+
+ config.vm.provision "shell", inline: <<-SHELL
+ curl -sL https://deb.nodesource.com/setup_6.x | bash -
+ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
+ echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
+ apt-get update
+ apt-get install -y build-essential nodejs yarn
+ SHELL
+
+ config.vm.provision "shell", privileged: false, inline: <<-SHELL
+ ln -s /vagrant /home/vagrant/app
+ echo "cd ~/app" >> /home/vagrant/.bashrc
+ SHELL
+end