From c6e0e8e8d096a88de8fafc3402b0733efcfcffd9 Mon Sep 17 00:00:00 2001 From: Mike North Date: Thu, 27 Sep 2018 17:23:22 -0700 Subject: [PATCH 1/3] feat: ember-cli support --- packages/import-utils/src/create-sandbox/templates.ts | 4 ++++ packages/types/index.d.ts | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/import-utils/src/create-sandbox/templates.ts b/packages/import-utils/src/create-sandbox/templates.ts index 06ec967f..c77f428a 100644 --- a/packages/import-utils/src/create-sandbox/templates.ts +++ b/packages/import-utils/src/create-sandbox/templates.ts @@ -90,6 +90,10 @@ export function getTemplate( return "apollo"; } + if (totalDependencies.indexOf("ember-cli") > -1) { + return "node"; + } + if (totalDependencies.indexOf("sapper") > -1) { return "sapper"; } diff --git a/packages/types/index.d.ts b/packages/types/index.d.ts index 4a5ce563..969303b7 100644 --- a/packages/types/index.d.ts +++ b/packages/types/index.d.ts @@ -36,7 +36,8 @@ export type ITemplate = | "next" | "reason" | "apollo" - | "sapper"; + | "sapper" + | "node"; export interface ISandbox { title: string; From 5eb76a9e93a55b95c1b45d5bd6b9c1b943a7b305 Mon Sep 17 00:00:00 2001 From: Mike North Date: Tue, 16 Oct 2018 14:42:45 -0700 Subject: [PATCH 2/3] Update templates.ts --- packages/import-utils/src/create-sandbox/templates.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/import-utils/src/create-sandbox/templates.ts b/packages/import-utils/src/create-sandbox/templates.ts index c77f428a..9eb8a6d0 100644 --- a/packages/import-utils/src/create-sandbox/templates.ts +++ b/packages/import-utils/src/create-sandbox/templates.ts @@ -91,7 +91,7 @@ export function getTemplate( } if (totalDependencies.indexOf("ember-cli") > -1) { - return "node"; + return "ember-cli"; } if (totalDependencies.indexOf("sapper") > -1) { From 6ca5107fe7277b8050b41db62a6a1e0a94faa13d Mon Sep 17 00:00:00 2001 From: Mike North Date: Tue, 16 Oct 2018 14:42:59 -0700 Subject: [PATCH 3/3] Update index.d.ts --- packages/types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/types/index.d.ts b/packages/types/index.d.ts index 969303b7..a3b125b5 100644 --- a/packages/types/index.d.ts +++ b/packages/types/index.d.ts @@ -37,7 +37,7 @@ export type ITemplate = | "reason" | "apollo" | "sapper" - | "node"; + | "ember-cli"; export interface ISandbox { title: string;