Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(docs): adding server_side_generation #31

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

Merged
merged 1 commit into from
Jan 21, 2024
Merged

feat(docs): adding server_side_generation #31

merged 1 commit into from
Jan 21, 2024

Conversation

MGREMY
Copy link
Collaborator

@MGREMY MGREMY commented Jan 21, 2024

Summary by CodeRabbit

Release Notes

  • New Features

    • Introduced server-side rendering capabilities for the Angular application.
    • Added new build targets: server, serve-ssr, and prerender for enhanced serving options.
    • Implemented an Express server for handling server-side rendering requests.
  • Improvements

    • Updated application configuration to support client-side hydration and server rendering.
    • Enhanced TypeScript configuration for server-side compilation.
  • Dependencies

    • Added new dependencies for Angular SSR and Express to improve application performance and functionality.

@MGREMY MGREMY self-assigned this Jan 21, 2024
Copy link

vercel bot commented Jan 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
flowbite-angular ✅ Ready (Inspect) Visit Preview Jan 21, 2024 8:53pm

@MGREMY MGREMY merged commit c4ebb24 into main Jan 21, 2024
@MGREMY MGREMY deleted the add-ssg branch January 21, 2024 20:55
github-actions bot pushed a commit that referenced this pull request Oct 26, 2024
# 1.0.0-alpha.1 (2024-10-26)

### Bug Fixes

