add gulp task for less compilation

This commit is contained in:
Andrew Dolgov 2020-09-17 13:30:52 +03:00
parent 5415a0e033
commit f41fdef389
14 changed files with 47 additions and 10 deletions

2
.gitignore vendored
View File

@ -2,6 +2,8 @@ Thumbs.db
/deploy.exclude /deploy.exclude
/deploy.sh /deploy.sh
/messages.mo /messages.mo
/node_modules
/package-lock.json
*~ *~
*.DS_Store *.DS_Store
#* #*

11
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,11 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "gulp",
"task": "default",
"problemMatcher": [],
"label": "gulp: default"
}
]
}

24
gulpfile.js Normal file
View File

@ -0,0 +1,24 @@
// Less configuration
const gulp = require('gulp');
const less = require('gulp-less');
gulp.task('less', function(cb) {
gulp
.src(['themes/compact.less', 'themes/compact_night.less',
'themes/light.less', 'themes/night_blue.less', 'themes/night.less'])
.pipe(less())
.pipe(
gulp.dest(function(f) {
return f.base;
})
);
cb();
});
gulp.task(
'default',
gulp.series('less', function(cb) {
gulp.watch(['themes/*.less', 'themes/*/*.less'], gulp.series('less'));
cb();
})
);

10
package.json Normal file
View File

@ -0,0 +1,10 @@
{
"name": "tt-rss",
"version": "1.0.0",
"description": "",
"devDependencies": {
"gulp": "^4.0.2",
"gulp-less": "^4.0.1",
"lessc": "^1.0.2"
}
}

View File

@ -1882,4 +1882,3 @@ body.ttrss_main.ttrss_index.flat .post .header .title,
body.ttrss_main.ttrss_index.flat .cdm .title { body.ttrss_main.ttrss_index.flat .cdm .title {
font-size: 13px ! important; font-size: 13px ! important;
} }
/*# sourceMappingURL=compact.css.map */

File diff suppressed because one or more lines are too long

View File

@ -2117,4 +2117,3 @@ body.ttrss_main.ttrss_index.flat .post .header .title,
body.ttrss_main.ttrss_index.flat .cdm .title { body.ttrss_main.ttrss_index.flat .cdm .title {
font-size: 13px ! important; font-size: 13px ! important;
} }
/*# sourceMappingURL=compact_night.css.map */

File diff suppressed because one or more lines are too long

View File

@ -1863,4 +1863,3 @@ body.ttrss_zoom div.post div.content pre {
max-width: 98%; max-width: 98%;
overflow: auto; overflow: auto;
} }
/*# sourceMappingURL=light.css.map */

File diff suppressed because one or more lines are too long

View File

@ -2099,4 +2099,3 @@ body.flat.ttrss_main #filterNewRuleDlg .dijitValidationTextAreaError {
body.flat.ttrss_main #filterNewRuleDlg .dijitValidationTextArea:not(.dijitValidationTextAreaError) { body.flat.ttrss_main #filterNewRuleDlg .dijitValidationTextArea:not(.dijitValidationTextAreaError) {
background: #305030; background: #305030;
} }
/*# sourceMappingURL=night.css.map */

File diff suppressed because one or more lines are too long

View File

@ -2099,4 +2099,3 @@ body.flat.ttrss_main #filterNewRuleDlg .dijitValidationTextAreaError {
body.flat.ttrss_main #filterNewRuleDlg .dijitValidationTextArea:not(.dijitValidationTextAreaError) { body.flat.ttrss_main #filterNewRuleDlg .dijitValidationTextArea:not(.dijitValidationTextAreaError) {
background: #305030; background: #305030;
} }
/*# sourceMappingURL=night_blue.css.map */

File diff suppressed because one or more lines are too long