Skip to content

Commit

Permalink
fix: build task fixes (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
korvin89 authored Jul 14, 2022
1 parent b848503 commit 2f13233
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
13 changes: 10 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']));
4 changes: 1 addition & 3 deletions src/styles/theme.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
@import './variables';

.#{$ns}-theme {
.chartkit-theme {
--scrollbar-width: var(--yc-scrollbar-width);

--tooltip-grid-line: var(--yc-color-line-generic);
Expand Down
1 change: 0 additions & 1 deletion src/styles/variables.scss

This file was deleted.

0 comments on commit 2f13233

Please sign in to comment.