Skip to content

Commit

Permalink
fix: fix some tasks not converting all schemes to .yml files
Browse files Browse the repository at this point in the history
  • Loading branch information
zpreston123 committed Jan 12, 2018
1 parent 63ba2af commit 364c912
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .gulp/tasks/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ gulp.task('clean:themes', function() {
});

gulp.task('clean:schemes', function() {
return del([`${paths.schemes}/*.tmTheme`, `${paths.schemes}/*.YAML-tmTheme`]);
return del([`${paths.schemes}/*.tmTheme`, `${paths.schemes}/*.yml`]);
});

gulp.task('clean:widgets', function() {
return del([`${paths.widgets}/*.stTheme`, `${paths.widgets}/*.sublime-settings`]);
});

gulp.task('clean:extras', function() {
return del([`${paths.extras}/**/*.hidden-tmTheme`, `${paths.extras}/**/*.YAML-tmTheme`]);
return del([`${paths.extras}/**/*.hidden-tmTheme`, `${paths.extras}/**/*.yml`]);
});
4 changes: 2 additions & 2 deletions .gulp/tasks/extras.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ gulp.task('process:extras', () => {
.pipe($.flatmap( (stream, file) => {
var basename = path.basename(file.path, path.extname(file.path));

return gulp.src(`${paths.src}/extras/**/*.YAML-tmTheme`)
return gulp.src(`${paths.src}/extras/**/*.yml`)
.pipe($.data( () => {
var specific = require(file.path);

Expand All @@ -34,7 +34,7 @@ gulp.task('process:extras', () => {
});

gulp.task('convert:extras', () => {
return gulp.src(`${paths.extras}/**/*.YAML-tmTheme`)
return gulp.src(`${paths.extras}/**/*.yml`)
.pipe($.flatmap( (stream) => {
return stream
.pipe($.plumber( (error) => {
Expand Down
4 changes: 2 additions & 2 deletions .gulp/tasks/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import paths from '../paths';

gulp.task('watch', ['build'], () => {
gulp.watch(`${paths.src}/themes/**/*.json`, ['build:themes']);
gulp.watch(`${paths.src}/schemes/scheme.YAML-tmTheme`, ['build:schemes']);
gulp.watch(`${paths.src}/extras/**/*.YAML-tmTheme`, ['build:extras']);
gulp.watch(`${paths.src}/schemes/scheme.yml`, ['build:schemes']);
gulp.watch(`${paths.src}/extras/**/*.yml`, ['build:extras']);
gulp.watch(`${paths.src}/widgets/widget.*`, ['build:widgets']);
gulp.watch(`${paths.src}/settings/**/*.json`, ['build:schemes', 'build:widgets', 'build:themes']);
gulp.watch("gulpfile.babel.js").on("change", () => process.exit(0));
Expand Down

0 comments on commit 364c912

Please sign in to comment.