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
- Host: GitHub
- URL: https://github.com/idkjs/reason-remote-data
- Owner: idkjs
- Created: 2019-09-07T14:59:11.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-08T00:53:48.000Z (almost 6 years ago)
- Last Synced: 2025-03-18T03:41:54.567Z (3 months ago)
- Language: OCaml
- Size: 64.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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