Skip to content

Commit f37384d

Browse files
Merge branch 'release/v0.1.1'
2 parents 0b27d41 + d3069f1 commit f37384d

24 files changed

+1129
-37
lines changed

.env

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Package JSON string for globally access attention
2+
VUE_APP_PACKAGE_JSON=''
3+
4+
# TAG must be corresponding with the version tag in package.json, need to modify it when new version releases
5+
TAG=0.1.1

.env.development

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# NODE_ENV can only be 'development' or 'production'.
2+
# If set other value, packaged resource would be difference between environment.
3+
NODE_ENV = 'development'
4+
# Just a flag
5+
VUE_APP_ENV = 'dev'
6+
# Whether application is running on docker
7+
VUE_APP_RUN_ON_DOCKER = 'false'
8+
9+
# Backend server IP and port. It's required when the environment is development.
10+
# Left blank if the environment is not development.
11+
VUE_APP_BASE_URL = 'http://localhost:8080'
12+
# Base api
13+
VUE_APP_BASE_API = '/jm-spring-boot-template-dev_loc'
14+
# Resource base api for picture, video ect.
15+
VUE_APP_RESOURCE_BASE_API = 'http://localhost:8080/jm-spring-boot-template-dev_loc'
16+
17+
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
18+
# to control whether the babel-plugin-dynamic-import-node plugin is enabled.
19+
# It only does one thing by converting all import() to require().
20+
# This configuration can significantly increase the speed of hot updates,
21+
# when you have a large number of pages.
22+
# Detail: https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/babel-preset-app/index.js
23+
VUE_CLI_BABEL_TRANSPILE_MODULES = true

.env.development_docker

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# NODE_ENV can only be 'development' or 'production'.
2+
# If set other value, packaged resource would be difference between environment.
3+
NODE_ENV = 'production'
4+
# Just a flag
5+
VUE_APP_ENV = 'dev_dkr'
6+
# Whether application is running on docker
7+
VUE_APP_RUN_ON_DOCKER = 'true'
8+
9+
# Backend server IP and port. It's required when the environment is development.
10+
# Left blank if the environment is not development.
11+
VUE_APP_BASE_URL = ''
12+
# Base api
13+
VUE_APP_BASE_API = 'http://localhost:8081/jm-spring-boot-template-dev_dkr'
14+
# Resource base api for picture, video ect.
15+
VUE_APP_RESOURCE_BASE_API = 'http://localhost:8081/jm-spring-boot-template-dev_dkr'

.env.production

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# NODE_ENV can only be 'development' or 'production'.
2+
# If set other value, packaged resource would be difference between environment.
3+
NODE_ENV = 'production'
4+
# just a flag
5+
VUE_APP_ENV = 'prod'
6+
# Whether application is running on docker
7+
VUE_APP_RUN_ON_DOCKER = 'true'
8+
9+
# Backend server IP and port. It's required when the environment is development.
10+
# Left blank if the environment is not development.
11+
VUE_APP_BASE_URL = ''
12+
# Base api
13+
VUE_APP_BASE_API = 'http://106.13.32.85:8081/jm-spring-boot-template-prod'
14+
# Resource base api for picture, video ect.
15+
VUE_APP_RESOURCE_BASE_API = 'http://106.13.32.85:8081/jm-spring-boot-template-prod'

.env.stage

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# NODE_ENV can only be 'development' or 'production'.
2+
# If set other value, packaged resource would be difference between environment.
3+
NODE_ENV = 'production'
4+
# just a flag
5+
VUE_APP_ENV = 'stage'
6+
# Whether application is running on docker
7+
VUE_APP_RUN_ON_DOCKER = 'true'
8+
9+
# Backend server IP and port. It's required when the environment is development.
10+
# Left blank if the environment is not development.
11+
VUE_APP_BASE_URL = ''
12+
# Base api
13+
VUE_APP_BASE_API = 'http://localhost/jm-spring-boot-template-stage'
14+
# Resource base api for picture, video ect.
15+
VUE_APP_RESOURCE_BASE_API = 'http://localhost/jm-spring-boot-template-stage'

