Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New CLI onboarding #913

Merged
merged 109 commits into from
Jun 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
0e05383
Refactor: extract format-code utilities
frandiox May 11, 2023
f0c3d29
Add setup-assets
frandiox May 11, 2023
8b6fa03
Add file utils and tests
frandiox May 19, 2023
9b384bb
Setup Tailwind
frandiox May 19, 2023
1917a47
Fix paths and add renderTask
frandiox May 19, 2023
db56921
Install Tailwind deps
frandiox May 19, 2023
37e4000
Update package-lock
frandiox May 19, 2023
ed9dde0
Fix asset replacement
frandiox May 19, 2023
397c1ec
Merge branch '2023-04' into fd-new-onboarding
frandiox May 22, 2023
e51c305
Refactor: extract common build paths
frandiox May 22, 2023
665d2a7
Copy hello-world template to dist folder
frandiox May 22, 2023
0e23022
Make hello-world the default starter
frandiox May 22, 2023
4ece58f
Fix timezone in CLI tests
frandiox May 22, 2023
88d2c2f
Refactor: extract admin requests
frandiox May 22, 2023
d530417
Cleanup
frandiox May 22, 2023
94bdfe0
Setup local starter
frandiox May 22, 2023
97ffddc
Refactor: split workflows
frandiox May 22, 2023
5bbd03f
Prompt for package maanger when unknown
frandiox May 22, 2023
54d5e22
Change shop prompt
frandiox May 23, 2023
5a0939d
Group tasks
frandiox May 23, 2023
0e7b415
Remove .env variables when linking to shop
frandiox May 23, 2023
2fbca40
Make setupTailwind more modular
frandiox May 23, 2023
0b8c74e
Add setup CSS step
frandiox May 23, 2023
0ec7e2f
Merge branch '2023-04' into fd-new-onboarding
frandiox May 24, 2023
aef2368
Move CSS setup logic around and fix test
frandiox May 24, 2023
2b021ed
Merge branch '2023-04' into fd-new-onboarding
frandiox May 29, 2023
b99a414
Ensure promises are chained
frandiox May 29, 2023
a85590d
Prompt for creating h2 alias
frandiox May 29, 2023
4941eae
Ensure promises are chained
frandiox May 29, 2023
accde76
Copilot comments
frandiox May 29, 2023
4c276b8
Refactor: extract ast replacers
frandiox May 29, 2023
95df832
Improve types and move files around
frandiox May 29, 2023
4feae85
Support PostCSS setup
frandiox May 29, 2023
1fe1ef3
Prettify css strategy names
frandiox May 29, 2023
44e3a8b
Fix type of flagsToCamelObject
frandiox May 29, 2023
380cd10
Add install-deps flag to css-unstable
frandiox May 29, 2023
7ae286c
Make root links replacer more flexible
frandiox May 29, 2023
e70629c
Add support for CSS modules setup
frandiox May 29, 2023
6eaeb10
Prettify output
frandiox May 29, 2023
14b23a2
Extract css bundling injection
frandiox May 29, 2023
a4a90df
Add support for vanilla-extract setup
frandiox May 29, 2023
fef4f64
Update oclif manifest
frandiox May 30, 2023
6e6fc4e
Prompt for styling library when no arg is passed
frandiox May 30, 2023
b65b6e4
Adjust prompts
frandiox May 30, 2023
23ccea3
Add prompts for i18n and routes
frandiox May 30, 2023
0ec1693
Add i18n setups
frandiox May 31, 2023
77db3cd
Export I18nLocale type
frandiox May 31, 2023
4a35fc4
Merge branch '2023-04' into fd-new-onboarding
frandiox Jun 2, 2023
7f7a031
Fix TS version of domain and subdomains i18n setups
frandiox Jun 2, 2023
7ac1aa4
Add I18nLocale type to remix.env.d.ts
frandiox Jun 2, 2023
e251839
Adjust success message
frandiox Jun 2, 2023
85c217a
Force choosing a CSS strategy
frandiox Jun 2, 2023
01b07ed
Adjust success message
frandiox Jun 2, 2023
42cbe00
Show helpful commands at the end
frandiox Jun 2, 2023
2b6a804
Adjust success message spacing
frandiox Jun 2, 2023
e906d25
Fix AST grep for JS
frandiox Jun 2, 2023
d63ec47
Fix init test
frandiox Jun 2, 2023
ebbe381
Refactor generate route command
frandiox Jun 5, 2023
0cfbd68
Hoist work to improve perf in route generation; add more tests
frandiox Jun 5, 2023
deaa50a
Improve output logs
frandiox Jun 5, 2023
a44289c
Fix generate route
frandiox Jun 5, 2023
9887712
Allow passing locale prefix
frandiox Jun 5, 2023
a48335e
Figure out locale prefix automatically
frandiox Jun 5, 2023
1202955
Make the locale variable optional in path
frandiox Jun 5, 2023
312da1f
Scaffold all routes
frandiox Jun 5, 2023
3111bcb
Merge branch '2023-04' into fd-new-onboarding
frandiox Jun 8, 2023
b0fce34
Simplify prompts format
frandiox Jun 8, 2023
bd38a2c
Add option to use mock.shop
frandiox Jun 8, 2023
6792fc7
Init git and create initial commit
frandiox Jun 8, 2023
11a0e69
Error handling
frandiox Jun 8, 2023
9bf019c
Show errors properly in at the end
frandiox Jun 8, 2023
838beae
Throw errors from replacers
frandiox Jun 8, 2023
69629f7
Fix tests
frandiox Jun 8, 2023
dd79db2
Merge branch '2023-04' into fd-new-onboarding
frandiox Jun 12, 2023
f2211f8
Feedback update
frandiox Jun 12, 2023
9a5a6b1
Use AbortSignal in prompts
frandiox Jun 12, 2023
c373433
Merge branch '2023-04' into fd-new-onboarding
frandiox Jun 21, 2023
d18b946
Merge branch '2023-04' into fd-new-onboarding
frandiox Jun 23, 2023
9ef1616
Minor adjustments
frandiox Jun 23, 2023
eadc4fb
Align with design updates
frandiox Jun 23, 2023
6ffd64b
Disable i18n and routes setup for now
frandiox Jun 23, 2023
bedff65
Oclif manifest
frandiox Jun 23, 2023
a376ec9
Remove all variables from .env when linking the store
frandiox Jun 23, 2023
4e4dc35
Merge branch '2023-04' into fd-new-onboarding
frandiox Jun 26, 2023
85fb54c
Update package-lock
frandiox Jun 26, 2023
69ff300
Merge branch '2023-04' into fd-new-onboarding
frandiox Jun 28, 2023
220c58d
Integrate init with login flow
frandiox Jun 28, 2023
d77c027
Merge branch '2023-04' into fd-new-onboarding
frandiox Jun 29, 2023
b6c6aba
Integrate create-storefront with new onboarding (#1058)
frandiox Jun 29, 2023
ab9c2b6
New onboarding - extra setup (#1050)
frandiox Jun 30, 2023
2ad2ffe
Merge branch '2023-04' into fd-new-onboarding
frandiox Jun 30, 2023
1136673
Show login banner
frandiox Jun 30, 2023
1a40f76
Refactor shortcut code files
frandiox Jun 30, 2023
ccc7f22
Refactor generate route code files
frandiox Jun 30, 2023
101276c
Fix shortcut tests
frandiox Jun 30, 2023
6dfd33c
Refactor: split init command in multiple files
frandiox Jun 30, 2023
32b65f7
Extra common prompts
frandiox Jun 30, 2023
303c01e
Rename types
frandiox Jun 30, 2023
111849a
Refactor route generate input
frandiox Jun 30, 2023
642075e
Extract renderRoutePrompt
frandiox Jun 30, 2023
235f0a1
Disable dts in CLI to avoid Tsup bug copying d.ts files in templates
frandiox Jun 30, 2023
19ba2b9
Make renderProjectReady more flexible
frandiox Jun 30, 2023
9e2aec0
Extract flags
frandiox Jun 30, 2023
9f8afa7
Refactor handleCliShortcut
frandiox Jun 30, 2023
55a4358
Minor refactoring
frandiox Jun 30, 2023
99bef05
Add 'setup' command
frandiox Jun 30, 2023
c96bffd
Ensure Remix versions are the same when copying assets
frandiox Jun 30, 2023
db7db65
Fix name added to package.json
frandiox Jun 30, 2023
d72d3ae
Changesets
frandiox Jun 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .changeset/fair-masks-hear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@shopify/cli-hydrogen': minor
'@shopify/create-hydrogen': minor
---

The onboarding process when creating new Hydrogen apps has been reworked. Now you can:

- Create a new Shopify storefront and connect it to the local project, or use [Mock.shop](https://mock.shop).
- Scaffold CSS strategies: Tailwind, CSS Modules, Vanilla Extract, PostCSS.
- Scaffold i18n strategies: subfolders, domains, subdomains.
- Automatically generate core routes.
Loading