temp: add eco

This commit is contained in:
2024-12-03 23:22:39 +08:00
parent eba5e4988e
commit a5d0e66b3c
12 changed files with 149 additions and 93 deletions

View File

@@ -8,8 +8,9 @@
"scripts": {
"watch": "rollup -c rollup.config.mjs -w",
"dev": "cross-env NODE_ENV=development nodemon --delay 2.5 -e js,cjs,mjs --exec node dist/app.mjs",
"dev:pm2": "pm2-dev start ecosystem.config.cjs",
"test": "tsx test/**/*.ts",
"dev:watch": "concurrently -n \"Watch,Dev\" -c \"green,blue\" \"npm run watch\" \"sleep 1 && npm run dev\" ",
"dev:watch": "cross-env NODE_ENV=development concurrently -n \"Watch,Dev\" -c \"green,blue\" \"npm run watch\" \"sleep 1 && npm run dev\" ",
"build": "rimraf dist && rollup -c rollup.config.mjs",
"deploy": "rsync -avz --delete ./dist/ --exclude='app.config.json5' light:~/apps/codeflow/backend",
"clean": "rm -rf dist",
@@ -70,6 +71,7 @@
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-replace": "^6.0.1",
"@rollup/plugin-typescript": "^12.1.1",
"@types/archiver": "^6.0.3",
"@types/crypto-js": "^4.2.2",
@@ -83,6 +85,7 @@
"cross-env": "^7.0.3",
"nodemon": "^3.1.7",
"pm2": "^5.4.3",
"pm2-dev": "^5.4.1",
"rimraf": "^6.0.1",
"rollup": "^4.27.4",
"rollup-plugin-copy": "^3.5.0",