Is this mandatory to use the "spa-project-core" package | Community
Skip to main content
Nandujee
Level 3
May 12, 2022
Solved

Is this mandatory to use the "spa-project-core" package

  • May 12, 2022
  • 1 reply
  • 1391 views

Hi Experts,

Background:

We're extending our application to support SPA - Angular. We are in a process of writing all our components and templates to work in a SPA way. In order to achieve this, arch type 27 had been used. While setup the project, I noticed there is a project called "spa-project-core" created by default. 

 

Question: 

1. What is the use of this project "spa-project-core"? I understand the SPA page is created using this SPA template. 

2. Shall I copy this project "spa-project-core" inside my project and customize it to my need, is it advised?

3. As per my understanding, libs folder components would be updated on AEM upgrade or SP installation. When would this project "spa-project-core" upgrade?

Looking forward to your advice.

Thank you

Nanda

 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by lukasz-m

Hi @nandujee,

Please find below answers to you questions:

1. What is the use of this project "spa-project-core"? I understand the SPA page is created using this SPA template. 

In general this is some sort of foundation for your SPA project. It mainly provides support for hierarchical model of sub-pages. You can find more info under https://github.com/adobe/aem-spa-project-core

 

2. Shall I copy this project "spa-project-core" inside my project and customize it to my need, is it advised?

No, coping aem-spa-project-core into your code is not the right way. You should add it as a maven dependency - see installation section https://github.com/adobe/aem-spa-project-core#installation

 

3. As per my understanding, libs folder components would be updated on AEM upgrade or SP installation. When would this project "spa-project-core" upgrade?

aem-spa-project-core have it's own lifecycle that is not directly connected to AEM or SP release cycle. You should track new version releases by yourself, and decide if new version is providing features or bugfixes that are critical from your perspective. Of course sometimes after SP upgrade aem-spa-project-core could be required anyway.

There is a direct dependency between aem-spa-project-core and core components, so you should be aware about that, and when you decide to upgrade core components version verify if aem-spa-project-core needs update as well.

 

Assuming you would like to use Angular, below resources could be interesting as well:

1 reply

lukasz-m
Community Advisor
lukasz-mCommunity AdvisorAccepted solution
Community Advisor
May 13, 2022

Hi @nandujee,

Please find below answers to you questions:

1. What is the use of this project "spa-project-core"? I understand the SPA page is created using this SPA template. 

In general this is some sort of foundation for your SPA project. It mainly provides support for hierarchical model of sub-pages. You can find more info under https://github.com/adobe/aem-spa-project-core

 

2. Shall I copy this project "spa-project-core" inside my project and customize it to my need, is it advised?

No, coping aem-spa-project-core into your code is not the right way. You should add it as a maven dependency - see installation section https://github.com/adobe/aem-spa-project-core#installation

 

3. As per my understanding, libs folder components would be updated on AEM upgrade or SP installation. When would this project "spa-project-core" upgrade?

aem-spa-project-core have it's own lifecycle that is not directly connected to AEM or SP release cycle. You should track new version releases by yourself, and decide if new version is providing features or bugfixes that are critical from your perspective. Of course sometimes after SP upgrade aem-spa-project-core could be required anyway.

There is a direct dependency between aem-spa-project-core and core components, so you should be aware about that, and when you decide to upgrade core components version verify if aem-spa-project-core needs update as well.

 

Assuming you would like to use Angular, below resources could be interesting as well:

Level 2
July 5, 2024

Hi Team,

In our project we are using core wcm component version "2.21.0" but the aem spa-project-core (latest) is build on core wcm component version "2.15.0".If we plan to use aem-spa and spa-project-core in our project, will there be any effect due to version mismatch.