Scripts
September 17, 2024 ยท View on GitHub
Besides scripts inside the package.json, there are multiple scripts outside of package.json in this repo. Most of them are used for the CI/CD workflow. like scripts folder and next-env.mjs.
Scripts inside of package.json
- root
ci-build-packages: all-in-one scripts, useful on CI/CD
- apps/console
download-airbyte-icons: use to download Airbyte maintained component's icons from their GitHub.check-pnpm-overrides: check whether there has pnpm overrides configured. Currently, we don't allow this.
- packages/design-system
watch:css: use for local development with TailwindCSS
- packages/design-token
build-sd: build style dictionary tokensbuild-tw: build TailwindCSS presetbuild-css-variables: build CSS variables
- packages/toolkit
dev-ts: watch file changes to generate typescript types
Scripts outside of package.json
scripts/docker-build: Build the docker image of the consolescripts/docker-run-host: Run the docker image of the console, the internet is on host machine (Like localhost:3000) (You could dynamically change the environment variables here)scripts/docker-run-docker: Run the docker image of the console, the internet is on docker (Like console:3000) (You could dynamically change the environment variables here)scripts/docker-build-test: Build the docker image of the Playright for testingscripts/docker-run-test: Run the docker image of the Playright for testingscripts/docker-remove.sh: Remove all the running docker containersapps/console/next-env.mjs: Please refer to environment variables document for more details.
Caveats
Because we store the script within a shell script file, you need to grant permission like sudo chmod 755 './scripts/<bash script>' at the root.