doc-site
Reference

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

ScriptRunsStatus
devturbo run postcss watch theme-devCurrent. Webpack watch plus a Shopify development theme
buildturbo run postcss:build webpack:prod --filter=@repo/asc-modulesCurrent. Production build into theme/assets/
formatprettier --write across the repository, including theme/Current. Also run by the pre-commit hook
format:themeprettier --write on theme/ onlyCurrent
checkprettier --check across the repositoryCurrent
check:themeprettier --check on theme/ onlyCurrent
preparehuskyRuns on npm install
gcloud-api:dev, gcloud-api:build-only, gcloud-api:deploy-only, gcloud-api:buildBuild, 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)

ScriptRunsStatus
watchwebpack --mode=production --watchCurrent. Used by dev
webpack:prodwebpack --mode=productionCurrent. Used by build
webpack:devwebpack --mode=developmentWorks. Output is unminified
postcssTailwind into css/tw_out.css, watchingRuns in dev, but nothing uses the output
postcss:buildTailwind into css/tw_out.css, onceRuns in build, but nothing uses the output
watch:cssWebpack with webpack-css.config.jsBroken. Its paths no longer resolve
servewebpack serveBroken. webpack-dev-server is not installed

@repo/theme (theme)

ScriptRuns
theme-devshopify theme dev --environment dev
theme-dev:no-syncshopify theme dev --environment dev-no-sync
push:devshopify theme push --environment dev
pull:devshopify theme pull --environment dev
push:remoteshopify theme push --environment default. Prompts for a theme
pull:remoteshopify 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

ScriptRuns
buildtsc
devBuild, then node ./dist/index.js
bundleBuild, then docker build tagged australia-southeast1-docker.pkg.dev/asc-map-project/asc-packages/gcloud-api:latest
deploydocker push of that image
start:distnode ./index.js, inside the container

All legacy.

misc workspaces

WorkspaceScriptRuns
@repo/miscNoneScripts in misc/ are run with node <file>
@repo/confirmation-emails, @repo/form-submissions, @repo/membership-pass, @repo/zoho-integrationbuildRollup build of Zapier code steps. Legacy

See misc scripts.

On this page