From 55d1eb2fedb5d618d8df1690c8144fc674bb6dcd Mon Sep 17 00:00:00 2001 From: Tony Kovanen Date: Fri, 27 Apr 2018 10:14:22 +0700 Subject: [PATCH] with-reasonml: use default exports --- examples/with-reasonml/package.json | 6 +++--- examples/with-reasonml/pages/about.js | 4 ---- examples/with-reasonml/pages/{About.re => about.re} | 2 +- examples/with-reasonml/pages/index.js | 3 --- examples/with-reasonml/pages/{Index.re => index.re} | 2 +- 5 files changed, 5 insertions(+), 12 deletions(-) delete mode 100644 examples/with-reasonml/pages/about.js rename examples/with-reasonml/pages/{About.re => about.re} (75%) delete mode 100644 examples/with-reasonml/pages/index.js rename examples/with-reasonml/pages/{Index.re => index.re} (74%) diff --git a/examples/with-reasonml/package.json b/examples/with-reasonml/package.json index 91a7052fc50c6..d28cf3612cb2c 100644 --- a/examples/with-reasonml/package.json +++ b/examples/with-reasonml/package.json @@ -2,9 +2,9 @@ "name": "with-reasonml", "version": "1.0.0", "scripts": { - "dev": "concurrently \"bsb -clean-world -make-world -w\" \"next -w\"", - "build": "bsb -clean-world -make-world && next build", - "start": "bsb -clean-world -make-world && next start -w" + "dev": "bsb -clean-world -make-world && next dev lib/js", + "build": "bsb -clean-world -make-world && next build lib/js", + "start": "next start lib/js" }, "license": "ISC", "dependencies": { diff --git a/examples/with-reasonml/pages/about.js b/examples/with-reasonml/pages/about.js deleted file mode 100644 index a9997ae5926d5..0000000000000 --- a/examples/with-reasonml/pages/about.js +++ /dev/null @@ -1,4 +0,0 @@ -import { jsComponent as About } from './About.re' -import React from 'react' - -export default () => diff --git a/examples/with-reasonml/pages/About.re b/examples/with-reasonml/pages/about.re similarity index 75% rename from examples/with-reasonml/pages/About.re rename to examples/with-reasonml/pages/about.re index ad39b954dae00..f10456564766e 100644 --- a/examples/with-reasonml/pages/About.re +++ b/examples/with-reasonml/pages/about.re @@ -10,4 +10,4 @@ let make = (_children) => { }; -let jsComponent = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||])); \ No newline at end of file +let default = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||])); diff --git a/examples/with-reasonml/pages/index.js b/examples/with-reasonml/pages/index.js deleted file mode 100644 index 24ea82817f6de..0000000000000 --- a/examples/with-reasonml/pages/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import { jsComponent as Index } from './Index.re' - -export default () => diff --git a/examples/with-reasonml/pages/Index.re b/examples/with-reasonml/pages/index.re similarity index 74% rename from examples/with-reasonml/pages/Index.re rename to examples/with-reasonml/pages/index.re index a62bc34d61faf..b6966cd469472 100644 --- a/examples/with-reasonml/pages/Index.re +++ b/examples/with-reasonml/pages/index.re @@ -10,4 +10,4 @@ let make = (_children) => { }; -let jsComponent = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||])); \ No newline at end of file +let default = ReasonReact.wrapReasonForJs(~component, (_jsProps) => make([||]));