diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..55d2c26 --- /dev/null +++ b/.env.development @@ -0,0 +1,2 @@ +VUE_APP_API_PRINTER =https://printer.api.test.profcomff.com +VUE_APP_API_MARKETING =https://marketing.api.test.profcomff.com/v1 diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..854be8c --- /dev/null +++ b/.env.production @@ -0,0 +1,2 @@ +VUE_APP_API_PRINTER =https://printer.api.profcomff.com +VUE_APP_API_MARKETING =https://marketing.api.profcomff.com/v1 diff --git a/Dockerfile b/Dockerfile index b5b48b1..e081875 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,10 @@ FROM node:16 AS build +ARG BUILD_MODE=production WORKDIR /app ADD ./package.json ./yarn.lock /app/ RUN yarn ADD . /app -RUN yarn build +RUN yarn build --mode ${BUILD_MODE} FROM nginx:1.21 ADD ./default.conf /etc/nginx/conf.d/default.conf diff --git a/package.json b/package.json index 0a1af26..7345b0c 100644 --- a/package.json +++ b/package.json @@ -22,23 +22,18 @@ "yarn": "^1.22.19" }, "devDependencies": { - "@typescript-eslint/eslint-plugin": "^4.18.0", - "@typescript-eslint/parser": "^4.18.0", "@vue/cli-plugin-babel": "~4.5.0", "@vue/cli-plugin-eslint": "~4.5.0", "@vue/cli-plugin-pwa": "~4.5.0", "@vue/cli-plugin-router": "~4.5.0", - "@vue/cli-plugin-typescript": "~4.5.0", "@vue/cli-plugin-vuex": "~4.5.0", "@vue/cli-service": "~4.5.0", "@vue/compiler-sfc": "^3.0.0", "@vue/eslint-config-prettier": "^6.0.0", - "@vue/eslint-config-typescript": "^7.0.0", "eslint": "^6.7.2", "eslint-plugin-prettier": "^3.3.1", "eslint-plugin-vue": "^7.0.0", - "prettier": "^2.2.1", - "typescript": "~4.1.5" + "prettier": "^2.2.1" }, "eslintConfig": { "root": true, @@ -48,9 +43,7 @@ "extends": [ "plugin:vue/vue3-essential", "eslint:recommended", - "@vue/typescript/recommended", - "@vue/prettier", - "@vue/prettier/@typescript-eslint" + "@vue/prettier" ], "parserOptions": { "ecmaVersion": 2020 diff --git a/public/index.html b/public/index.html index 5759e6f..15a56d7 100644 --- a/public/index.html +++ b/public/index.html @@ -13,6 +13,7 @@ We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.
+