Skip to content

Instantly share code, notes, and snippets.

@peterbe
Created June 17, 2024 17:29
Show Gist options
  • Save peterbe/16c6e367442ad24cf9f5d6c59d7e203c to your computer and use it in GitHub Desktop.
Save peterbe/16c6e367442ad24cf9f5d6c59d7e203c to your computer and use it in GitHub Desktop.
# https://github.com/casey/just
# https://just.systems/
dev:
npm run dev
dev-with-languages:
NODE_ENV=development ENABLED_LANGUAGES=all nodemon src/frame/server.ts
start-fixtures-server-dev:
TRANSLATIONS_FIXTURE_ROOT=src/fixtures/fixtures/translations ROOT=src/fixtures/fixtures NODE_ENV=development ENABLED_LANGUAGES=en,ja nodemon src/frame/server.ts
start-fixtures-server-prod:
TRANSLATIONS_FIXTURE_ROOT=src/fixtures/fixtures/translations ROOT=src/fixtures/fixtures NODE_ENV=production ENABLED_LANGUAGES=en tsx src/frame/server.ts
start-fixtures-server-test:
TRANSLATIONS_FIXTURE_ROOT=src/fixtures/fixtures/translations ROOT=src/fixtures/fixtures NODE_ENV=test ENABLED_LANGUAGES=en tsx src/frame/server.ts
playwright-codegen:
npx playwright codegen
playwright-test-rendering:
PLAYWRIGHT_WORKERS=4 CI=1 npm run playwright-test -- playwright-rendering
test-fixtures:
ROOT=src/fixtures/fixtures TRANSLATIONS_FIXTURE_ROOT=src/fixtures/fixtures/translations vitest src/fixtures/tests
build:
npm run build
start:
NODE_ENV=production ENABLED_LANGUAGES=en tsx src/frame/server.ts
build-and-start: build start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment