From 1e08c6c41bada48c12cf6cfbb288bf2a540615dc Mon Sep 17 00:00:00 2001 From: Anirudh <70373803+techwithanirudh@users.noreply.github.com> Date: Mon, 29 Nov 2021 21:45:23 +0530 Subject: [PATCH] Create setup.sh A Shell script to initialize MakeCode. --- setup.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 setup.sh diff --git a/setup.sh b/setup.sh new file mode 100644 index 00000000..8d8375ce --- /dev/null +++ b/setup.sh @@ -0,0 +1,13 @@ +# A Shell script to initialize MakeCode. + +read -p "Enter PXT Name: " pxtname +git clone https://github.com/microsoft/"pxt-$pxtname" +cd "pxt-$pxtname" +npm install +npm install pxt +node node_modules/pxt-core/built/pxt.js install +node node_modules/pxt-core/built/pxt.js update +node node_modules/pxt-core/built/pxt.js serve --hostname 0.0.0.0 --port 8080 + +# Run +# bash setup.sh