diff --git a/gulpfile.js b/gulpfile.js index dac2011f..a0193d39 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -34,17 +34,24 @@ task('copy-js-declarations', () => { return src(['src/**/*.d.ts']).pipe(dest(path.resolve(BUILD_DIR))); }); +task('copy-i18n', () => { + return src(['src/**/*.json']).pipe(dest(path.resolve(BUILD_DIR))); +}); + task('styles-components', () => { - return src('src/components/**/*.scss') + return src('src/**/*.scss') .pipe( sass({ includePaths: ['node_modules'], }), ) .pipe(sass().on('error', sass.logError)) - .pipe(dest(path.resolve(BUILD_DIR, 'components'))); + .pipe(dest(path.resolve(BUILD_DIR))); }); -task('build', series(['clean', 'compile-to-esm', 'copy-js-declarations', 'styles-components'])); +task( + 'build', + series(['clean', 'compile-to-esm', 'copy-js-declarations', 'copy-i18n', 'styles-components']), +); task('default', series(['build'])); diff --git a/src/styles/theme.scss b/src/styles/theme.scss index 259cab79..07553069 100644 --- a/src/styles/theme.scss +++ b/src/styles/theme.scss @@ -1,6 +1,4 @@ -@import './variables'; - -.#{$ns}-theme { +.chartkit-theme { --scrollbar-width: var(--yc-scrollbar-width); --tooltip-grid-line: var(--yc-color-line-generic); diff --git a/src/styles/variables.scss b/src/styles/variables.scss deleted file mode 100644 index 5ce8ed8e..00000000 --- a/src/styles/variables.scss +++ /dev/null @@ -1 +0,0 @@ -$ns: 'chartkit';