.env.test

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# NODE_ENV can only be 'development' or 'production'.
2+
# If set other value, packaged resource would be difference between environment.
3+
NODE_ENV = 'production'
4+
# just a flag
5+
VUE_APP_ENV = 'test'
6+
# Whether application is running on docker
7+
VUE_APP_RUN_ON_DOCKER = 'true'
8+
9+
# Backend server IP and port. It's required when the environment is development.
10+
# Left blank if the environment is not development.
11+
VUE_APP_BASE_URL = ''
12+
# Base api
13+
VUE_APP_BASE_API = 'http://localhost/jm-spring-boot-template-test'
14+
# Resource base api for picture, video ect.
15+
VUE_APP_RESOURCE_BASE_API = 'http://localhost/jm-spring-boot-template-test'

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
## [0.1.1](https://github.com/johnnymillergh/vuetify-typescript-playground/compare/v0.1.0...v0.1.1) (2019-12-27)
2+
3+
4+
### Bug Fixes
5+
6+
* **$Travis:** correct NPM command ([c20c7d2](https://github.com/johnnymillergh/vuetify-typescript-playground/commit/c20c7d25194056a73da116489cfb86dd041925a5))
7+
* **$VueConfig:** fix ESLint problem ([02b2281](https://github.com/johnnymillergh/vuetify-typescript-playground/commit/02b2281553a0557fb7b7931382c952380a6c65e0))
8+
9+
10+
### Features
11+
12+
* **$Demo:** create Vuetify demo page ([80afc80](https://github.com/johnnymillergh/vuetify-typescript-playground/commit/80afc804c594db618c8417820916f7d44658c48e))
13+
* **$Docker:** integrate Docker ([24e43db](https://github.com/johnnymillergh/vuetify-typescript-playground/commit/24e43db4a9e8ea0275242638248e892bf6559964))
14+
* **$RouterView:** add router changing animation ([340f912](https://github.com/johnnymillergh/vuetify-typescript-playground/commit/340f9122912fbdc0cd52c9f3a8104e41ed50d0c3))
15+
16+
17+
### Performance Improvements
18+
19+
* **$package.json:** update dependencies ([453198f](https://github.com/johnnymillergh/vuetify-typescript-playground/commit/453198f85790205ff9c094945437a5d9a67efbc0))
20+
21+
22+
123
# 0.1.0 (2019-12-27)
224

325

Dockerfile

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# inspired by https://vuejs.org/v2/cookbook/dockerize-vuejs-app.html#Real-World-Example
2+
# use multi-stage builds: https://docs.docker.com/develop/develop-images/multistage-build/
3+
4+
# METHOND 1 (simple)
5+
6+
## 1 build stage
7+
## 1.1 prepare for building front-end project
8+
#FROM node:10 as build-stage
9+
#
10+
## 1.2 make the 'app' folder the current working directory
11+
#WORKDIR /app
12+
#
13+
## 1.3 copy both 'package.json' and 'package-lock.json' (if available)
14+
#COPY package*.json ./
15+
#
16+
## 1.4 install project dependencies
17+
#RUN npm install
18+
#
19+
## 1.5 copy project files and folders to the current working directory (i.e. 'app' folder)
20+
#COPY . .
21+
#
22+
## 1.6 get ENV Alias arguement
23+
#ARG ENV_ALIAS
24+
#RUN echo ${ENV_ALIAS}
25+
#
26+
## 1.7 build static resources
27+
#RUN npm run build:${ENV_ALIAS} --scripts-prepend-node-path=auto
28+
#
29+
## 2 publishing stage
30+
## 2.1 publish static resouces
31+
#FROM nginx as publishing-stage
32+
#
33+
## 2.2 copy compiled static resources to the directory that NGINX proxies
34+
#COPY --from=build-stage /app/dist/ /usr/share/nginx/html/
35+
#
36+
## 2.3 get ENV arguement
37+
#ARG ENV
38+
#RUN echo ${ENV}
39+
#
40+
## 2.4 copy custom NGINX configuration to cover its default one
41+
#COPY nginx/default-${ENV}.conf /etc/nginx/conf.d/default.conf
42+
#
43+
## 2.5 expose port
44+
#EXPOSE 80
45+
#
46+
## 2.6 start NGINX
47+
#CMD ["nginx", "-g", "daemon off;"]
48+
49+
# METHOND 2 (faster)
50+
51+
# 1 publishing stage
52+
# 1.1 publish static resouces
53+
FROM nginx as publishing-stage
54+
55+
# 1.2 copy compiled static resources to the directory that NGINX proxies
56+
COPY dist/ /usr/share/nginx/html/
57+
58+
# 2.3 get ENV arguement
59+
ARG ENV
60+
RUN echo ${ENV}
61+
62+
# 1.4 copy custom NGINX configuration
63+
COPY nginx/nginx-${ENV}.conf /etc/nginx/nginx.conf
64+
COPY nginx/mime.types /etc/nginx/mime.types
65+
66+
# 1.5 expose port
67+
EXPOSE 80
68+
69+
# 1.6 start NGINX
70+
CMD ["nginx", "-g", "daemon off;"]
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: "3.7"
2+
3+
services:
4+
vuetify-typescript-playground:
5+
container_name: vuetify-typescript-playground
6+
image: "ijohnnymiller/vuetify-typescript-playground-dev_dkr:${TAG}"
7+
build:
8+
dockerfile: Dockerfile
9+
context: .
10+
args:
11+
ENV: development_docker
12+
ENV_ALIAS: dev_dkr
13+
ports:
14+
- 8081:80

docker-compose.production.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: "3.7"
2+
3+
services:
4+
vuetify-typescript-playground:
5+
container_name: vuetify-typescript-playground
6+
image: "ijohnnymiller/vuetify-typescript-playground-prod:${TAG}"
7+
build:
8+
dockerfile: Dockerfile
9+
context: .
10+
args:
11+
ENV: production
12+
ENV_ALIAS: prod
13+
ports:
14+
- 8081:80

0 commit comments

Comments
 (0)