Skip to content

Commit 05a8903

Browse files
author
Alex Fedoseev
authored
Merge pull request #29 from shakacode/rescript
Convert to ReScript
2 parents b41ad6a + 35f5e67 commit 05a8903

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+5312
-5764
lines changed

.github/workflows/pr.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: build
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
name: Build on ${{ matrix.os }}
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
node-version: [16.x]
15+
os: [ubuntu-latest, macOS-latest, windows-latest]
16+
17+
steps:
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
23+
- name: Checkout
24+
uses: actions/checkout@v2
25+
26+
- name: Get yarn cache directory path
27+
id: yarn-cache-dir-path
28+
run: echo "::set-output name=dir::$(yarn cache dir)"
29+
30+
- name: Restore yarn cache
31+
id: yarn-cache
32+
uses: actions/cache@v1
33+
with:
34+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
35+
key: ${{ matrix.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
36+
restore-keys: |
37+
${{ matrix.os }}-yarn-
38+
39+
- name: Install deps
40+
run: yarn install
41+
42+
- name: Build lib
43+
run: yarn rescript build -with-deps

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
node_modules/
22
lib/
33
dist/
4+
yarn-error.log
5+
*.bs.js
6+
.vercel
47
.merlin
58
.bsb.lock
6-
*.bs.js
7-
yarn-error.log
89
.cache
910
.DS_Store

.travis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

HISTORY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* **[ BREAKING ]** Move `bs-webapi` to peer dependensies.
1010

1111
## 2.0.0
12-
* **[ BREAKING ]** Modules of `DndEntry` type must provide `cmp` function to avoid polymorphic comparison. See [this diff](https://github.com/MinimaHQ/re-dnd/commit/238a0abab8ad88a7c643c0b022c49887c025a89b) for details.
12+
* **[ BREAKING ]** Modules of `DndEntry` type must provide `cmp` function to avoid polymorphic comparison. See [this diff](https://github.com/MinimaHQ/rescript-dnd/commit/238a0abab8ad88a7c643c0b022c49887c025a89b) for details.
1313
* **[ BREAKING ]** Minimum required version of `bs-platform` is `7.1.1`.
1414
* **[ BREAKING ]** Minimum required version of `reason-react` is `0.8.0`.
1515

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# re-dnd
1+
# rescript-dnd
22

3-
[![npm version](https://img.shields.io/npm/v/re-dnd.svg?style=flat-square)](https://www.npmjs.com/package/re-dnd)
4-
[![build status](https://img.shields.io/travis/alexfedoseev/re-dnd/master.svg?style=flat-square)](https://travis-ci.org/alexfedoseev/re-dnd)
5-
[![license](https://img.shields.io/npm/l/re-dnd.svg?style=flat-square)](https://www.npmjs.com/package/re-dnd)
3+
[![npm version](https://img.shields.io/npm/v/rescript-dnd.svg?style=flat-square)](https://www.npmjs.com/package/rescript-dnd)
4+
[![build status](https://img.shields.io/travis/alexfedoseev/rescript-dnd/master.svg?style=flat-square)](https://travis-ci.org/alexfedoseev/rescript-dnd)
5+
[![license](https://img.shields.io/npm/l/rescript-dnd.svg?style=flat-square)](https://www.npmjs.com/package/rescript-dnd)
66

77
Drag & drop for [`@rescript/react`](https://reasonml.github.io/reason-react/).
88

@@ -20,16 +20,16 @@ Drag & drop for [`@rescript/react`](https://reasonml.github.io/reason-react/).
2020

2121
```shell
2222
# yarn
23-
yarn add re-dnd
23+
yarn add rescript-dnd
2424
# or npm
25-
npm install --save re-dnd
25+
npm install --save rescript-dnd
2626
```
2727

2828
Then add it to `bsconfig.json`:
2929

3030
```json
3131
"bs-dependencies": [
32-
"re-dnd"
32+
"rescript-dnd"
3333
]
3434
```
3535

@@ -39,7 +39,7 @@ Then add it to `bsconfig.json`:
3939
* [Api](./docs/03-Api.md)
4040

4141
## Examples
42-
* Demos: [`live`](https://re-dnd.now.sh) | [`sources`](./examples)
42+
* Demos: [`live`](https://rescript-dnd.vercel.app) | [`sources`](./examples)
4343
* Production app: [`Minima`](https://minima.app)
4444

4545
## State

bsconfig.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "re-dnd",
2+
"name": "rescript-dnd",
33
"sources": [
44
{
55
"dir": "src",
@@ -17,15 +17,17 @@
1717
"rescript-logger"
1818
],
1919
"bs-dev-dependencies": [
20-
"re-classnames"
20+
"rescript-classnames"
2121
],
2222
"reason": {
2323
"react-jsx": 3
2424
},
2525
"refmt": 3,
26-
"bsc-flags": ["-open Belt"],
26+
"bsc-flags": [
27+
"-open Belt"
28+
],
2729
"ppx-flags": [
28-
["rescript-logger/ppx", "--lib=re-dnd"],
30+
["rescript-logger/ppx", "--lib=rescript-dnd"]
2931
],
3032
"package-specs": {
3133
"module": "es6",

0 commit comments

Comments
 (0)