|
| 1 | +name: hydrogen |
| 2 | +display_name: Hydrogen |
| 3 | + |
| 4 | +up: |
| 5 | + - node: 'v20.19.5' |
| 6 | + |
| 7 | +commands: |
| 8 | + # Standard development commands |
| 9 | + dev: |
| 10 | + desc: 'Run the dev command in all packages' |
| 11 | + run: npm run dev |
| 12 | + |
| 13 | + build: |
| 14 | + desc: 'Build packages for production distribution' |
| 15 | + run: npm run build |
| 16 | + |
| 17 | + test: |
| 18 | + desc: 'Run tests once' |
| 19 | + run: npm run test |
| 20 | + aliases: [t] |
| 21 | + |
| 22 | + test-watch: |
| 23 | + desc: 'Run tests in watch mode' |
| 24 | + run: npm run test:watch |
| 25 | + |
| 26 | + typecheck: |
| 27 | + desc: 'Check source-code for invalid TypeScript' |
| 28 | + run: npm run typecheck |
| 29 | + |
| 30 | + lint: |
| 31 | + desc: 'Lint the code with ESLint' |
| 32 | + run: npm run lint |
| 33 | + |
| 34 | + format: |
| 35 | + desc: 'Format the code with prettier' |
| 36 | + run: npm run format |
| 37 | + |
| 38 | + changeset: |
| 39 | + desc: 'Add a changeset for releases' |
| 40 | + run: npm run changeset add |
| 41 | + |
| 42 | + cookbook: |
| 43 | + subcommands: |
| 44 | + regenerate: |
| 45 | + desc: 'Refresh all cookbook recipes' |
| 46 | + run: cd cookbook && npm run cookbook -- regenerate |
| 47 | + validate: |
| 48 | + desc: 'Validate all cookbook recipes' |
| 49 | + run: cd cookbook && npm run cookbook -- validate |
| 50 | + |
| 51 | + # Package-specific commands |
| 52 | + hydrogen: |
| 53 | + subcommands: |
| 54 | + dev: |
| 55 | + desc: 'Run Hydrogen package in dev mode' |
| 56 | + run: cd packages/hydrogen && npm run dev |
| 57 | + build: |
| 58 | + desc: 'Build Hydrogen package' |
| 59 | + run: cd packages/hydrogen && npm run build |
| 60 | + docs: |
| 61 | + desc: 'Build Hydrogen documentation' |
| 62 | + run: cd packages/hydrogen && npm run build-docs |
| 63 | + |
| 64 | + skeleton: |
| 65 | + subcommands: |
| 66 | + dev: |
| 67 | + desc: 'Run skeleton template in dev mode' |
| 68 | + run: cd templates/skeleton && npm run dev |
| 69 | + dev-tunnel: |
| 70 | + desc: 'Run skeleton template in dev mode with tunnel' |
| 71 | + run: SHOPIFY_HYDROGEN_FLAG_CUSTOMER_ACCOUNT_PUSH=true cd templates/skeleton && npm run dev |
| 72 | + build: |
| 73 | + desc: 'Build skeleton template' |
| 74 | + run: cd templates/skeleton && npm run build |
| 75 | + |
| 76 | +open: |
| 77 | + github: https://github.com/Shopify/hydrogen |
| 78 | + pr: # Opens PR for current branch |
| 79 | + issues: # Opens GitHub issues |
| 80 | + docs: https://shopify.dev/docs/api/hydrogen |
| 81 | + hydrogen-react-docs: https://shopify.dev/docs/api/hydrogen-react |
0 commit comments