Skip to content

Commit 4704077

Browse files
authored
Merge pull request #32 from shakacode/rescript
Convert to ReScript
2 parents aee9443 + e0b3c5c commit 4704077

32 files changed

+2955
-2586
lines changed

bsconfig.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
{
2-
"name": "bs-storybook",
3-
"namespace": true,
4-
"bsc-flags": [
5-
"-bs-super-errors"
6-
],
2+
"name": "rescript-storybook",
3+
"namespace": "storybook",
74
"version": "0.1.0",
85
"sources": [
96
"src"
107
],
118
"bs-dependencies": [
12-
"reason-react"
9+
"@rescript/react"
1310
],
1411
"reason": {
1512
"react-jsx": 3

example/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
node_modules/
22
src/*.js
33
lib
4-
yarn.lock
4+
storybook-static/

example/bindings/Storybook.bs.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11

22

3-
import * as List from "bs-platform/lib/es6/list.js";
4-
import * as Belt_Option from "bs-platform/lib/es6/belt_Option.js";
3+
import * as List from "rescript/lib/es6/list.js";
4+
import * as Belt_Option from "rescript/lib/es6/belt_Option.js";
55
import * as React from "@storybook/react";
6-
import * as Js_null_undefined from "bs-platform/lib/es6/js_null_undefined.js";
6+
import * as Js_null_undefined from "rescript/lib/es6/js_null_undefined.js";
77
import * as React$1 from "@storybook/addon-knobs/react";
88

9-
var Story = { };
9+
var Story = {};
1010

1111
function createStory(title, decorators, _module, param) {
1212
var story = React.storiesOf(title, _module);
1313
List.iter((function (dec) {
1414
story.addDecorator(dec);
15-
return /* () */0;
15+
1616
}), decorators);
1717
return {
1818
add: (function (name, c) {
1919
story.add(name, c);
20-
return /* () */0;
20+
2121
})
2222
};
2323
}
@@ -26,7 +26,7 @@ var Main = {
2626
createStory: createStory
2727
};
2828

29-
var Notes = { };
29+
var Notes = {};
3030

3131
function text(label, defaultValue, param) {
3232
return React$1.text(label, Js_null_undefined.fromOption(defaultValue));
@@ -52,9 +52,9 @@ var Knobs = {
5252
button: button
5353
};
5454

55-
var Addons = { };
55+
var Addons = {};
5656

57-
var Action = { };
57+
var Action = {};
5858

5959
var bsExports = ["$$default"];
6060

@@ -77,7 +77,7 @@ function addMeta(csfStory, name, decorators, parameters, param) {
7777
decorators: Js_null_undefined.fromOption(decorators),
7878
parameters: Js_null_undefined.fromOption(parameters)
7979
};
80-
return /* () */0;
80+
8181
}
8282

8383
var CSF = {

example/bindings/Storybook.re

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

0 commit comments

Comments
 (0)