From 2d0e0275821f24d81505b39da59b59c14d293323 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Wed, 19 Feb 2020 13:26:45 +0000 Subject: [PATCH] template app - includes MD by default --- .../commands/new/appPackageTemplate/package.json | 3 ++- .../commands/new/appPackageTemplate/pages.json | 14 -------------- .../new/appPackageTemplate/pages/main/page.json | 2 +- .../pages/unauthenticated/page.json | 2 +- packages/materialdesign-components/package.json | 2 +- .../scripts/publishDev.js | 15 +++++++++++---- 6 files changed, 16 insertions(+), 22 deletions(-) delete mode 100644 packages/cli/src/commands/new/appPackageTemplate/pages.json diff --git a/packages/cli/src/commands/new/appPackageTemplate/package.json b/packages/cli/src/commands/new/appPackageTemplate/package.json index a0f58b7239..53db27f272 100644 --- a/packages/cli/src/commands/new/appPackageTemplate/package.json +++ b/packages/cli/src/commands/new/appPackageTemplate/package.json @@ -8,6 +8,7 @@ "author": "", "license": "ISC", "dependencies": { - "@budibase/standard-components": "^0.0.3" + "@budibase/standard-components": "^0.0.3", + "@budibase/materialdesign-components": "^0.0.16" } } diff --git a/packages/cli/src/commands/new/appPackageTemplate/pages.json b/packages/cli/src/commands/new/appPackageTemplate/pages.json deleted file mode 100644 index 5c0076fe4b..0000000000 --- a/packages/cli/src/commands/new/appPackageTemplate/pages.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "main": { - "index": {}, - "appBody": "" - }, - "unauthenticated": { - "index": {}, - "appBody": "" - }, - "componentLibraries": [ - "@budibase/standard-components" - ], - "stylesheets": [] -} diff --git a/packages/cli/src/commands/new/appPackageTemplate/pages/main/page.json b/packages/cli/src/commands/new/appPackageTemplate/pages/main/page.json index c725d5bdf6..89a23a78e5 100644 --- a/packages/cli/src/commands/new/appPackageTemplate/pages/main/page.json +++ b/packages/cli/src/commands/new/appPackageTemplate/pages/main/page.json @@ -2,7 +2,7 @@ "title": "Test App", "favicon": "./_shared/favicon.png", "stylesheets": [], - "componentLibraries": ["@budibase/standard-components"], + "componentLibraries": ["@budibase/standard-components", "@budibase/materialdesign-components"], "props" : { "_component": "@budibase/standard-components/container", "_children": [], diff --git a/packages/cli/src/commands/new/appPackageTemplate/pages/unauthenticated/page.json b/packages/cli/src/commands/new/appPackageTemplate/pages/unauthenticated/page.json index 7023bf9af7..14d0301c24 100644 --- a/packages/cli/src/commands/new/appPackageTemplate/pages/unauthenticated/page.json +++ b/packages/cli/src/commands/new/appPackageTemplate/pages/unauthenticated/page.json @@ -2,7 +2,7 @@ "title": "Test App", "favicon": "./_shared/favicon.png", "stylesheets": [], - "componentLibraries": ["@budibase/standard-components"], + "componentLibraries": ["@budibase/standard-components", "@budibase/materialdesign-components"], "props" : { "_component": "@budibase/standard-components/container", "_children": [], diff --git a/packages/materialdesign-components/package.json b/packages/materialdesign-components/package.json index a469e85754..a93b5602a7 100644 --- a/packages/materialdesign-components/package.json +++ b/packages/materialdesign-components/package.json @@ -36,7 +36,7 @@ "keywords": [ "svelte" ], - "version": "0.0.15", + "version": "0.0.16", "license": "MIT", "gitHead": "115189f72a850bfb52b65ec61d932531bf327072", "dependencies": { diff --git a/packages/materialdesign-components/scripts/publishDev.js b/packages/materialdesign-components/scripts/publishDev.js index bdc85aacc5..a199b51226 100644 --- a/packages/materialdesign-components/scripts/publishDev.js +++ b/packages/materialdesign-components/scripts/publishDev.js @@ -26,7 +26,7 @@ const publicMain = appName => "lib", "node_modules", "@budibase", - "standard-components" + "materialdesign-components" ) const publicUnauth = appName => join( @@ -37,7 +37,7 @@ const publicUnauth = appName => "lib", "node_modules", "@budibase", - "standard-components" + "materialdesign-components" ) const nodeModulesDist = appName => join( @@ -45,11 +45,18 @@ const nodeModulesDist = appName => appName, "node_modules", "@budibase", - "standard-components", + "materialdesign-components", "dist" ) + const nodeModules = appName => - join(appPackages, appName, "node_modules", "@budibase", "standard-components") + join( + appPackages, + appName, + "node_modules", + "@budibase", + "materialdesign-components" + ) ;(async () => { const apps = await readdir(appPackages)