forked from Sunbird-Ed/sunbird-ui-components
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #SB-13915 task: Dynamic Card component
- Loading branch information
Lakhan Mandloi
committed
Aug 28, 2019
1 parent
2a15511
commit 7908166
Showing
285 changed files
with
44,880 additions
and
393 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,7 @@ | |
"peerDependencies": { | ||
"@angular/common": "^7.2.0", | ||
"@angular/core": "^7.2.0" | ||
}, | ||
"devDependencies": { | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
sb-ui-components-app/projects/sb-ui-components/scripts/css-bundle.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { relative } from 'path'; | ||
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']); | ||
|
||
if (imports) { | ||
const cwd = process.cwd(); | ||
|
||
const filesNotFound = imports | ||
.filter(x => !x.found) | ||
.map(x => relative(cwd, x.filePath)); | ||
|
||
if (filesNotFound.length) { | ||
console.error(`SCSS imports failed \n\n${filesNotFound.join('\n - ')}\n`); | ||
throw new Error('One or more SCSS imports failed'); | ||
} | ||
} | ||
|
||
if (found) { | ||
await writeFile('../dist/lib/styles/sunbird/_styles.scss', bundledContent); | ||
} | ||
} | ||
|
||
bundleScss(); |
20 changes: 20 additions & 0 deletions
20
sb-ui-components-app/projects/sb-ui-components/src/lib/styles/bootstrap-4.3.1/.babelrc.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module.exports = { | ||
presets: [ | ||
[ | ||
'@babel/env', | ||
{ | ||
loose: true, | ||
modules: false, | ||
exclude: ['transform-typeof-symbol'] | ||
} | ||
] | ||
], | ||
plugins: [ | ||
'@babel/plugin-proposal-object-rest-spread' | ||
], | ||
env: { | ||
test: { | ||
plugins: [ 'istanbul' ] | ||
} | ||
} | ||
}; |
13 changes: 13 additions & 0 deletions
13
...i-components-app/projects/sb-ui-components/src/lib/styles/bootstrap-4.3.1/.browserslistrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# https://github.com/browserslist/browserslist#readme | ||
|
||
>= 1% | ||
last 1 major version | ||
not dead | ||
Chrome >= 45 | ||
Firefox >= 38 | ||
Edge >= 12 | ||
Explorer >= 10 | ||
iOS >= 9 | ||
Safari >= 9 | ||
Android >= 4.4 | ||
Opera >= 30 |
Oops, something went wrong.