sap-samples / cloud-commerce-sample-setup Goto Github PK
View Code? Open in Web Editor NEWFind the sample manifest.json and configuration files that you can use to build out your commerce repository in SAP Commerce Cloud.
Find the sample manifest.json and configuration files that you can use to build out your commerce repository in SAP Commerce Cloud.
A violation against the OSS Rules of Play has been detected.
Rule ID: rl-license_file-1
Explanation: Does it have a license file? No
Find more information at: https://sap.github.io/fosstars-rating-core/oss_rules_of_play_rating.html
A violation against the OSS Rules of Play has been detected.
Rule ID: rl-license_file-3
Explanation: Does the license have disallowed content? Yes
Find more information at: https://sap.github.io/fosstars-rating-core/oss_rules_of_play_rating.html
A violation against the OSS Rules of Play has been detected.
Rule ID: rl-license_file-2
Explanation: Does it use an allowed license? No
Find more information at: https://sap.github.io/fosstars-rating-core/oss_rules_of_play_rating.html
Please review README.md to add SSR compilation.
We should have
npm run build
npm run build:ssr
A violation against the OSS Rules of Play has been detected.
Rule ID: rl-assigned_teams-1
Explanation: Does it have enough teams on GitHub? No
Find more information at: https://sap.github.io/fosstars-rating-core/oss_rules_of_play_rating.html
A violation against the OSS Rules of Play has been detected.
Rule ID: rl-reuse_tool-1
Explanation: Does README mention REUSE? No
Find more information at: https://sap.github.io/fosstars-rating-core/oss_rules_of_play_rating.html
After installing all dependencies with yarn install
I've tried to run yarn start
and got this error:
yarn build
yarn run v1.22.10
$ yarn run build:ssr
$ ng build && ng run spartacusstore:server
An unhandled exception occurred: Cannot find module '@angular-devkit/build-angular/package.json'
Require stack:
- C:\Users\*\AppData\Roaming\nvm\v14.17.0\node_modules\@angular\cli\node_modules\@angular-devkit\architect\node\node-modules-architect-host
.js
- C:\Users\*\AppData\Roaming\nvm\v14.17.0\node_modules\@angular\cli\node_modules\@angular-devkit\architect\node\index.js
- C:\Users\*\AppData\Roaming\nvm\v14.17.0\node_modules\@angular\cli\models\architect-command.js
- C:\Users\*\AppData\Roaming\nvm\v14.17.0\node_modules\@angular\cli\commands\build-impl.js
- C:\Users\*\AppData\Roaming\nvm\v14.17.0\node_modules\@angular\cli\node_modules\@angular-devkit\schematics\tools\export-ref.js
- C:\Users\*\AppData\Roaming\nvm\v14.17.0\node_modules\@angular\cli\node_modules\@angular-devkit\schematics\tools\index.js
- C:\Users\*\AppData\Roaming\nvm\v14.17.0\node_modules\@angular\cli\utilities\json-schema.js
- C:\Users\*\AppData\Roaming\nvm\v14.17.0\node_modules\@angular\cli\models\command-runner.js
- C:\Users\*\AppData\Roaming\nvm\v14.17.0\node_modules\@angular\cli\lib\cli\index.js
- C:\Users\*\AppData\Roaming\nvm\v14.17.0\node_modules\@angular\cli\lib\init.js
- C:\Users\*\AppData\Roaming\nvm\v14.17.0\node_modules\@angular\cli\bin\ng
See "C:\Users\*\AppData\Local\Temp\ng-OXl6AO\angular-errors.log" for further details.
error Command failed with exit code 127.
Please fix your example.
In addition to utilizing SAP Help portal for documentation of the manifest.json
file used for deployments, create a publicly-accessible JSON Schema to reduce errors in the creation of builds for SAP Commerce.
manifest.json
JSON Schema support in SAP Commerce/Cloud Portal Looks Likemanifest.json
to reference the schema
{
"$schema": "http://example.com/sap-commerce-cloud-schema",
"commerceSuiteVersion": "1905",
"extensions": [
"modeltacceleratorservices"
],
manifest.json
?manifest.json
A violation against the OSS Rules of Play has been detected.
Rule ID: rl-assigned_teams-2
Explanation: Does it have an admin team on GitHub? No
Find more information at: https://sap.github.io/fosstars-rating-core/oss_rules_of_play_rating.html
In SAP Commerce Cloud, simply trigger a new build on branch 2105-spartacus.
The build is failed with this error:
` [echo] Generate project.properties file from template /opt/workspace/build/commerce-suite/hybris/bin/modules/promotion-engine/promotionenginesamplesaddon/project.properties.template
BUILD FAILED
/opt/workspace/build/commerce-suite/hybris/bin/modules/core-accelerator/addonsupport/resources/addonsupport/ant/acc-ant-addons.xml:730: The following error occurred while executing this line:
/opt/workspace/build/commerce-suite/hybris/bin/modules/core-accelerator/addonsupport/resources/addonsupport/ant/acc-ant-addons.xml:644: The following error occurred while executing this line:
/opt/workspace/build/commerce-suite/hybris/bin/modules/core-accelerator/addonsupport/resources/addonsupport/ant/acc-ant-addons.xml:648: The following error occurred while executing this line:
/opt/workspace/build/commerce-suite/hybris/bin/modules/core-accelerator/addonsupport/resources/addonsupport/ant/acc-ant-addons.xml:321: project.properties.template file doesn't exist : /opt/workspace/build/commerce-suite/hybris/bin/modules/promotion-engine/promotionenginesamplesaddon/project.properties.template
Total time: 3 seconds
Overall progress: 35
2021-09-20T02:32:44.216Z Task task ':buildCoreCommerce' finished
Task :buildCoreCommerce FAILED
:buildCoreCommerce (Thread[Daemon worker,5,main]) completed. Took 9.58 secs.
FAILURE: Build failed with an exception.
`
The .gitignore file should not ignore jalo classes in src as historically these classes were used to implement custom before Service Layer was introduced.
Besides this can break the compilation when switching to branches that don't have the item type due to the top level Jalo classes missing the generated Jalo super classes
The OSPO bot created this issue by mistake - It did not have enough priviledge to check the vulnerability alerts, So I am closing this issue now. Sorry for any inconvenience.
A violation against the OSS Rules of Play has been detected.
Rule ID: rl-reuse_tool-4
Explanation: Is it compliant with REUSE rules? No
Find more information at: https://sap.github.io/fosstars-rating-core/oss_rules_of_play_rating.html
This property does not work in CCv2, as the server.xml is generated from different inputs.
It seems to be used in spartacus branches, e.g:
https://github.com/SAP-samples/cloud-commerce-sample-setup/blob/2105-spartacus/core-customize/manifest.json#L198
Please include extensionPack example, that could help people to not misunderstand
https://help.sap.com/viewer/2f43049ad8e443249e1981575adddb5d/2005/en-US/19bacaecbdd34cc8bd58bdd8daf428c5.html
How install spartacus tua 3.x for SAP Commerce 2105 + telco and utilities 2111 using cloud-commerce-sample-setup?
I command execute ng add @spartacus/[email protected]
Change /js-storefront/spartacusstore/src/app/spartacus/spartacus.module.ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { ConfigModule } from '@spartacus/core';
import { translationChunksConfig, translations } from '@spartacus/assets';
import { TmaB2cStorefrontModule, tmaTranslations } from '@spartacus/tua-spa';
import { environment } from 'src/environments/environment';
@NgModule({
declarations: [],
imports: [
TmaB2cStorefrontModule.withConfig({
backend: {
tmf: {
baseUrl: environment.baseUrl,
prefix: '/b2ctelcotmfwebservices',
version: '/v2',
endpoints: {
getProduct: {
baseUrl: environment.baseUrl,
prefix: '/b2ctelcotmfwebservices',
version: '/v3',
endpoint: '/product/${id}'
},
getProductOffering: {
baseUrl: environment.baseUrl,
prefix: '/b2ctelcotmfwebservices',
version: '/v3',
endpoint: '/productOffering/${id}'
}
}
},
occ: {
baseUrl: environment.baseUrl,
prefix: '/occ/v2/',
},
tmf_appointment: {
baseUrl: environment.baseUrl,
prefix: '/tmf-api',
},
tmf_resource_pool_management: {
baseUrl: environment.baseUrl,
prefix: '/tmf-api',
},
premiseLookup: {
baseUrl: environment.baseUrl,
prefix: '/premise/v1/',
}
},
context: {
urlParameters: ['baseSite', 'language', 'currency'],
baseSite: ['telcospa']
},
i18n: {
resources: translations,
chunks: translationChunksConfig,
fallbackLang: 'en',
},
features: {
level: '3.0'
},
journeyChecklist: {
journeyChecklistSteps: ['APPOINTMENT', 'MSISDN', 'INSTALLATION_ADDRESS'],
msisdn_reservation: {
msisdn_qty: 1,
msisdn_capacity_amount_demand: 1,
msisdn_applied_capacity_amount: 5,
applied_capacity_amount_for_msisdn_reservation: 1,
},
appointment: {
requested_number_of_timeslots: 5,
end_date_of_timeslots: 3,
}
},
deliveryMode: {
default_delivery_mode: 'not-applicable'
}
})
],
exports: [TmaB2cStorefrontModule]
})
export class SpartacusModule { }
add package.json
"chart.js": "^2.9.3",
"ng2-charts": "^2.3.2",
"ngx-spinner": "^9.0.1"
Compiling ng2-charts : es2015 as esm2015
/cloud-commerce-sample-setup-2105-spartacus/js-storefront/spartacusstore/node_modules/@angular/compiler-cli/ngcc/src/entry_point_finder/targeted_entry_point_finder.js:40
throw new Error("The target entry-point \"" + invalidTarget.entryPoint.name + "\" has missing dependencies:\n" +
^
Error: The target entry-point "@spartacus/tua-spa" has missing dependencies:
- @spartacus/storefront/feature-toggles
at TargetedEntryPointFinder.findEntryPoints (/cloud-commerce-sample-setup-2105-spartacus/js-storefront/spartacusstore/node_modules/@angular/compiler-cli/ngcc/src/entry_point_finder/targeted_entry_point_finder.js:40:23)
at /cloud-commerce-sample-setup-2105-spartacus/js-storefront/spartacusstore/node_modules/@angular/compiler-cli/ngcc/src/execution/analyze_entry_points.js:29:41
at SingleProcessExecutorSync.SingleProcessorExecutorBase.doExecute (/cloud-commerce-sample-setup-2105-spartacus/js-storefront/spartacusstore/node_modules/@angular/compiler-cli/ngcc/src/execution/single_process_executor.js:28:29)
at /cloud-commerce-sample-setup-2105-spartacus/js-storefront/spartacusstore/node_modules/@angular/compiler-cli/ngcc/src/execution/single_process_executor.js:57:59
at SyncLocker.lock (/cloud-commerce-sample-setup-2105-spartacus/js-storefront/spartacusstore/node_modules/@angular/compiler-cli/ngcc/src/locking/sync_locker.js:34:24)
at SingleProcessExecutorSync.execute (/cloud-commerce-sample-setup-2105-spartacus/js-storefront/spartacusstore/node_modules/@angular/compiler-cli/ngcc/src/execution/single_process_executor.js:57:27)
at Object.mainNgcc (/cloud-commerce-sample-setup-2105-spartacus/js-storefront/spartacusstore/node_modules/@angular/compiler-cli/ngcc/src/main.js:74:25)
A violation against the OSS Rules of Play has been detected.
Rule ID: rl-assigned_teams-3
Explanation: Does it have enough admins on GitHub? No
Find more information at: https://sap.github.io/fosstars-rating-core/oss_rules_of_play_rating.html
<extension name='permissionswebservices' />
<extension name='acceleratorbackoffice' />
<extension name='acceleratorcms' />
<extension name='acceleratorfacades' />
<extension name='acceleratorocc' />
<extension name='acceleratorservices' />
<extension name='acceleratorstorefrontcommons' />
This ATP doesn't work for B2B powertools and SAP Commerce 2211.10
# Updates the OMS ATP default formula for stock calculation to avoid products with placed orders to go out of stock
INSERT_UPDATE AtpFormula;code[unique=true];availability;allocation;cancellation;increase;reserved;shrinkage;wastage;returned
;Default_Formula;true;false;false;true;false;true;true;true
Describe the bug
When I call npm install
I receive the following error:
npm ERR! code ETARGET npm ERR! notarget No matching version found for @spartacus/asm@~6.0.0.
Tell us the version of Spartacus
2211-4-spartacus-6-0-0
To Reproduce
Steps to reproduce the behavior:
2211-4-spartacus-6-0-0
).npm install
or npm update
.Expected behavior
The dependencies should be installed and node_modules folder should appear.
A violation against the OSS Rules of Play has been detected.
Rule ID: rl-reuse_tool-2
Explanation: Does it have LICENSES directory with licenses? No
Find more information at: https://sap.github.io/fosstars-rating-core/oss_rules_of_play_rating.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.