An open API service indexing awesome lists of open source software.

https://github.com/idkjs/reason-remote-data

Going through the step of publishing an reason npm package
https://github.com/idkjs/reason-remote-data

Last synced: 3 months ago
JSON representation

Going through the step of publishing an reason npm package

Awesome Lists containing this project

README

        

# Reason Remote Data

This is project is based on the great gist [https://gist.github.com/idkjs/8e723a86f09843c4038123c45c846f75](remotedata) module.
It's just trying to go through the steps of releasing a library.

Use this if you actual need `remotedata`: [remotedata-re](https://github.com/lrosa007/remotedata-re)

Good reads: [publish-to-npm](https://zellwk.com/blog/publish-to-npm/), [How to publish a React Native component to NPM](https://www.freecodecamp.org/news/how-to-publish-a-react-native-component-to-npm-its-easier-than-you-think-51f6ae1ef850/)

## Setup

Install the module:

```bash
yarn add @idkjs/reason-remote-data
```

Then add it to your `bsconfig.json`:

```json
{
"bs-dependencies": ["reason-react", "@idkjs/reason-remote-data"]
}
```

## Publishing

```bash
npm publish
```

You will have to work your way through the `npm publish` failures to get it to go. At first, I named the project `@idkjs/reason-remote-data` which wasnt accepted. I guess it already in use or reserved on `npm`. After the change it worked.

## Usage

TODO