add gulp task for less compilation
This commit is contained in:
parent
5415a0e033
commit
f41fdef389
|
@ -2,6 +2,8 @@ Thumbs.db
|
|||
/deploy.exclude
|
||||
/deploy.sh
|
||||
/messages.mo
|
||||
/node_modules
|
||||
/package-lock.json
|
||||
*~
|
||||
*.DS_Store
|
||||
#*
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"type": "gulp",
|
||||
"task": "default",
|
||||
"problemMatcher": [],
|
||||
"label": "gulp: default"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -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();
|
||||
})
|
||||
);
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -1882,4 +1882,3 @@ body.ttrss_main.ttrss_index.flat .post .header .title,
|
|||
body.ttrss_main.ttrss_index.flat .cdm .title {
|
||||
font-size: 13px ! important;
|
||||
}
|
||||
/*# sourceMappingURL=compact.css.map */
|
File diff suppressed because one or more lines are too long
|
@ -2117,4 +2117,3 @@ body.ttrss_main.ttrss_index.flat .post .header .title,
|
|||
body.ttrss_main.ttrss_index.flat .cdm .title {
|
||||
font-size: 13px ! important;
|
||||
}
|
||||
/*# sourceMappingURL=compact_night.css.map */
|
File diff suppressed because one or more lines are too long
|
@ -1863,4 +1863,3 @@ body.ttrss_zoom div.post div.content pre {
|
|||
max-width: 98%;
|
||||
overflow: auto;
|
||||
}
|
||||
/*# sourceMappingURL=light.css.map */
|
File diff suppressed because one or more lines are too long
|
@ -2099,4 +2099,3 @@ body.flat.ttrss_main #filterNewRuleDlg .dijitValidationTextAreaError {
|
|||
body.flat.ttrss_main #filterNewRuleDlg .dijitValidationTextArea:not(.dijitValidationTextAreaError) {
|
||||
background: #305030;
|
||||
}
|
||||
/*# sourceMappingURL=night.css.map */
|
File diff suppressed because one or more lines are too long
|
@ -2099,4 +2099,3 @@ body.flat.ttrss_main #filterNewRuleDlg .dijitValidationTextAreaError {
|
|||
body.flat.ttrss_main #filterNewRuleDlg .dijitValidationTextArea:not(.dijitValidationTextAreaError) {
|
||||
background: #305030;
|
||||
}
|
||||
/*# sourceMappingURL=night_blue.css.map */
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue