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

feat: ask whether to add routing in ng-add schematic #975

Merged

Conversation

davidlj95
Copy link
Owner

Issue or need

ng-add schematic added in #962 just adds the core provider.

It could be nice for users to add routing and many metadata modules too.

Proposed changes

Add an option to the ng-add schematic to enable the routing module.

It can be enabled by ng add @davidlj95/ngx-meta --routing. Defaults to not enabled.

It's disabled by default and doesn't ask the user via x-prompt in the schema yet.
This way, we can start asking for both routing & metadata modules all at once. At that moment, docs may be updated to reflect this new feature.

Quick reminders

  • 🤝 I will follow Code of Conduct
  • No existing pull request already does almost same changes
  • 👁️ Contributing docs are something I've taken a look at
  • 📝 Commit messages convention has been followed
  • 💬 TSDoc comments have been added or updated indicating API visibility if API surface has changed.
  • 🧪 Tests have been added if needed. For instance, if adding new features or fixing a bug. Or removed if removing features.
  • ⚙️ API Report has been updated if API surface is altered.

Copy link
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @davidlj95 and the rest of your teammates on Graphite Graphite

@davidlj95 davidlj95 enabled auto-merge (squash) October 21, 2024 15:34
Copy link

codecov bot commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (b028e11) to head (666a090).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #975   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           86        86           
  Lines          365       372    +7     
  Branches        52        54    +2     
=========================================
+ Hits           365       372    +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@davidlj95 davidlj95 merged commit d0355bc into main Oct 21, 2024
35 checks passed
Copy link

📦 Bundle size (Angular v16)

Git ref: 666a09067b1f6cb398cb62e64d2c15138a42942a

Module file Size Base size Difference
ngx-meta-core.mjs 3705 bytes (3.7KiB) 3705 bytes (3.7KiB) No change
ngx-meta-json-ld.mjs 367 bytes (367B) 367 bytes (367B) No change
ngx-meta-open-graph.mjs 1202 bytes (1.2KiB) 1202 bytes (1.2KiB) No change
ngx-meta-routing.mjs 572 bytes (572B) 572 bytes (572B) No change
ngx-meta-standard.mjs 974 bytes (974B) 974 bytes (974B) No change
ngx-meta-twitter-card.mjs 614 bytes (614B) 614 bytes (614B) No change
Total 7434 bytes (7.3KiB) 7434 bytes (7.3KiB) No change

@davidlj95 davidlj95 deleted the stacked/feat-ask-whether-to-add-routing-in-ng-add-schematic branch October 21, 2024 15:37
Copy link

📦 Bundle size (Angular v15)

Git ref: 666a09067b1f6cb398cb62e64d2c15138a42942a

Module file Size Base size Difference
ngx-meta-core.mjs 3665 bytes (3.6KiB) 3665 bytes (3.6KiB) No change
ngx-meta-json-ld.mjs 352 bytes (352B) 352 bytes (352B) No change
ngx-meta-open-graph.mjs 1172 bytes (1.2KiB) 1172 bytes (1.2KiB) No change
ngx-meta-routing.mjs 557 bytes (557B) 557 bytes (557B) No change
ngx-meta-standard.mjs 959 bytes (959B) 959 bytes (959B) No change
ngx-meta-twitter-card.mjs 599 bytes (599B) 599 bytes (599B) No change
Total 7304 bytes (7.2KiB) 7304 bytes (7.2KiB) No change

Copy link

📦 Bundle size (Angular v18)

Git ref: 666a09067b1f6cb398cb62e64d2c15138a42942a

Module file Size Base size Difference
ngx-meta-core.mjs 3205 bytes (3.2KiB) 3205 bytes (3.2KiB) No change
ngx-meta-json-ld.mjs 217 bytes (217B) 217 bytes (217B) No change
ngx-meta-open-graph.mjs 931 bytes (931B) 931 bytes (931B) No change
ngx-meta-routing.mjs 394 bytes (394B) 394 bytes (394B) No change
ngx-meta-standard.mjs 857 bytes (857B) 857 bytes (857B) No change
ngx-meta-twitter-card.mjs 487 bytes (487B) 487 bytes (487B) No change
Total 6091 bytes (6.0KiB) 6091 bytes (6.0KiB) No change

Copy link

📦 Bundle size (Angular v17)

Git ref: 666a09067b1f6cb398cb62e64d2c15138a42942a

Module file Size Base size Difference
ngx-meta-core.mjs 3205 bytes (3.2KiB) 3205 bytes (3.2KiB) No change
ngx-meta-json-ld.mjs 217 bytes (217B) 217 bytes (217B) No change
ngx-meta-open-graph.mjs 931 bytes (931B) 931 bytes (931B) No change
ngx-meta-routing.mjs 394 bytes (394B) 394 bytes (394B) No change
ngx-meta-standard.mjs 857 bytes (857B) 857 bytes (857B) No change
ngx-meta-twitter-card.mjs 487 bytes (487B) 487 bytes (487B) No change
Total 6091 bytes (6.0KiB) 6091 bytes (6.0KiB) No change

Copy link

🎉 This PR is included in version 1.0.0-beta.27 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant