1.0.30 • Published 3 years ago
@smitnet/smit-store-sdk v1.0.30
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
3 years ago
1.0.28
3 years ago
1.0.30
3 years ago
1.0.27
3 years ago
1.0.26
3 years ago
1.0.25
3 years ago
1.0.24
3 years ago
1.0.23
3 years ago
1.0.22
3 years ago
1.0.21
3 years ago
1.0.20
3 years ago
1.0.19
3 years ago
1.0.18
3 years ago
1.0.17
3 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago