diff --git a/vue/README.md b/vue/README.md index 6ee1f72a..5b0286e2 100644 --- a/vue/README.md +++ b/vue/README.md @@ -2,6 +2,20 @@ We are using are VueJS as a build tool to help create a modular version of the Fantasy Map Generator so that individual contributors can work with more manageable files. +## Getting Started + +``` +yarn +yarn serve +``` + +## Production + +``` +yarn build +``` + + ## Goal We could divide and conquer in steps. diff --git a/vue/package.json b/vue/package.json index 361c0248..eb151a6d 100644 --- a/vue/package.json +++ b/vue/package.json @@ -5,7 +5,9 @@ "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", - "lint": "vue-cli-service lint" + "lint": "vue-cli-service lint", + "start": "vue-cli-service serve", + "dev": "node build/dev-server.js" }, "dependencies": { "vue": "^2.5.17" diff --git a/vue/vue.config.js b/vue/vue.config.js new file mode 100644 index 00000000..5c6fe78f --- /dev/null +++ b/vue/vue.config.js @@ -0,0 +1,11 @@ +module.exports = { + // options... + devServer: { + compress: true, + inline: true, + port: '8080', + allowedHosts: [ + '.now.sh' + ] + } +} \ No newline at end of file