From 70541abc1dac25c9bf9f9c47309b1b2a467dcb8c Mon Sep 17 00:00:00 2001 From: Lakhan Mandloi Date: Wed, 28 Aug 2019 12:27:17 +0530 Subject: [PATCH] Issue #SB-13915 task: Dynamic Card component --- .../projects/sb-ui-components/scripts/css-bundle.ts | 5 ++--- .../projects/sb-ui-components/src/lib/styles/_styles.scss | 8 ++++++++ .../sb-ui-components/src/lib/styles/sunbird/_styles.scss | 8 -------- 3 files changed, 10 insertions(+), 11 deletions(-) create mode 100644 sb-ui-components-app/projects/sb-ui-components/src/lib/styles/_styles.scss delete mode 100644 sb-ui-components-app/projects/sb-ui-components/src/lib/styles/sunbird/_styles.scss diff --git a/sb-ui-components-app/projects/sb-ui-components/scripts/css-bundle.ts b/sb-ui-components-app/projects/sb-ui-components/scripts/css-bundle.ts index 71138dd..8ff3a32 100644 --- a/sb-ui-components-app/projects/sb-ui-components/scripts/css-bundle.ts +++ b/sb-ui-components-app/projects/sb-ui-components/scripts/css-bundle.ts @@ -3,10 +3,9 @@ import { Bundler } from 'scss-bundle'; import { writeFile } from 'fs-extra'; /** Bundles all SCSS files into a single file */ -console.log('Hii'); async function bundleScss() { const { found, bundledContent, imports } = await new Bundler() - .bundle('../src/lib/styles/sunbird/_styles.scss', ['../src/lib/styles/**/*.scss']); + .bundle('./projects/sb-ui-components/src/lib/styles/_styles.scss', ['./projects/sb-ui-components/src/lib/styles/**/*.scss']); if (imports) { const cwd = process.cwd(); @@ -22,7 +21,7 @@ async function bundleScss() { } if (found) { - await writeFile('../dist/lib/styles/sunbird/_styles.scss', bundledContent); + await writeFile('./dist/sb-ui-components/lib/styles.scss', bundledContent); } } diff --git a/sb-ui-components-app/projects/sb-ui-components/src/lib/styles/_styles.scss b/sb-ui-components-app/projects/sb-ui-components/src/lib/styles/_styles.scss new file mode 100644 index 0000000..b639d7e --- /dev/null +++ b/sb-ui-components-app/projects/sb-ui-components/src/lib/styles/_styles.scss @@ -0,0 +1,8 @@ +@import "./sunbird/inlinefonts/fonts"; +@import "./sunbird/variables"; +@import "./sunbird/mixins/mixins"; +@import "./sunbird/base/base"; +@import "./sunbird/layout/layout"; +@import "./sunbird/pages/pages"; +@import "./sunbird/global"; + diff --git a/sb-ui-components-app/projects/sb-ui-components/src/lib/styles/sunbird/_styles.scss b/sb-ui-components-app/projects/sb-ui-components/src/lib/styles/sunbird/_styles.scss deleted file mode 100644 index 3872351..0000000 --- a/sb-ui-components-app/projects/sb-ui-components/src/lib/styles/sunbird/_styles.scss +++ /dev/null @@ -1,8 +0,0 @@ -@import "./inlinefonts/fonts"; -@import "./variables"; -@import "./mixins/mixins"; -@import "./base/base"; -@import "./layout/layout"; -@import "./pages/pages"; -@import "./global"; -