Skip to content

Commit

Permalink
Removed the React prototyping
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdp committed Aug 23, 2020
1 parent a483872 commit bf93f42
Show file tree
Hide file tree
Showing 14 changed files with 9 additions and 6,108 deletions.
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,14 @@
"main": "index.js",
"scripts": {
"build": "spago build",
"serve": "spago --config spago.test.dhall build && parcel serve test/index.html",
"test": "spago --config spago.test.dhall test"
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"parcel-bundler": "^1.12.4",
"purescript": "^0.13.8",
"purescript-psa": "^0.7.3",
"purty": "^6.2.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"spago": "^0.15.3"
"spago": "^0.16.0"
}
}
2 changes: 1 addition & 1 deletion packages.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ let additions =


let upstream =
https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20200615/packages.dhall sha256:5d0cfad9408c84db0a3fdcea2d708f9ed8f64297e164dc57a7cf6328706df93a
https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20200822/packages.dhall sha256:b4f151f1af4c5cb6bf5437489f4231fbdd92792deaf32971e6bcb0047b3dd1f8

let overrides = {=}

Expand Down
6 changes: 2 additions & 4 deletions spago.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ You can edit this file as you like.
-}
{ name = "wire"
, dependencies =
[ "arrays"
[ "aff"
, "arrays"
, "filterable"
, "foreign-object"
, "free"
, "freet"
, "react-basic-hooks"
, "refs"
, "unsafe-reference"
]
Expand Down
10 changes: 0 additions & 10 deletions spago.test.dhall

This file was deleted.

57 changes: 0 additions & 57 deletions src/Wire/React.purs

This file was deleted.

78 changes: 0 additions & 78 deletions src/Wire/React/Async.purs

This file was deleted.

13 changes: 0 additions & 13 deletions src/Wire/React/Class.purs

This file was deleted.

31 changes: 0 additions & 31 deletions src/Wire/React/Pure.purs

This file was deleted.

75 changes: 0 additions & 75 deletions src/Wire/React/Selector.purs

This file was deleted.

48 changes: 0 additions & 48 deletions src/Wire/React/Sync.purs

This file was deleted.

27 changes: 4 additions & 23 deletions test/Main.purs
Original file line number Diff line number Diff line change
@@ -1,30 +1,11 @@
module Test.Main where

import Prelude

import Effect (Effect)
import Effect.Aff (Milliseconds(..), delay, launchAff_)
import Effect.Class (liftEffect)
import Effect.Class.Console as Console
import Wire.React.Class as Atom
import Wire.React.Pure as Pure
import Wire.React.Selector as Selector
import Effect.Class.Console (log)

main :: Effect Unit
main = do
testAtom1 <- Pure.create 2.0
testAtom2 <- Pure.create 100.0
testSelector <-
Selector.create
{ select:
do
test1 <- Selector.select testAtom1
test2 <- Selector.select testAtom2
pure $ test2 / test1
, update: mempty
}
_ <- Atom.subscribe testSelector Console.logShow
launchAff_ do
delay $ Milliseconds 2000.0
liftEffect $ Atom.modify testAtom1 (const 4.0)
delay $ Milliseconds 5000.0
liftEffect $ Atom.modify testAtom2 (const 50.0)
log "🍝"
log "You should add some tests."
Loading

0 comments on commit bf93f42

Please sign in to comment.