Allow ignoring liquid files using .shopifyignore
WHY are these changes introduced?
Template repos may come with liquid files in them, and currently the CLI will try to parse them all, which will most likely lead to errors when creating new apps.
WHAT is this pull request doing?
Adding a file (name TBD) containing a list of files we want the CLI to leave alone when cloning a repo. That way, templates can determine what is off limits for the CLI. Ideally, this file's name should be generic enough that if we add any other sort of pre-processing, we can still use the same file.
How to test your changes?
Via unit tests, and creating apps with with a private template (slack me for the URL!).
Post-release steps
None needed!
Measuring impact
How do we know this change was effective? Please choose one:
- [x] Existing analytics will cater for this addition - this would only result in failed app creations
Checklist
- [x] I've considered possible cross-platform impacts (Mac, Linux, Windows)
- [ ] I've considered possible documentation changes
- We probably want to document this file somewhere?
We detected some changes at either packages/*/src or packages/cli-kit/assets/cli-ruby/** and there are no updates in the .changeset. If the changes are user-facing, run "pnpm changeset add" to track your changes and include them in the next release CHANGELOG.
Coverage report
St.:grey_question: |
Category | Percentage | Covered / Total |
|---|---|---|---|
| π‘ | Statements | 72.7% (+0.12% πΌ) |
8550/11760 |
| π‘ | Branches | 69.69% (+0.55% πΌ) |
4203/6031 |
| π‘ | Functions | 71.78% (-0.12% π») |
2210/3079 |
| π‘ | Lines | 73.03% (+0.15% πΌ) |
8093/11081 |
Show new covered files π£
St.:grey_question: |
File | Statements | Branches | Functions | Lines |
|---|---|---|---|---|---|
| π’ | ... / theme-app-extension-next.ts |
93.55% | 90% | 83.33% | 93.33% |
| π’ | ... / active-app-release.ts |
100% | 100% | 100% | 100% |
| π’ | ... / app-version-by-id.ts |
100% | 100% | 100% | 100% |
| π’ | ... / app-versions.ts |
100% | 100% | 100% | 100% |
| π’ | ... / apps.ts |
100% | 100% | 100% | 100% |
| π’ | ... / create-app-version.ts |
100% | 100% | 100% | 100% |
| π’ | ... / create-app.ts |
100% | 100% | 100% | 100% |
| π’ | ... / create-asset-url.ts |
100% | 100% | 100% | 100% |
| π’ | ... / organization.ts |
100% | 100% | 100% | 100% |
| π’ | ... / release-version.ts |
100% | 100% | 100% | 100% |
| π’ | ... / specifications.ts |
100% | 100% | 100% | 100% |
| π’ | ... / user-info.ts |
100% | 100% | 100% | 100% |
| π’ | ... / authorize.ts |
100% | 75% | 100% | 100% |
| π΄ | ... / post-auth.ts |
44.12% | 0% | 0% | 45.45% |
| π΄ | ... / redirect-listener.ts |
14.75% | 0% | 33.33% | 15% |
Show files with reduced coverage π»
St.:grey_question: |
File | Statements | Branches | Functions | Lines |
|---|---|---|---|---|---|
| π’ | ... / app.test-data.ts |
91.85% (+0.45% πΌ) |
91.09% (-0.09% π») |
82.05% (+1.04% πΌ) |
91.28% (+0.47% πΌ) |
| π’ | ... / app-context.ts |
100% | 87.5% (-1.97% π») |
100% | 100% |
| π’ | ... / deploy.ts |
87.18% | 85% (-2.5% π») |
87.5% | 89.19% |
| π’ | ... / generate.ts |
100% | 80% (-2.14% π») |
100% | 100% |
| π’ | ... / show.ts |
100% | 66.67% (-8.33% π») |
100% | 100% |
| π΄ | ... / extension.ts |
54.55% (-1.01% π») |
50% | 57.14% | 55.81% (-1% π») |
| π’ | ... / setup-dev-processes.ts |
95.24% | 80% (-2.14% π») |
90.91% | 94.44% |
| π΄ | ... / theme-app-extension.ts |
41.38% (-52.37% π») |
33.33% (-56.67% π») |
25% (-58.33% π») |
40.74% (-52.81% π») |
| π’ | ... / extension.ts |
91.4% (+0.09% πΌ) |
73.58% | 91.3% (-0.36% π») |
91.21% (+0.1% πΌ) |
| π’ | ... / session.ts |
81.01% (-1.99% π») |
72.32% (-0.41% π») |
92.86% | 80.67% (-2.09% π») |
| π’ | ... / ConcurrentOutput.tsx |
98.39% (-1.61% π») |
90.91% (-4.55% π») |
100% | 98.33% (-1.67% π») |
| π’ | ... / admin.ts |
82.76% (+1.51% πΌ) |
37.5% (-2.5% π») |
90% | 85.71% (+1.84% πΌ) |
Test suite run success
1944 tests passing in 876 suites.
Report generated by π§ͺjest coverage report action from 09ca5144576eb0bb43f7bda9465b0d8a0c5b0c59
/snapit
π«°β¨ Thanks @isaacroldan! Your snapshot has been published to npm.
Test the snapshot by intalling your package globally:
pnpm i -g @shopify/[email protected]
After installing, validate the version by running just
shopifyin your terminal If the versions don't match, you might have multiple global instances installed. Usewhich shopifyto find out which one you are running and uninstall it.