diff options
-rw-r--r-- | .gitignore | 76 | ||||
-rw-r--r-- | Dockerfile | 13 | ||||
-rw-r--r-- | Vagrantfile | 18 |
3 files changed, 38 insertions, 69 deletions
@@ -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 |