Package detail

hemfixarna-web-components

afonso-sweden231MIT1.8.9

Web components to integrate with hemfixarna api

readme

Built With Stencil

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.

  1. Change the version in package.json
  2. Run yarn deploy
  3. Open the testprod.html to see that the prod runs properly
  4. Run npm publish
  5. To revalidate the cache (script is cached for 7 days on jsdelivr) run yarn purge

How to add a new customer

  1. Add the customer to the Business enum in /src/types/index.ts, the string should match the slug in wp
  2. 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]