Skip to content

Commit

Permalink
Merge pull request #397 from Shopify/fd-cli-create-app
Browse files Browse the repository at this point in the history
Rework init command and add `create-app` package
jplhomer authored Feb 1, 2023
2 parents 14f5671 + de66366 commit 6104e32
Showing 33 changed files with 2,211 additions and 5,189 deletions.
6 changes: 6 additions & 0 deletions .changeset/olive-apes-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@shopify/cli-hydrogen': patch
'@shopify/create-hydrogen': patch
---

Introduce create-app CLI package and refactor how new Hydrogen apps are initialized
18 changes: 0 additions & 18 deletions .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
@@ -46,24 +46,6 @@ jobs:
- name: Build the dist code
run: npm run build

# TODO: Remove this once GH repo containing these templates is public.
- name: Compile templates and copy them to the CLI dist folder
run: |
node scripts/compile-template-for-dist.mjs demo-store --keep
node scripts/compile-template-for-dist.mjs hello-world --keep
mkdir -p packages/cli/dist/templates
mv templates/demo-store-ts packages/cli/dist/templates/demo-store
mv templates/hello-world-ts packages/cli/dist/templates/hello-world
# These get stripped by NPM publishing; we'll rename these when remix.init runs
mv packages/cli/dist/templates/demo-store/.gitignore packages/cli/dist/templates/demo-store/_gitignore
mv packages/cli/dist/templates/demo-store/.env packages/cli/dist/templates/demo-store/_env
mv packages/cli/dist/templates/hello-world/.gitignore packages/cli/dist/templates/hello-world/_gitignore
mv packages/cli/dist/templates/hello-world/.env packages/cli/dist/templates/hello-world/_env
# Remove unused template outputs since Changesets will commit the working directory
rm -rf templates/demo-store-js templates/hello-world-js
- name: Create Release Pull Request or Publish (for latest release)
if: env.latest == 'true'
id: changesets
Loading

0 comments on commit 6104e32

Please sign in to comment.