forked from Shopify/hydrogen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.yml
More file actions
89 lines (75 loc) · 2.34 KB
/
dev.yml
File metadata and controls
89 lines (75 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: hydrogen
display_name: Hydrogen
up:
- node: 'v20.19.5' # .nvmrc uses 'v20' for nvm flexibility; dev tool needs specific version
- custom:
name: Build packages
met?: npm run build
meet: 'true'
commands:
server:
desc: 'Run the skeleton template dev server'
run: npm run build && npm run dev:app
# Standard development commands
watch:
desc: 'Run a server to watch for changes in any packages and automatically rebuild when changes are saved'
run: npm run dev
build:
desc: 'Build packages for production distribution'
run: npm run build
test:
desc: 'Run tests once'
run: npm run test
aliases: [t]
test-watch:
desc: 'Run tests in watch mode'
run: npm run test:watch
typecheck:
desc: 'Check source-code for invalid TypeScript'
run: npm run typecheck
lint:
desc: 'Lint the code with ESLint'
run: npm run lint
format:
desc: 'Format the code with prettier'
run: npm run format
changeset:
desc: 'Add a changeset for releases'
run: npm run changeset add
cookbook:
subcommands:
regenerate:
desc: 'Refresh all cookbook recipes'
run: cd cookbook && npm run cookbook -- regenerate
validate:
desc: 'Validate all cookbook recipes'
run: cd cookbook && npm run cookbook -- validate
# Package-specific commands
hydrogen:
subcommands:
dev:
desc: 'Run Hydrogen package in dev mode'
run: cd packages/hydrogen && npm run dev
build:
desc: 'Build Hydrogen package'
run: cd packages/hydrogen && npm run build
docs:
desc: 'Build Hydrogen documentation'
run: cd packages/hydrogen && npm run build-docs
skeleton:
subcommands:
dev:
desc: 'Run skeleton template in dev mode'
run: cd templates/skeleton && npm run dev
dev-tunnel:
desc: 'Run skeleton template in dev mode with tunnel'
run: SHOPIFY_HYDROGEN_FLAG_CUSTOMER_ACCOUNT_PUSH=true cd templates/skeleton && npm run dev
build:
desc: 'Build skeleton template'
run: cd templates/skeleton && npm run build
open:
github: https://github.com/Shopify/hydrogen
pr: # Opens PR for current branch
issues: # Opens GitHub issues
docs: https://shopify.dev/docs/api/hydrogen
hydrogen-react-docs: https://shopify.dev/docs/api/hydrogen-react