Compare commits
6 Commits
df85a30dff
...
200ec975f7
| Author | SHA1 | Date | |
|---|---|---|---|
| 200ec975f7 | |||
| 5f5757c784 | |||
| 571b74f0e7 | |||
| 8363cc2816 | |||
| d852e9e573 | |||
| bd4ca7ba63 |
144
package.json
144
package.json
@@ -1,74 +1,76 @@
|
|||||||
{
|
{
|
||||||
"name": "lstv2",
|
"name": "lstv2",
|
||||||
"version": "2.4.0",
|
"version": "2.4.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "concurrently -n \"server,frontend\" -c \"#007755,#2f6da3\" \"npm run dev:server\" \"cd frontend && npm run dev\"",
|
"dev": "concurrently -n \"server,frontend\" -c \"#007755,#2f6da3\" \"npm run dev:server\" \"cd frontend && npm run dev\"",
|
||||||
"dev:server": "dotenvx run -f .env -- tsx watch server/index.ts",
|
"dev:server": "dotenvx run -f .env -- tsx watch server/index.ts",
|
||||||
"dev:frontend": "cd frontend && npm run dev",
|
"dev:frontend": "cd frontend && npm run dev",
|
||||||
"dev:dbgen": " drizzle-kit generate --config=drizzle-dev.config.ts",
|
"dev:dbgen": " drizzle-kit generate --config=drizzle-dev.config.ts",
|
||||||
"dev:dbmigrate": " drizzle-kit migrate --config=drizzle-dev.config.ts",
|
"dev:dbmigrate": " drizzle-kit migrate --config=drizzle-dev.config.ts",
|
||||||
"build": "npm run build:server && npm run build:frontend",
|
"build": "npm run build:server && npm run build:frontend",
|
||||||
"build:server": "rimraf build && tsc --build && xcopy server\\scripts dist\\server\\scripts /E /I /Y",
|
"build:server": "rimraf build && tsc --build && xcopy server\\scripts dist\\server\\scripts /E /I /Y",
|
||||||
"build:frontend": "cd frontend && npm run build",
|
"build:frontend": "cd frontend && npm run build",
|
||||||
"start": "set NODE_ENV=production && npm run start:server",
|
"start": "set NODE_ENV=production && npm run start:server",
|
||||||
"start:server": "dotenvx run -f .env -- node dist/server/index.js",
|
"start:server": "dotenvx run -f .env -- node dist/server/index.js",
|
||||||
"db:generate": "npx drizzle-kit generate",
|
"db:generate": "npx drizzle-kit generate",
|
||||||
"db:migrate": "npx drizzle-kit push",
|
"db:migrate": "npx drizzle-kit push",
|
||||||
"deploy": "standard-version --conventional-commits",
|
"deploy": "standard-version --conventional-commits && npm run prodBuild",
|
||||||
"commit": "cz",
|
"zipServer": " tsx server/scripts/zipUpBuild.ts \"C:\\Users\\matthes01\\Documents\\lstv2\"",
|
||||||
"prodinstall": "npm i --omit=dev && npm run db:migrate"
|
"prodBuild": "powershell -ExecutionPolicy Bypass -File server/scripts/build.ps1 -dir \"C:\\Users\\matthes01\\Documents\\lstv2 && npm run zipServer",
|
||||||
},
|
"commit": "cz",
|
||||||
"dependencies": {
|
"prodinstall": "npm i --omit=dev && npm run db:migrate"
|
||||||
"@dotenvx/dotenvx": "^1.38.3",
|
},
|
||||||
"@hono/node-server": "^1.13.8",
|
"dependencies": {
|
||||||
"@hono/zod-openapi": "^0.18.4",
|
"@dotenvx/dotenvx": "^1.38.3",
|
||||||
"@scalar/hono-api-reference": "^0.5.175",
|
"@hono/node-server": "^1.13.8",
|
||||||
"@types/jsonwebtoken": "^9.0.8",
|
"@hono/zod-openapi": "^0.18.4",
|
||||||
"adm-zip": "^0.5.16",
|
"@scalar/hono-api-reference": "^0.5.175",
|
||||||
"axios": "^1.7.9",
|
"@types/jsonwebtoken": "^9.0.8",
|
||||||
"bcrypt": "^5.1.1",
|
"adm-zip": "^0.5.16",
|
||||||
"compression": "^1.8.0",
|
"axios": "^1.7.9",
|
||||||
"cookie": "^1.0.2",
|
"bcrypt": "^5.1.1",
|
||||||
"date-fns": "^4.1.0",
|
"compression": "^1.8.0",
|
||||||
"dotenv": "^16.4.7",
|
"cookie": "^1.0.2",
|
||||||
"drizzle-kit": "^0.30.4",
|
"date-fns": "^4.1.0",
|
||||||
"drizzle-orm": "^0.39.3",
|
"dotenv": "^16.4.7",
|
||||||
"drizzle-zod": "^0.7.0",
|
"drizzle-kit": "^0.30.4",
|
||||||
"jsonwebtoken": "^9.0.2",
|
"drizzle-orm": "^0.39.3",
|
||||||
"mssql": "^11.0.1",
|
"drizzle-zod": "^0.7.0",
|
||||||
"nodemailer": "^6.10.0",
|
"jsonwebtoken": "^9.0.2",
|
||||||
"nodemailer-express-handlebars": "^7.0.0",
|
"mssql": "^11.0.1",
|
||||||
"pg": "^8.13.3",
|
"nodemailer": "^6.10.0",
|
||||||
"pino": "^9.6.0",
|
"nodemailer-express-handlebars": "^7.0.0",
|
||||||
"pino-abstract-transport": "^2.0.0",
|
"pg": "^8.13.3",
|
||||||
"pino-pretty": "^13.0.0",
|
"pino": "^9.6.0",
|
||||||
"postgres": "^3.4.5",
|
"pino-abstract-transport": "^2.0.0",
|
||||||
"zod": "^3.24.2"
|
"pino-pretty": "^13.0.0",
|
||||||
},
|
"postgres": "^3.4.5",
|
||||||
"devDependencies": {
|
"zod": "^3.24.2"
|
||||||
"@types/adm-zip": "^0.5.7",
|
},
|
||||||
"@types/bcrypt": "^5.0.2",
|
"devDependencies": {
|
||||||
"@types/js-cookie": "^3.0.6",
|
"@types/adm-zip": "^0.5.7",
|
||||||
"@types/mssql": "^9.1.7",
|
"@types/bcrypt": "^5.0.2",
|
||||||
"@types/node": "^22.13.5",
|
"@types/js-cookie": "^3.0.6",
|
||||||
"@types/pg": "^8.11.11",
|
"@types/mssql": "^9.1.7",
|
||||||
"concurrently": "^8.2.0",
|
"@types/node": "^22.13.5",
|
||||||
"cz-conventional-changelog": "^3.3.0",
|
"@types/pg": "^8.11.11",
|
||||||
"dotenv": "^16.3.1",
|
"concurrently": "^8.2.0",
|
||||||
"rimraf": "^6.0.1",
|
"cz-conventional-changelog": "^3.3.0",
|
||||||
"standard-version": "^9.5.0",
|
"dotenv": "^16.3.1",
|
||||||
"tsx": "^4.7.1",
|
"rimraf": "^6.0.1",
|
||||||
"typescript": "~5.7.3"
|
"standard-version": "^9.5.0",
|
||||||
},
|
"tsx": "^4.7.1",
|
||||||
"config": {
|
"typescript": "~5.7.3"
|
||||||
"commitizen": {
|
},
|
||||||
"path": "./node_modules/cz-conventional-changelog"
|
"config": {
|
||||||
|
"commitizen": {
|
||||||
|
"path": "./node_modules/cz-conventional-changelog"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"admConfig": {
|
||||||
|
"build": 8,
|
||||||
|
"dest": "C:\\Users\\matthes01\\Documents\\lstv2\\builds",
|
||||||
|
"src": "C:\\Users\\matthes01\\Documents\\lstv2"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"admConfig": {
|
|
||||||
"build": 2,
|
|
||||||
"dest": "C:\\Users\\matthes01\\Documents\\lstv2\\builds",
|
|
||||||
"src": "C:\\Users\\matthes01\\Documents\\lstv2"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -6,6 +6,8 @@ import {createLog} from "../services/logger/logger.js";
|
|||||||
|
|
||||||
// create the ignore list
|
// create the ignore list
|
||||||
const ignoreList = [
|
const ignoreList = [
|
||||||
|
".git",
|
||||||
|
"builds",
|
||||||
"node_modules",
|
"node_modules",
|
||||||
"apiDocsLSTV2",
|
"apiDocsLSTV2",
|
||||||
"testFiles",
|
"testFiles",
|
||||||
@@ -14,6 +16,7 @@ const ignoreList = [
|
|||||||
".versionrc.json",
|
".versionrc.json",
|
||||||
"drizzle-dev.config.ts",
|
"drizzle-dev.config.ts",
|
||||||
"nssm.exe",
|
"nssm.exe",
|
||||||
|
"postgresql-17.2-3-windows-x64.exe",
|
||||||
// front end ignore
|
// front end ignore
|
||||||
"/frontend/node_modules",
|
"/frontend/node_modules",
|
||||||
"fonrtend/.env",
|
"fonrtend/.env",
|
||||||
@@ -152,4 +155,21 @@ export const createZip = async (appLock: string) => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
createZip("C:\\Users\\matthes01\\Documents\\lstv2");
|
//createZip("C:\\Users\\matthes01\\Documents\\lstv2");
|
||||||
|
|
||||||
|
// Only call `createZip` if the script is executed directly
|
||||||
|
|
||||||
|
if (process.argv.length > 2) {
|
||||||
|
const location = process.argv[2];
|
||||||
|
|
||||||
|
if (!location) {
|
||||||
|
createLog("error", "lst", "zipUpBuild", "Error: No location provided.");
|
||||||
|
process.exit(1);
|
||||||
|
} else {
|
||||||
|
createLog("info", "lst", "zipUpBuild", "Startiing the zip process.");
|
||||||
|
}
|
||||||
|
|
||||||
|
createZip(location);
|
||||||
|
} else {
|
||||||
|
createLog("error", "lst", "zipUpBuild", "Error: No location provided.");
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user