Skip to content

Commit

Permalink
add development environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jackbow committed Apr 22, 2020
1 parent b97fea5 commit 120877a
Show file tree
Hide file tree
Showing 12 changed files with 12,285 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/node_modules
.DS_Store
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dev-env
**/node_modules
.DS_Store
5 changes: 5 additions & 0 deletions dev-env/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Development Environment

For working on the library components interactively.

To get started: `npm i; npm run serve`
5 changes: 5 additions & 0 deletions dev-env/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
12,126 changes: 12,126 additions & 0 deletions dev-env/package-lock.json

Large diffs are not rendered by default.

51 changes: 51 additions & 0 deletions dev-env/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"name": "dev-env",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@mcity/mcity-vue-shared": "file:..",
"axios": "^0.19.2",
"core-js": "^3.6.4",
"vue": "^2.6.11",
"vue-router": "^3.1.6",
"vuetify": "^2.2.11"
},
"devDependencies": {
"@fortawesome/fontawesome-free": "^5.13.0",
"@vue/cli-plugin-babel": "~4.2.0",
"@vue/cli-plugin-eslint": "~4.2.0",
"@vue/cli-service": "~4.2.0",
"babel-eslint": "^10.0.3",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.1.2",
"sass": "^1.19.0",
"sass-loader": "^8.0.0",
"vue-cli-plugin-vuetify": "~2.0.5",
"vue-template-compiler": "^2.6.11",
"vuetify-loader": "^1.3.0",
"webpack": "^4.42.1"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "babel-eslint"
},
"rules": {}
},
"browserslist": [
"> 1%",
"last 2 versions"
]
}
Binary file added dev-env/public/favicon.ico
Binary file not shown.
19 changes: 19 additions & 0 deletions dev-env/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<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">
<title><%= htmlWebpackPlugin.options.title %></title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css">
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
22 changes: 22 additions & 0 deletions dev-env/src/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<template>
<v-app>
<mcity-toolbar
fullname="fullname"
username="username"
presentation-text="Presentation Mode"
:isUserAdmin="true"
title="title"
/>
</v-app>
</template>

<script>
import McityToolbar from '@mcity/mcity-vue-shared/components/McityToolbar'
export default {
name: 'App',
components: {
McityToolbar,
},
};
</script>
22 changes: 22 additions & 0 deletions dev-env/src/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import vuetify from './plugins/vuetify'

Vue.config.productionTip = true

Vue.use(VueRouter)

const routes = [
{ path: '/', component: App },
]
const router = new VueRouter({
routes,
})

new Vue({
vuetify,
router,
el: '#app',
render: h => h(App),
})
24 changes: 24 additions & 0 deletions dev-env/src/plugins/vuetify.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import '@fortawesome/fontawesome-free/css/all.css'
import Vue from 'vue';
import Vuetify from 'vuetify/lib';

Vue.use(Vuetify);

export default new Vuetify({
theme: {
themes: {
light: {
primary: '#00274C',
secondary: '#FFCB05',
accent: '#82B1FF',
error: '#FF5252',
info: '#2196F3',
success: '#4CAF50',
warning: '#FFC107',
},
},
},
icons: {
iconfont: 'fa',
},
})
6 changes: 6 additions & 0 deletions dev-env/vue.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
"transpileDependencies": [
"vuetify"
],
chainWebpack: config => config.resolve.symlinks(false)
}

0 comments on commit 120877a

Please sign in to comment.