npm scripts
The npm scripts in asc-shopify-src and each workspace, what they run, and which ones are current.
Run root scripts from the repository root. Run a workspace script with npm run <script> -w <workspace>.
Root
| Script | Runs | Status |
|---|---|---|
dev | turbo run postcss watch theme-dev | Current. Webpack watch plus a Shopify development theme |
build | turbo run postcss:build webpack:prod --filter=@repo/asc-modules | Current. Production build into theme/assets/ |
format | prettier --write across the repository, including theme/ | Current. Also run by the pre-commit hook |
format:theme | prettier --write on theme/ only | Current |
check | prettier --check across the repository | Current |
check:theme | prettier --check on theme/ only | Current |
prepare | husky | Runs on npm install |
gcloud-api:dev, gcloud-api:build-only, gcloud-api:deploy-only, gcloud-api:build | Build, containerise or push google-cloud-api/ | Legacy. Do not run |
The root README.md mentions npm run tw, npm run theme-dev and npm run watch. None of those exist at the root.
@repo/asc-modules (src)
| Script | Runs | Status |
|---|---|---|
watch | webpack --mode=production --watch | Current. Used by dev |
webpack:prod | webpack --mode=production | Current. Used by build |
webpack:dev | webpack --mode=development | Works. Output is unminified |
postcss | Tailwind into css/tw_out.css, watching | Runs in dev, but nothing uses the output |
postcss:build | Tailwind into css/tw_out.css, once | Runs in build, but nothing uses the output |
watch:css | Webpack with webpack-css.config.js | Broken. Its paths no longer resolve |
serve | webpack serve | Broken. webpack-dev-server is not installed |
@repo/theme (theme)
| Script | Runs |
|---|---|
theme-dev | shopify theme dev --environment dev |
theme-dev:no-sync | shopify theme dev --environment dev-no-sync |
push:dev | shopify theme push --environment dev |
pull:dev | shopify theme pull --environment dev |
push:remote | shopify theme push --environment default. Prompts for a theme |
pull:remote | shopify theme pull --environment default. Prompts for a theme |
Do not use push:remote on the live theme. The live theme is deployed from theme main through Shopify's GitHub connection, and a push bypasses it.
@repo/google-cloud-api
| Script | Runs |
|---|---|
build | tsc |
dev | Build, then node ./dist/index.js |
bundle | Build, then docker build tagged australia-southeast1-docker.pkg.dev/asc-map-project/asc-packages/gcloud-api:latest |
deploy | docker push of that image |
start:dist | node ./index.js, inside the container |
All legacy.
misc workspaces
| Workspace | Script | Runs |
|---|---|---|
@repo/misc | None | Scripts in misc/ are run with node <file> |
@repo/confirmation-emails, @repo/form-submissions, @repo/membership-pass, @repo/zoho-integration | build | Rollup build of Zapier code steps. Legacy |
See misc scripts.
Storefront requests
Every request the ASC storefront makes from the customer's browser to Shopify's cart API, ASC services, Zapier and third parties.
Environment variables
Environment variable names used to build the storefront bundles and to run the related services and scripts. Values are not recorded here.