Commit 8e978c61 authored by wenom64's avatar wenom64
Browse files

Initial commit

Pipeline #21593 canceled with stages
# local env files
# Log files
# Editor directories and files
FROM node:lts-alpine
# install simple http server for serving static content
RUN yarn global add --silent http-server
# install the vue-cli
RUN yarn global add --silent @vue/cli
# create app directory
RUN mkdir /app
# copy both 'package.json' and 'yarn.lock'
COPY package.json /app/
COPY yarn.lock /app/
# copy project files and folders to the current working directory (i.e. 'app' folder)
COPY . /app/
# make the 'app' folder the current working directory
# install project dependencies
#RUN yarn install --production=false
RUN yarn install
# build the app
RUN yarn run build
#RUN yarn run serve
# vue-cli
## Project setup
yarn install
### Compiles and hot-reloads for development
yarn serve
### Compiles and minifies for production
yarn build
### Lints and fixes files
yarn lint
### Customize configuration
See [Configuration Reference](
module.exports = {
presets: [
version: '3'
context: .
dockerfile: Dockerfile
- NODE_ENV=development
- .:/app
- node_modules:/app/node_modules:rw
- ./dist:/app/dist:rw
- "8080:8080"
# uncomment command below to run development version
command: "yarn run serve"
# command: "http-server dist"
# dist:
"name": "docker_vue-cli",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
"dependencies": {
"core-js": "^3.4.4",
"vue": "^2.6.10"
"devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0",
"@vue/cli-plugin-eslint": "^4.1.0",
"@vue/cli-service": "^4.1.0",
"babel-eslint": "^10.0.3",
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0",
"vue-template-compiler": "^2.6.10"
"eslintConfig": {
"root": true,
"env": {
"node": true
"extends": [
"rules": {},
"parserOptions": {
"parser": "babel-eslint"
"browserslist": [
"> 1%",
"last 2 versions"
<!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 vue-cli 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">
<img alt="Vue logo" src="./assets/logo.png">
<HelloWorld msg="Welcome to Your Vue.js App"/>
import HelloWorld from './components/HelloWorld.vue'
export default {
name: 'app',
components: {
#app {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
<div class="hello">
<h1>{{ msg }}</h1>
For a 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";
Vue.config.productionTip = false;
new Vue({
render: h => h(App),
This diff is collapsed.
Supports Markdown
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