Skip to content

Commit

Permalink
feat: ember-cli support
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-north committed Sep 28, 2018
1 parent 079f952 commit 7cc4d13
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions packages/import-utils/src/create-sandbox/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ export function getMainFile(template: ITemplate) {
return "src/pages/index.js";
}

if (template === "ember-cli") {
// Wildcard, because ember-cli is not specific on this
return "package.json";
}

if (template === "nuxt") {
// Wildcard, because nuxt is not specific on this
return "package.json";
Expand Down Expand Up @@ -90,6 +95,10 @@ export function getTemplate(
return "apollo";
}

if (totalDependencies.indexOf("ember-cli") > -1) {
return "ember-cli";
}

if (totalDependencies.indexOf("sapper") > -1) {
return "sapper";
}
Expand Down
3 changes: 2 additions & 1 deletion packages/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export type ITemplate =
| "next"
| "reason"
| "apollo"
| "sapper";
| "sapper"
| "ember-cli";

export interface ISandbox {
title: string;
Expand Down

0 comments on commit 7cc4d13

Please sign in to comment.