* Breadcrumb was overengineered ([7a004f1](https://github.com/themesberg/flowbite-angular//commit/7a004f11aca4f8d4d6c51833bc0327284b8da827))
* Button sizes are now configured according to flowbite website ([1e73a2e](https://github.com/themesberg/flowbite-angular//commit/1e73a2ed044cb604965377ba5d7d4f866306ca5d))
* buttonPillClasses are now always injected ([1ca9cdc](https://github.com/themesberg/flowbite-angular//commit/1ca9cdc09ce6f258d69689861e9fcc42115b0b95))
* Fixed gradient outline variants size issue ([c616c03](https://github.com/themesberg/flowbite-angular//commit/c616c037a1cda11b06adfcfcd9c3f0209ffeb9d7))

### Features

* add Alert component ([e9d792b](https://github.com/themesberg/flowbite-angular//commit/e9d792b4f4785052108e6ad6e3467c58d3a1d978))
* add Badge component ([b327538](https://github.com/themesberg/flowbite-angular//commit/b3275389d40c62003afff8dc9818b16664d4a618))
* Add disable property to button component ([00e42c0](https://github.com/themesberg/flowbite-angular//commit/00e42c05ff81f83e7ad61fb6a9a70aebf504f1ba))
* Add DuoTone gradient outline span tweak ([b2840c9](https://github.com/themesberg/flowbite-angular//commit/b2840c947e340a020eb4136f5d0342ebc3d6e099))
* Add gradientDuoTone property to button component ([0138ce4](https://github.com/themesberg/flowbite-angular//commit/0138ce408ec101e5da6ba4305d2e1107c0b07a78))
* Add gradientMonochrome property to button component ([60cd7ea](https://github.com/themesberg/flowbite-angular//commit/60cd7ea619c605271093436f2367510e318cf6d2))
* Add outline classes to buttonColorClasses ([ef4652c](https://github.com/themesberg/flowbite-angular//commit/ef4652c9f8111bc9ddf3d7416a120fc525cf8c5c))
* Add remain outline variants to buttonDuoToneColorClasses ([492f43f](https://github.com/themesberg/flowbite-angular//commit/492f43f3a546a94fa1cbb0b1008cafd99ec90458))
* adds modal component ([#10](https://github.com/themesberg/flowbite-angular//issues/10)) ([3fa31a3](https://github.com/themesberg/flowbite-angular//commit/3fa31a3808100825c7952b9126190fe487cd71c0))
* **BadgeComponent:** Added customStyle parameter ([89bb9aa](https://github.com/themesberg/flowbite-angular//commit/89bb9aa3189442cd8e826084a35f03069201928c))
* Created Breadcrumb main component ([45bc743](https://github.com/themesberg/flowbite-angular//commit/45bc74324ce8f157df5dc710451502d4875f626b))
* Created BreadcrumbItem Component ([0df0839](https://github.com/themesberg/flowbite-angular//commit/0df083920b320d07cc8da4ee0d89a3e1c0711772))
* **docs:** adding server_side_generation ([#31](https://github.com/themesberg/flowbite-angular//issues/31)) ([c4ebb24](https://github.com/themesberg/flowbite-angular//commit/c4ebb24e18aca55f187c107ea16c165a4924d01f))
* Started creating Button component ([92cf87f](https://github.com/themesberg/flowbite-angular//commit/92cf87f52435cfd69f961eba635ab4c4b982949e))
MGREMY pushed a commit that referenced this pull request Nov 4, 2024
# 1.0.0-beta.1 (2024-11-04)

### Bug Fixes

* assets while building library ([b02ae48](b02ae48))
* Breadcrumb was overengineered ([7a004f1](7a004f1))
* Button sizes are now configured according to flowbite website ([1e73a2e](1e73a2e))
* buttonPillClasses are now always injected ([1ca9cdc](1ca9cdc))
* ci install ([7bc93ee](7bc93ee))
* circular import & component import ([04668c4](04668c4))
* Fixed gradient outline variants size issue ([c616c03](c616c03))
* multiple typo ([96343bb](96343bb))
* tailwind config file and import codeblock in quickstart ([781069c](781069c))

### Features

* add Alert component ([e9d792b](e9d792b))
* add Badge component ([b327538](b327538))
* Add disable property to button component ([00e42c0](00e42c0))
* Add DuoTone gradient outline span tweak ([b2840c9](b2840c9))
* Add gradientDuoTone property to button component ([0138ce4](0138ce4))
* Add gradientMonochrome property to button component ([60cd7ea](60cd7ea))
* Add outline classes to buttonColorClasses ([ef4652c](ef4652c))
* Add remain outline variants to buttonDuoToneColorClasses ([492f43f](492f43f))
* add secondary entrypoints ([35628a3](35628a3))
* add viewEncapsulation and changeDetection ([b80f78d](b80f78d))
* adds modal component ([#10](#10)) ([3fa31a3](3fa31a3))
* **alert:** add entrypoint ([8631420](8631420))
* **badge:** add entrypoint ([1c7a33c](1c7a33c))
* **BadgeComponent:** Added customStyle parameter ([89bb9aa](89bb9aa))
* **breadcrumb:** add entrypoint ([ea5eb0a](ea5eb0a))
* **button:** add entrypoint ([19e8fed](19e8fed))
* **common:** add entrypoint ([a5d50cc](a5d50cc))
* Created Breadcrumb main component ([45bc743](45bc743))
* Created BreadcrumbItem Component ([0df0839](0df0839))
* **dark-theme-toggle:** add entrypoint ([9ee8ca3](9ee8ca3))
* **docs:** adding server_side_generation ([#31](#31)) ([c4ebb24](c4ebb24))
* **dropdown:** add entrypoint ([22ce79d](22ce79d))
* **icon:** add entrypoint ([d5ee496](d5ee496))
* **indicator:** add entrypoint ([f12a373](f12a373))
* **modal:** add entrypoint ([36da9f1](36da9f1))
* **navbar:** add entrypoint ([ecfef64](ecfef64))
* remove every storeServices ([2dc68ed](2dc68ed))
* **router-link:** add entrypoint ([3886be7](3886be7))
* **scroll-top:** add entrypoint ([57b1358](57b1358))
* **sidebar:** add entrypoint ([b94ac5a](b94ac5a))
* Started creating Button component ([92cf87f](92cf87f))
* **utils:** add entrypoint ([67bf1da](67bf1da))
@MGREMY
Copy link
Collaborator Author

MGREMY commented Nov 4, 2024

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

The release is available on:

Your semantic-release bot 📦🚀

Copy link
Contributor

coderabbitai bot commented Nov 4, 2024

Caution

Review failed

The pull request is closed.

Walkthrough

The changes in this pull request introduce several new targets and configuration files to enhance the server-side rendering capabilities of an Angular application. A new Express server is established for serving the application, and configurations for server-side rendering, prerendering, and client hydration are added. Additionally, TypeScript configurations are updated, and dependencies related to server-side rendering and Express are included. Overall, these changes significantly expand the build and serving functionalities of the application.

Changes

File Path Change Summary
apps/docs/project.json Added new targets: server, serve-ssr, and prerender for enhanced server-side rendering and prerendering capabilities.
apps/docs/server.ts Introduced an Express server for Angular with server-side rendering, including static file serving, error handling, and a default export for bootstrapping.
apps/docs/src/app/app.config.server.ts Added a new configuration file for server-side rendering, merging it with the existing application configuration.
apps/docs/src/app/app.config.ts Modified appConfig to include provideClientHydration for client-side hydration support.
apps/docs/src/main.server.ts Created a new file for server-side bootstrapping, exporting a bootstrap function that initializes the application.
apps/docs/tsconfig.server.json Added a new TypeScript configuration file for server-side compilation, extending existing configurations and specifying output directory and target options.
nx.json Introduced caching for the server target under targetDefaults.
package.json Updated scripts for documentation build and serve processes, added dependencies for @angular/ssr and express, and included a development dependency for @types/express.

Possibly related PRs

  • Move to new angular build executor #52: Related to the addition of server-side rendering capabilities and new build targets, enhancing the overall build process and support for server-side features.
  • Rework project side configuration #64: Involves modifications to configuration files that impact how the application is built and served, particularly in the context of server-side rendering and build targets.

🐰 In the land of code, where rabbits hop,
New targets emerge, and we won't stop!
With server and SSR, our app's now bright,
Prerendering magic, oh what a sight!
Dependencies added, scripts updated with glee,
Hopping forward, as happy as can be! 🌟

Warning

There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure.

🔧 eslint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

apps/docs/server.ts

Oops! Something went wrong! :(

ESLint: 8.56.0

TypeError: Error while loading rule '@nx/enforce-module-boundaries': Cannot read properties of undefined (reading 'keyword')
Occurred while linting /apps/docs/server.ts
at ensureGlobalProjectGraph (/node_modules/@nx/eslint-plugin/src/utils/project-graph-utils.js:35:51)
at readProjectGraph (/node_modules/@nx/eslint-plugin/src/utils/project-graph-utils.js:46:5)
at create (/node_modules/@nx/eslint-plugin/src/rules/enforce-module-boundaries.js:134:137)
at Object.create (/node_modules/@nx/eslint-plugin/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js:38:20)
at createRuleListeners (/node_modules/eslint/lib/linter/linter.js:895:21)
at /node_modules/eslint/lib/linter/linter.js:1066:110
at Array.forEach ()
at runRules (/node_modules/eslint/lib/linter/linter.js:1003:34)
at Linter._verifyWithoutProcessors (/node_modules/eslint/lib/linter/linter.js:1355:31)
at /node_modules/eslint/lib/linter/linter.js:1913:29


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

MGREMY pushed a commit that referenced this pull request Nov 11, 2024
# 1.0.0 (2024-11-11)

### Bug Fixes

* **accordion:** classes for border ([8f4b81e](8f4b81e))
* assets while building library ([b02ae48](b02ae48))
* Breadcrumb was overengineered ([7a004f1](7a004f1))
* Button sizes are now configured according to flowbite website ([1e73a2e](1e73a2e))
* buttonPillClasses are now always injected ([1ca9cdc](1ca9cdc))
* ci install ([7bc93ee](7bc93ee))
* circular import & component import ([04668c4](04668c4))
* Fixed gradient outline variants size issue ([c616c03](c616c03))
* multiple typo ([96343bb](96343bb))
* tailwind config file and import codeblock in quickstart ([781069c](781069c))

### Features

* add Alert component ([e9d792b](e9d792b))
* add Badge component ([b327538](b327538))
* Add disable property to button component ([00e42c0](00e42c0))
* Add DuoTone gradient outline span tweak ([b2840c9](b2840c9))
* Add gradientDuoTone property to button component ([0138ce4](0138ce4))
* Add gradientMonochrome property to button component ([60cd7ea](60cd7ea))
* Add outline classes to buttonColorClasses ([ef4652c](ef4652c))
* Add remain outline variants to buttonDuoToneColorClasses ([492f43f](492f43f))
* add secondary entrypoints ([35628a3](35628a3))
* add viewEncapsulation and changeDetection ([b80f78d](b80f78d))
* adds modal component ([#10](#10)) ([3fa31a3](3fa31a3))
* **alert:** add entrypoint ([8631420](8631420))
* **badge:** add entrypoint ([1c7a33c](1c7a33c))
* **BadgeComponent:** Added customStyle parameter ([89bb9aa](89bb9aa))
* **breadcrumb:** add entrypoint ([ea5eb0a](ea5eb0a))
* **button:** add entrypoint ([19e8fed](19e8fed))
* **common:** add entrypoint ([a5d50cc](a5d50cc))
* Created Breadcrumb main component ([45bc743](45bc743))
* Created BreadcrumbItem Component ([0df0839](0df0839))
* **dark-theme-toggle:** add entrypoint ([9ee8ca3](9ee8ca3))
* **docs:** adding server_side_generation ([#31](#31)) ([c4ebb24](c4ebb24))
* **dropdown:** add entrypoint ([22ce79d](22ce79d))
* **icon:** add entrypoint ([d5ee496](d5ee496))
* **indicator:** add entrypoint ([f12a373](f12a373))
* **modal:** add entrypoint ([36da9f1](36da9f1))
* **navbar:** add entrypoint ([ecfef64](ecfef64))
* remove every storeServices ([2dc68ed](2dc68ed))
* **router-link:** add entrypoint ([3886be7](3886be7))
* **scroll-top:** add entrypoint ([57b1358](57b1358))
* **sidebar:** add entrypoint ([b94ac5a](b94ac5a))
* Started creating Button component ([92cf87f](92cf87f))
* **utils:** add entrypoint ([67bf1da](67bf1da))
@MGREMY
Copy link
Collaborator Author

MGREMY commented Nov 11, 2024

🎉 This PR is included in version 1.0.0 🎉

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
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant