From d5c79567b37032c43e4dee64743d0c5306b3f249 Mon Sep 17 00:00:00 2001 From: John Rees Date: Mon, 20 Jan 2020 15:04:51 +0000 Subject: [PATCH] cosmos --- cosmos.config.json | 6 ++++++ package.json | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 cosmos.config.json diff --git a/cosmos.config.json b/cosmos.config.json new file mode 100644 index 0000000..dded1aa --- /dev/null +++ b/cosmos.config.json @@ -0,0 +1,6 @@ +{ + "watchDirs": ["src"], + "webpack": { + "configPath": "react-scripts/config/webpack.config" + } +} diff --git a/package.json b/package.json index 7039905..9e7920d 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,9 @@ "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", - "eject": "react-scripts eject" + "eject": "react-scripts eject", + "cosmos": "cosmos", + "cosmos:export": "cosmos-export" }, "eslintConfig": { "extends": "react-app"