From e487ad835e3c2cd90c531bb5b3626ac4ca282673 Mon Sep 17 00:00:00 2001 From: Achintya Rao Date: Mon, 22 Jul 2024 18:38:22 +0100 Subject: [PATCH] Add `clean` and `build` scripts Signed-off-by: Achintya Rao --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 707c8c8..d0729fb 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,10 @@ "name": "fluid-example-ipcc-ar6-01", "version": "0.0.1", "description": "An example of a Fluid publication using an IPCC report", + "scripts": { + "clean": "rm -rf dist/article && mkdir -p dist/article", + "build": "yarn clean && spago build && purs-backend-es bundle-app --main Article --to dist/article/app.js" + }, "repository": { "type": "git", "url": "git+https://github.com/explorable-viz/fluid-example-ipcc-ar6-01.git"