From ebfb54ff21337aaddc8bce4c30fe5fe2bdab1cd1 Mon Sep 17 00:00:00 2001 From: Dan Bucholtz Date: Thu, 4 Jan 2018 13:00:38 -0600 Subject: [PATCH] chore(scripts): use npm run start to run project --- packages/demos/react/README.md | 2 +- packages/demos/react/package.json | 4 +++- packages/demos/react/run.sh | 2 -- 3 files changed, 4 insertions(+), 4 deletions(-) delete mode 100755 packages/demos/react/run.sh diff --git a/packages/demos/react/README.md b/packages/demos/react/README.md index 844ff405a8..f6b0b07ef2 100644 --- a/packages/demos/react/README.md +++ b/packages/demos/react/README.md @@ -1,3 +1,3 @@ ## React Demo -To run, run `./run.sh` \ No newline at end of file +To run, run `npm run start`. \ No newline at end of file diff --git a/packages/demos/react/package.json b/packages/demos/react/package.json index 7e9ae7e4a4..8db69f4dcd 100644 --- a/packages/demos/react/package.json +++ b/packages/demos/react/package.json @@ -10,7 +10,9 @@ "react-scripts": "1.0.17" }, "scripts": { - "start": "react-scripts start", + "start-original": "react-scripts start", + "copy": "cp -R ./node_modules/@ionic/core/dist ./public/dist", + "start": "npm run copy && npm run start-original", "build": "react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" diff --git a/packages/demos/react/run.sh b/packages/demos/react/run.sh deleted file mode 100755 index edfab18a16..0000000000 --- a/packages/demos/react/run.sh +++ /dev/null @@ -1,2 +0,0 @@ -cp -R ./node_modules/@ionic/core/dist ./public/dist -npm run start \ No newline at end of file