1.0.27 • Published 8 months ago

@returnx-sa/svelte-daterange-selector v1.0.27

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

Project

this project is for building a component library for Returnx SA using Storybook

Developing

Run the following cmds to start up the storybook server:

#install node modules
npm install # once off command to install dependency packages

# start storybook
npm run storybook # port specified in package.json script

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.

Usage

To use the daterange component in another project make sure to install:

npm install @returnx-sa/svelte-daterange-selector@1.0.25

once the component is installed, make sure to import both the component and the css file to allow for the css to work on the component:

import DateRangeSelector from "@returnx-sa/svelte-daterange-selector";
import "@returnx-sa/svelte-daterange-selector/returnxstyles.css";

Releasing to NPM:

In order to release the package to npm (after doing an npm login via the CLI to your domain): 1. Make sure the package is in line with the name you want to give your package name in the repo, i.e "name": "@returnx-sa/svelte-daterange-selector" in the package.json file will allow you to download it as npm i @returnx-sa/svelte-daterange-selector

  1. run npm run package to package your component and you will see it packaged in a dist folder.

  2. Once satisfied there are no errors for the package, run npm publish

  3. Done ! you should be able to consume your product in an app

1.0.26

8 months ago

1.0.27

8 months ago

1.0.22

9 months ago

1.0.25

9 months ago

1.0.24

9 months ago

1.0.23

9 months ago

1.0.21

10 months ago

1.0.20

10 months ago

1.0.19

10 months ago

1.0.18

10 months ago

1.0.17

10 months ago

1.0.16

10 months ago

1.0.15

10 months ago

1.0.13

10 months ago

1.0.12

10 months ago

1.0.11

10 months ago

1.0.10

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago