Skip to content

Commit

Permalink
Merge pull request #7 from explorable-viz/achintya-edits
Browse files Browse the repository at this point in the history
This includes code from `Renewables.purs` to test if `yarn build` works using submodules

(Checks fail as expected.)
  • Loading branch information
RaoOfPhysics authored Jul 29, 2024
2 parents 0ce95dc + 0b3e950 commit fd7b085
Show file tree
Hide file tree
Showing 3 changed files with 394 additions and 5 deletions.
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "An example of a Fluid publication using an IPCC report",
"scripts": {
"clean": "rm -rf dist && mkdir -p dist && cp index.html dist",
"build": "yarn clean && spago build --purs-args '--strict --censor-codes=UserDefinedWarning' && purs-backend-es bundle-app --main Article --to dist/article.js"
"build": "yarn clean && yarn install && spago build --purs-args '--strict --censor-codes=UserDefinedWarning' && purs-backend-es bundle-app --main Article --to dist/article.js"
},
"repository": {
"type": "git",
Expand All @@ -17,7 +17,12 @@
},
"homepage": "https://github.com/explorable-viz/fluid-example-ipcc-ar6-01#readme",
"dependencies": {
"purescript": "^0.15.10"
"purescript": "^0.15.10",
"@codemirror/commands": "6.2.2",
"@codemirror/state": "6.2.0",
"@codemirror/view": "6.9.3",
"benchmark": "^2.1.4",
"d3": "^7.9.0"
},
"devDependencies": {
"esbuild": "^0.15.1",
Expand Down
20 changes: 18 additions & 2 deletions src/Article.purs
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
module Article where

import Prelude
import Prelude hiding (absurd)

import App.Fig (FigSpec, drawFig, loadFig)
import App.Util (runAffs_)
import Bind ((↦))
import Data.Tuple (uncurry)
import Effect (Effect)
import Module (File(..))
import Util ((×))

-- Delete this test case once we can enable/disable outputs via the UI

figSpec :: FigSpec
figSpec =
{ datasets: [ "renewables""example/linked-outputs/renewables" ]
, imports: []
, file: File "linked-outputs/line-chart"
, inputs: [ "renewables" ]
}

main :: Effect Unit
main = pure unit
main = runAffs_ (uncurry drawFig) [ ("fig" × _) <$> loadFig figSpec ]
Loading

0 comments on commit fd7b085

Please sign in to comment.