From 048b5355ee2ed8a8a1183f4443a7898ffde7dfe7 Mon Sep 17 00:00:00 2001 From: steveoni Date: Tue, 24 Nov 2020 11:47:39 +0100 Subject: [PATCH] [index][s]: Test the helper functions (copy and install functionality) --- packages/create-portal-app/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/create-portal-app/index.js b/packages/create-portal-app/index.js index e69de29b..af14d5c1 100644 --- a/packages/create-portal-app/index.js +++ b/packages/create-portal-app/index.js @@ -0,0 +1,9 @@ +const copy = require("./helpers/copy"); +const install = require("./helpers/install"); +const path = require('path'); + +(async ()=>{ + const root = [__dirname, "templates"].join(path.sep); + await copy(root,"Datahub") + await install("Datahub", true); +})().catch(e=> console.log(e)); \ No newline at end of file