Skip to content

Commit 3785513

Browse files
authored
Adding a dev.yml (#3173)
* Adding a dev.yml and updating node to v24 * Dropping to node v20 and separating node version update into a separate PR * fixing up dev.yml and switching default to node v22 * Dropping back to node v20. Will revist after the release * rename skeleton section and add cookbook section to dev.yml * Adding skeleton tunnel command to dev.yml
1 parent 3479e6f commit 3785513

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

dev.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
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

Comments
 (0)