hemfixarna-web-components
v1.7.4
Published
Web components to integrate with hemfixarna api
Downloads
202
Readme
Hemfixarna web components
This is a library to connect hemfixarnas services to your websites
How it works
Push to dev or master to show a preview site in vercel. Dev is connected to hemfixarna dev and master to production.
The live production code is compiled to a npm package. In that way customer could if they want lock their version to a certain release if we're making breaking changes for some reason.
Deploy to npm
First of all you need to be added to the npm package to authorize. Ask Adin or Remi on how.
- Change the version in package.json
- Run yarn deploy
- Open the testprod.html to see that the prod runs properly
- Run npm publish
- To revalidate the cache (script is cached for 7 days on jsdelivr) run yarn purge
How to add a new customer
- Add the customer to the Business enum in /src/types/index.ts, the string should match the slug in wp
- If hosted on their webpage, make sure you add the domain to the creditsafe-lookup repo here
[https://bitbucket.org/afonso-sweden/creditsafe-lookup/src/main/api/index.ts]