Skip to content

Commit

Permalink
chore: Commit full package json with comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nezort11 committed Jan 4, 2025
1 parent b4e9ff1 commit 2d33eee
Showing 1 changed file with 42 additions and 2 deletions.
44 changes: 42 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,64 @@
"yc:container:create": "source ./scripts/projectname-env.sh && yc serverless container create --name $PACKAGE_NAME",
"yc:container:print": "source ./scripts/pre-container.sh && echo \"Your serverless container is available at https://$CONTAINER_ID.containers.yandexcloud.net/\"",
"yc:container:deploy": "source ./scripts/pre-image.sh && yc serverless container revision deploy --container-name $PACKAGE_NAME --image $IMAGE_NAME --cores 1 --memory 1GB --concurrency 1 --execution-timeout 30s --service-account-id $SERVICE_ACCOUNT_ID",
"yc:deploy": "pnpm yc:image:build && pnpm yc:image:push && pnpm yc:container:deploy && pnpm yc:container:print",
"yc:deploy": "pnpm yc:image:build && pnpm yc:image:push && pnpm yc:container:deploy && pnpm yc:container:print"
},
"comments": {
"---------": "---------",
"_dev:prod": "NODE_ENV=production pnpm _dev:command",
"_cli": "NODE_ENV=development node --experimental-specifier-resolution=node --no-warnings --loader ts-node/esm ./src/cli.ts $url",
"cli": "pnpm _cli",
"-start:dev": "NODE_ENV=development pnpm _command ./build/index.js",
"dev:deamon": "pnpm _pre:nvm 'NODE_ENV=development pnpm _dev:deamon:command'",
"dev:prod:deamon": "pnpm _pre:nvm 'NODE_ENV=production pnpm _dev:deamon:command'",
"": "",
"-dev": "pnpm pre:nvm 'pnpm webhook:reset && pnpm nodemon --exec \"pnpm command --loader ts-node/esm\" ./src/main.ts'",
"docker:dev": "docker compose up",
"------": "------",
"-webhook:set": "pnpm pre:env 'pnpm telegraf -m setWebhook -t \"$BOT_TOKEN\" -D \"{ \\\"url\\\": \\\"https://$CONTAINER_DOMAIN\\\" }\"'",
"-webhook:reset": "pnpm pre:env 'pnpm telegraf -m setWebhook -t \"$BOT_TOKEN\" -D \"{ \\\"url\\\": \\\"\\\" }\"'",
"-ci": "pnpm docker:build",
"-cd": "pnpm ci && pnpm yc:registry:publish && pnpm yc:container:deploy",
"ssh": "ssh raspberrypi",
"ssh2": "pnpm pre:env 'sshpass -p $SERVER_PASSWORD ssh timeweb'",
"purge": "pnpm pre:env 'sshpass -p $SERVER_PASSWORD ssh timeweb \"cd /root/yandex-voice-translate-bot && ls --almost-all | grep -xv node_modules | xargs rm -rf\"'",
"-deploy": "rsync -avzc --exclude=.DS_Store --exclude=.git --exclude=node_modules --exclude=build --exclude=.pnpm/cache --exclude='*.mp3' --exclude='*.mp4' --exclude='*.log' . raspberrypi2:~/yandex-voice-translate-bot",
"deploy2": "pnpm pre:env 'sshpass -p $SERVER_PASSWORD rsync -avzc --exclude=.git --exclude=node_modules --exclude=build --exclude=.pnpm/install-state.gz --exclude=.pnpm/cache --exclude=*.mp3 --exclude=*.mp4 . timeweb:/root/yandex-voice-translate-bot'",
"deploy:ffmpeg": "pnpm pre:env 'sshpass -p $SERVER_PASSWORD rsync -avzc ../ffmpeg-dist timeweb:/root/ffmpeg-dist'",
"docker": "docker compose --env-file ./.env --env-file ./image-translate/.env -f ./compose.yml",
"docker:build": "pnpm docker build && pnpm docker:down && pnpm docker:image:clean",
"docker:up": "pnpm docker up --detach",
"docker:logs": "pnpm docker logs --follow --timestamps --since='6h' --tail='1000'",
"docker:top": "pnpm docker top",
"docker:shell": "pnpm docker exec yandex_voice_translate_bot bash",
"docker:run": "pnpm docker run -it yandex_voice_translate_bot bash",
"docker:down": "pnpm docker down",
"docker:stop": "pnpm docker stop",
"docker:restart": "pnpm docker:down && pnpm docker:up",
"docker:down:clean": "pnpm docker down --rmi=all --volumes",
"docker:image:clean": "docker image rm -f $(docker image ls -aqf dangling=true) || echo ''",
"docker:container:clean": "docker rm $(docker ps --filter=status=exited --filter=status=dead -q)",
"docker:cache:info": "docker system df",
"docker:cache:clean": "docker system prune --volumes",
"yarn:cache:clean": "rm -rf ~/.yarn/cache && rm -rf ~/Library/Caches/Yarn/v6"
},
"dependencies": {
"curl-wrap": "1.0.3",
"debug": "^4.3.4",
"dotenv": "16.4.7",
"express": "4.18.2",
"raw-body": "3.0.0",
"serialize-error": "11.0.3"
},
"devDependencies": {
"@types/debug": "^4.1.12",
"@types/express": "4.17.17",
"@types/node": "18.15.3",
"husky": "8.0.3",
"nodemon": "2.0.20",
"ts-node": "10.9.1",
"tsx": "4.19.2",
"typescript": "5.4.5",
"yarnhook": "0.6.0"
},
}
}

0 comments on commit 2d33eee

Please sign in to comment.