0.0.1 • Published 1 year ago

@yandex-games/sdk-dev-proxy v0.0.1

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Yandex.Games SDK developing server

This package allows you to locally develop a game for the project https://yandex.ru/games

Usage:

npx @yandex-games/sdk-dev-proxy [options]

Available Options:

CommandDescription
--helpShow help
--host, -hHost where your game is available (server will proxy to this addres)
--path, -pThe folder where your game is located (server will serve static files from this folder)
--portPort to use (default: 8080)
--app-id, -iID of your game (it must be draft)
--csp, -cAdds a csp header similar to what would be added to your index.html
--log, -lEnable request logger (default: true)
--tldChange yandex TLD, for example to yandex.com (default: 'ru')

For correct start, one of two parameters must be specified path, host

Examples

Serve static files with adding cps meta tag and disabling logging

npx @yandex-games/sdk-dev-proxy -p /home/user/game/ --csp -l false

Create proxy server on 3000 port to your local build server with adding csp meta tag

npx @yandex-games/sdk-dev-proxy -h https://localhost:8000 --csp --port=3000