1.0.30 • Published 4 years ago

@smitnet/smit-store-sdk v1.0.30

Weekly downloads
21
License
MIT
Repository
github
Last release
4 years ago

Javascript SDK — SMIT. Store

Core Features

  • Fetch all categories, facets and products
  • ...
  • ...
  • ...

Supported browsers

  • Chrome
  • Firefox
  • Edge
  • Safari

Getting started

...

<script src="//cdn.smit.store/dist/{{ version }}/sdk.js?api={{ apiKey }}"></script>

Recommedations

Add the following to first lines within your document head:

<link rel="preconnect" href="https://api.smit.store" />
<link rel="preconnect" href="https://cdn.smit.store" />

The following can serve as fallback:

<link rel="dns-prefetch" href="https://api.smit.store" />
<link rel="dns-prefetch" href="https://cdn.smit.store" />

Installation

...

npm install --save @smitnet/smit-store-sdk

Configuration

<script type="text/javascript">
    var SomeNameForSDK = window.SmitStore.Build({
        // configuration options
    })

    SomeNameForSDK.Products.All().then(function(data) { /* do something with `data` */ })
<script>

Documentation and references

...

Rollup instead of webpack

The bundlers syntax-wise the same, but under the hood please read The Why on rollupjs.org.

License

This repository is published under MIT.

Contribution

Development

To start a new version:

npm version patch && npm run build

To start the LiveReload version you can use:

npm run start
1.0.29

4 years ago

1.0.28

4 years ago

1.0.30

4 years ago

1.0.27

4 years ago

1.0.26

4 years ago

1.0.25

4 years ago

1.0.24

4 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago