Commit 01ee8086 authored by Adam Procter's avatar Adam Procter


# local env files
# Log files
# Editor directories and files
# twittervue
## Project setup
yarn install
### Compiles and hot-reloads for development
yarn run serve
### Compiles and minifies for production
yarn run build
### Lints and fixes files
yarn run lint
module.exports = {
presets: ["@vue/app"]
"name": "twittervue",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
"dependencies": {
"vue": "^2.5.17",
"vue-router": "^3.0.1",
"vuex": "^3.0.1"
"devDependencies": {
"@vue/cli-plugin-babel": "^3.0.0",
"@vue/cli-plugin-eslint": "^3.0.0",
"@vue/cli-service": "^3.0.0",
"@vue/eslint-config-prettier": "^3.0.1",
"vue-template-compiler": "^2.5.17"
"eslintConfig": {
"root": true,
"env": {
"node": true
"extends": [
"rules": {},
"parserOptions": {
"parser": "babel-eslint"
"postcss": {
"plugins": {
"autoprefixer": {}
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<strong>We're sorry but twittervue doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
<div id="app"></div>
<!-- built files will be auto injected -->
<div id="app">
<div id="nav">
<router-link to="/">Home</router-link> |
<router-link to="/about">About</router-link>
#app {
font-family: "Avenir", Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
#nav {
padding: 30px;
#nav a {
font-weight: bold;
color: #2c3e50;
#nav a.router-link-exact-active {
color: #42b983;
<div class="hello">
<h1>{{ msg }}</h1>
For guide and recipes on how to configure / customize this project,<br>
check out the
<a href="" target="_blank" rel="noopener">vue-cli documentation</a>.
<h3>Installed CLI Plugins</h3>
<li><a href="" target="_blank" rel="noopener">babel</a></li>
<li><a href="" target="_blank" rel="noopener">eslint</a></li>
<h3>Essential Links</h3>
<li><a href="" target="_blank" rel="noopener">Core Docs</a></li>
<li><a href="" target="_blank" rel="noopener">Forum</a></li>
<li><a href="" target="_blank" rel="noopener">Community Chat</a></li>
<li><a href="" target="_blank" rel="noopener">Twitter</a></li>
<li><a href="" target="_blank" rel="noopener">News</a></li>
<li><a href="" target="_blank" rel="noopener">vue-router</a></li>
<li><a href="" target="_blank" rel="noopener">vuex</a></li>
<li><a href="" target="_blank" rel="noopener">vue-devtools</a></li>
<li><a href="" target="_blank" rel="noopener">vue-loader</a></li>
<li><a href="" target="_blank" rel="noopener">awesome-vue</a></li>
export default {
name: "HelloWorld",
props: {
msg: String
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
margin: 40px 0 0;
ul {
list-style-type: none;
padding: 0;
li {
display: inline-block;
margin: 0 10px;
a {
color: #42b983;
import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
Vue.config.productionTip = false;
new Vue({
render: h => h(App)
import Vue from "vue";
import Router from "vue-router";
import Home from "./views/Home.vue";
export default new Router({
routes: [
path: "/",
name: "home",
component: Home
path: "/about",
name: "about",
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () =>
import(/* webpackChunkName: "about" */ "./views/About.vue")
import Vue from "vue";
import Vuex from "vuex";
export default new Vuex.Store({
state: {},
mutations: {},
actions: {}
<div class="about">
<h1>This is an about page</h1>
<div class="home">
<img alt="Vue logo" src="../assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js App"/>
// @ is an alias to /src
import HelloWorld from "@/components/HelloWorld.vue";
export default {
name: "home",
components: {
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment