Skip to content

Commit

Permalink
Merge pull request #32 from shakacode/rescript
Browse files Browse the repository at this point in the history
Convert to ReScript
  • Loading branch information
peterpme authored Aug 26, 2022
2 parents aee9443 + e0b3c5c commit 4704077
Show file tree
Hide file tree
Showing 32 changed files with 2,955 additions and 2,586 deletions.
9 changes: 3 additions & 6 deletions bsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
{
"name": "bs-storybook",
"namespace": true,
"bsc-flags": [
"-bs-super-errors"
],
"name": "rescript-storybook",
"namespace": "storybook",
"version": "0.1.0",
"sources": [
"src"
],
"bs-dependencies": [
"reason-react"
"@rescript/react"
],
"reason": {
"react-jsx": 3
Expand Down
2 changes: 1 addition & 1 deletion example/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules/
src/*.js
lib
yarn.lock
storybook-static/
20 changes: 10 additions & 10 deletions example/bindings/Storybook.bs.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@


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

var Story = { };
var Story = {};

function createStory(title, decorators, _module, param) {
var story = React.storiesOf(title, _module);
List.iter((function (dec) {
story.addDecorator(dec);
return /* () */0;

}), decorators);
return {
add: (function (name, c) {
story.add(name, c);
return /* () */0;

})
};
}
Expand All @@ -26,7 +26,7 @@ var Main = {
createStory: createStory
};

var Notes = { };
var Notes = {};

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

var Addons = { };
var Addons = {};

var Action = { };
var Action = {};

var bsExports = ["$$default"];

Expand All @@ -77,7 +77,7 @@ function addMeta(csfStory, name, decorators, parameters, param) {
decorators: Js_null_undefined.fromOption(decorators),
parameters: Js_null_undefined.fromOption(parameters)
};
return /* () */0;

}

var CSF = {
Expand Down
242 changes: 0 additions & 242 deletions example/bindings/Storybook.re

This file was deleted.

Loading

0 comments on commit 4704077

Please sign in to comment.