Skip to content

Commit 0795bb3

Browse files
fix warnings, silence bootstrap-origin warnings
1 parent 5a20187 commit 0795bb3

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

packages/devextreme-scss/build/gulp-data-uri.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const handler = (_, svgEncoding, fileName) => {
2727
};
2828

2929
const sassFunction = (args) => {
30-
debugger;
3130
const getTextFromSass = (sassValue) => sassValue.assertString().text;
3231
const argList = args[0].asList;
3332
const hasEncoding = argList.size === 2;

packages/devextreme-themebuilder/src/modules/bootstrap-extractor.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ export default class BootstrapExtractor {
4343

4444
static async sassRender(input: string): Promise<string> {
4545
return new Promise((resolve, reject) => {
46-
sass.compileStringAsync(input)
46+
sass.compileStringAsync(input, {
47+
silenceDeprecations: ['color-functions', 'global-builtin', 'import'],
48+
})
4749
.then((data) => resolve(data.css.toString()))
4850
.catch((error: sass.Exception) => reject(error.message));
4951
});

packages/devextreme-themebuilder/src/modules/parse-value.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ export const color = (value: sass.SassColor): string => {
88
return 'transparent';
99
}
1010

11-
const hexRed = getHex(value.red);
12-
const hexGreen = getHex(value.green);
13-
const hexBlue = getHex(value.blue);
11+
const hexRed = getHex(value.channel('red'));
12+
const hexGreen = getHex(value.channel('green'));
13+
const hexBlue = getHex(value.channel('blue'));
1414
const hexAlpha = alpha === 255 ? '' : getHex(alpha);
1515

1616
return `#${hexRed}${hexGreen}${hexBlue}${hexAlpha}`;
@@ -59,7 +59,6 @@ export const parseString = (str: string): sass.Value => {
5959
});
6060
// eslint-disable-next-line @typescript-eslint/no-unused-vars
6161
} catch (e) {
62-
// debugger;
6362
return new sass.SassString(str);
6463
}
6564

packages/devextreme-themebuilder/tests/modules/builder.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ describe('Builder integration tests', () => {
107107
});
108108
}, buildTimeout);
109109

110-
test('Theme built without parameters is the same that in distribution (generic)', async () => {
110+
test.only('Theme built without parameters is the same that in distribution (generic)', async () => {
111111
const config: ConfigSettings = {
112112
command: commands.BUILD_THEME,
113113
outputColorScheme: 'custom-scheme',

0 commit comments

Comments
 (0)