This commit is contained in:
parent
b85c3958c2
commit
4a11fef0e0
@ -1,4 +1,4 @@
|
|||||||
FROM registry.odit.services/hub/library/node:19.5.0-alpine3.17 as build
|
FROM registry.odit.services/hub/library/node:19.5.0-alpine3.17 AS build
|
||||||
ARG NPM_REGISTRY_URL=https://registry.npmjs.org
|
ARG NPM_REGISTRY_URL=https://registry.npmjs.org
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@ -7,6 +7,6 @@ RUN npm config set registry $NPM_REGISTRY_URL && npm i -g pnpm@9
|
|||||||
RUN pnpm i && pnpm build && pnpm postbuild
|
RUN pnpm i && pnpm build && pnpm postbuild
|
||||||
|
|
||||||
# final image
|
# final image
|
||||||
FROM registry.odit.services/library/nginx-brotli:3.15 as final
|
FROM registry.odit.services/library/nginx-brotli:3.15 AS final
|
||||||
COPY --from=build /app/dist /usr/share/nginx/html
|
COPY --from=build /app/dist /usr/share/nginx/html
|
||||||
COPY ./nginx.conf /etc/nginx/nginx.conf
|
COPY ./nginx.conf /etc/nginx/nginx.conf
|
@ -1,6 +1,6 @@
|
|||||||
const fs = require('fs');
|
import { existsSync, writeFileSync, readFileSync } from "node:fs";
|
||||||
if (fs.existsSync('./dist/index.html')) {
|
if (existsSync("./dist/index.html")) {
|
||||||
const content = fs.readFileSync('./dist/index.html', { encoding: 'utf8' });
|
const content = readFileSync("./dist/index.html", { encoding: "utf8" });
|
||||||
const newcontent = content.replace(`"/env.js"`, `"./env.js"`);
|
const newcontent = content.replace(`"/env.js"`, `"./env.js"`);
|
||||||
fs.writeFileSync('./dist/index.html', newcontent);
|
writeFileSync("./dist/index.html", newcontent);
|
||||||
}
|
}
|
||||||
|
31
package.json
31
package.json
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@odit/lfk-selfservice",
|
"name": "@odit/lfk-selfservice",
|
||||||
"version": "0.11.3",
|
"version": "0.11.3",
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
@ -10,26 +11,22 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bwip-js": "3.2.2",
|
"bwip-js": "3.2.2",
|
||||||
"marked": "2.0.3",
|
"marked": "2.0.3",
|
||||||
"redaxios": "0.4.1",
|
"redaxios": "0.5.1",
|
||||||
"toastify-js": "1.10.0",
|
"toastify-js": "1.12.0",
|
||||||
"validator": "13.5.2",
|
"validator": "13.12.0",
|
||||||
|
"vue": "3.5.13",
|
||||||
"vue-i18n": "9.1.4",
|
"vue-i18n": "9.1.4",
|
||||||
"vue-toastification": "2.0.0-rc.1",
|
"vue-router": "4.5.0",
|
||||||
"vue": "3.0.9",
|
"vue-toastification": "2.0.0-rc.1"
|
||||||
"vue-router": "4.0.5"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/jit": "0.1.18",
|
"@tailwindcss/vite": "4.0.0-beta.4",
|
||||||
"@tailwindcss/aspect-ratio": "0.2.0",
|
"@vitejs/plugin-vue": "5.2.1",
|
||||||
"@tailwindcss/forms": "0.3.2",
|
"autoprefixer": "10.4.20",
|
||||||
"@tailwindcss/line-clamp": "0.2.0",
|
"release-it": "17.10.0",
|
||||||
"@tailwindcss/typography": "0.4.0",
|
"tailwindcss": "4.0.0-beta.4",
|
||||||
"@vitejs/plugin-vue": "1.2.1",
|
"vite": "6.0.2",
|
||||||
"@vue/compiler-sfc": "3.0.11",
|
"vite-plugin-vue-devtools": "^7.6.7"
|
||||||
"autoprefixer": "10.2.5",
|
|
||||||
"tailwindcss": "2.1.1",
|
|
||||||
"release-it": "14.6.1",
|
|
||||||
"vite": "2.1.5"
|
|
||||||
},
|
},
|
||||||
"release-it": {
|
"release-it": {
|
||||||
"git": {
|
"git": {
|
||||||
|
4970
pnpm-lock.yaml
generated
4970
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
plugins: {
|
|
||||||
'@tailwindcss/jit': {},
|
|
||||||
autoprefixer: {},
|
|
||||||
},
|
|
||||||
}
|
|
@ -1,3 +1 @@
|
|||||||
@import 'tailwindcss/base';
|
@import "tailwindcss";
|
||||||
@import 'tailwindcss/components';
|
|
||||||
@import 'tailwindcss/utilities';
|
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
purge: [ './index.html', './src/**/*.{vue,js,ts,jsx,tsx}' ],
|
|
||||||
darkMode: 'media', // or 'media' or 'class'
|
|
||||||
theme: {
|
|
||||||
extend: {}
|
|
||||||
},
|
|
||||||
variants: {
|
|
||||||
extend: {}
|
|
||||||
},
|
|
||||||
plugins: []
|
|
||||||
};
|
|
@ -1,13 +1,15 @@
|
|||||||
import { defineConfig } from 'vite';
|
import { fileURLToPath, URL } from "node:url";
|
||||||
import vue from '@vitejs/plugin-vue';
|
|
||||||
import path from 'path';
|
import { defineConfig } from "vite";
|
||||||
|
import vue from "@vitejs/plugin-vue";
|
||||||
|
import tailwindcss from "@tailwindcss/vite";
|
||||||
|
import vueDevTools from "vite-plugin-vue-devtools";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [ vue() ],
|
plugins: [vue(), vueDevTools(), tailwindcss()],
|
||||||
base: './',
|
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@': path.resolve(__dirname, '/src')
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user