0.2.0 • Published 5 months ago

croct-nanostores v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Installation

npm/yarn/pnpm install croct-nanostores

Basic usage

import { croct, croctContent } from 'croct-nano';

croct.plug({ appId: '00000000-0000-0000-0000-000000000000' });

const homeBanner = croctContent('home-banner', {
    cta: {
        link: 'https://demo.croct.com/product/e-commerce#trending',
        label: 'SHOP NOW',
        labelColor: '#ffffff',
        backgroundColor: '#ff5353',
    },
    image: {
        main: 'https://demo.croct.com/assets/e-commerce/images/ban-1.png',
        background: 'https://demo.croct.com/assets/e-commerce/images/bg-1.jpg',
    },
    title: {
        text: 'Complete Women Fashion Here',
        color: '#000000',
    },
    preTitle: {
        text: 'ULTIMATE COLLECTION',
        color: '#565656',
    },
});

Contributing

Contributions to the package are always welcome!

  • Report any bugs or issues on the issue tracker.
  • For major changes, please open an issue first to discuss what you would like to change.
  • Please make sure to update tests as appropriate.

Testing

Before running the test suites, the development dependencies must be installed:

pnpm install

Then, to run all tests:

pnpm test

Building

Before building the project, the dependencies must be installed:

pnpm install

Then, build with

pnpm build