From 15653d3e2a07fad56a45c5bf064c7b435988db5b Mon Sep 17 00:00:00 2001 From: Charles Barnes Date: Sat, 23 Mar 2019 22:03:23 -0500 Subject: [PATCH] fix(demo): remove angular-cli json file and add it in typescript --- demo/assets/stackblitz/.angular-cli.json | 7 ------- .../src/_shared/stackblitz/stackblitz-writer.ts | 7 ++++++- 2 files changed, 6 insertions(+), 8 deletions(-) delete mode 100644 demo/assets/stackblitz/.angular-cli.json diff --git a/demo/assets/stackblitz/.angular-cli.json b/demo/assets/stackblitz/.angular-cli.json deleted file mode 100644 index a8e7a5163..000000000 --- a/demo/assets/stackblitz/.angular-cli.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "apps": [ - { - "styles": ["styles.scss"] - } - ] -} diff --git a/projects/novo-examples/src/_shared/stackblitz/stackblitz-writer.ts b/projects/novo-examples/src/_shared/stackblitz/stackblitz-writer.ts index 20d552b66..54e4dcab2 100644 --- a/projects/novo-examples/src/_shared/stackblitz/stackblitz-writer.ts +++ b/projects/novo-examples/src/_shared/stackblitz/stackblitz-writer.ts @@ -9,7 +9,7 @@ const COPYRIGHT = `Copyright 2018 Bullhorn Inc. All Rights Reserved. can be found in the LICENSE file at http://angular.io/license`; const TEMPLATE_PATH = './assets/stackblitz/'; -const TEMPLATE_FILES = ['index.html', 'styles.scss', 'polyfills.ts', '.angular-cli.json', 'main.ts']; +const TEMPLATE_FILES = ['index.html', 'styles.scss', 'polyfills.ts', 'main.ts']; const TAGS: string[] = ['angular', 'bullhon', 'novo-elements', 'example']; const angularVersion = '^7.2.0'; @@ -99,6 +99,11 @@ export class StackblitzWriter { this._addFileToForm(form, data, decodeURIComponent(data.source.cssSource), `app/${data.selectorName}.css`, TEMPLATE_PATH), ), ); + exampleContents.push( + Promise.resolve( + this._addFileToForm(form, data, JSON.stringify({ apps: [{ styles: ['styles.scss'] }] }), `.angular-cli.json`, TEMPLATE_PATH), + ), + ); // // TODO(josephperrott): Prevent including assets to be manually checked. // if (data.selectorName === 'icon-svg-example') {