remarkjs / gulp-remark Goto Github PK
View Code? Open in Web Editor NEWLegacy Gulp plugin for remark — please use npm scripts and the like
Home Page: https://remark.js.org
License: MIT License
Legacy Gulp plugin for remark — please use npm scripts and the like
Home Page: https://remark.js.org
License: MIT License
Run in gitlab CI, last version plugin, options standard (from example).
[10:52:19] Error: remark does not accept both files and stdin
at Ware.stdin (/tmp/wordpress/src/wp-content/themes/insteria/node_modules/gulp-remark/node_modules/remark/lib/cli/file-set-pipeline/stdin.js:50:19)
at Ware.<anonymous> (/tmp/wordpress/src/wp-content/themes/insteria/node_modules/gulp-remark/node_modules/remark/node_modules/ware/node_modules/wrap-fn/index.js:45:19)
at next (/tmp/wordpress/src/wp-content/themes/insteria/node_modules/gulp-remark/node_modules/remark/node_modules/ware/lib/index.js:85:20)
at /tmp/wordpress/src/wp-content/themes/insteria/node_modules/gulp-remark/node_modules/remark/node_modules/ware/node_modules/wrap-fn/index.js:121:18
at next (/tmp/wordpress/src/wp-content/themes/insteria/node_modules/gulp-remark/node_modules/remark/lib/cli/file-set-pipeline/file-system.js:44:13)
at /tmp/wordpress/src/wp-content/themes/insteria/node_modules/gulp-remark/node_modules/remark/lib/cli/ignore.js:185:13
at /tmp/wordpress/src/wp-content/themes/insteria/node_modules/gulp-remark/node_modules/remark/node_modules/vfile-find-up/index.js:207:17
at FSReqWrap.oncomplete (fs.js:82:15)
Branch | Build failing 🚨 |
---|---|
Dependency | babel-eslint |
Current Version | 7.2.0 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As babel-eslint is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.
I recommend you give this issue a high priority. I’m sure you can resolve this 💪
The new version differs by 6 commits .
3cda62e
7.2.1
5626de1
Remove left over eslint 2 estraverse code (#452)
b5fb53b
Fix type param and interface declaration scoping (#449)
f1cee0f
Remove lodash dependency (#450)
eb05812
Format non-regression errors for legibility (#451)
7972a05
Update README.md with codeFrame option (#448)
See the full diff.
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot 🌴
.pipe(gulpRemark({detectRC: false, frail: true}).use(gulpRemarkLint, config.options.remarkLint));
@denysdovhan
Always true
https://github.com/denysdovhan/gulp-remark/blob/master/index.js#L15
'use strict';
var options = require('../options');
var taskConfig = options.get('tasks.remarkLint');
if (!taskConfig.enable) {
return;
}
var gulp = require('gulp');
var gulpPlumber = require('gulp-plumber');
var gulpRemark = require('gulp-remark');
var gulpRemarkLint = require('remark-lint');
var definingConfiguration = require('../lib/defining-configuration');
function remarkLintTask() {
var config = this.config;
return gulp
.src(config.paths.src.globs, config.paths.src.options)
.pipe(gulpPlumber(config.options.plumber))
.pipe(gulpRemark({detectRC: false})/*.use(gulpRemarkLint, config.options.remarkLint)*/);
}
gulp.task('remarkLint', definingConfiguration(taskConfig, remarkLintTask));
module.exports = remarkLintTask;
{
"plugins": {
"lint": {
"external": [],
"reset": false,
"blockquote-indentation": 4,
"checkbox-character-style": {
"checked": "x",
"unchecked": " "
}
}
}
}
.remarkrc
loaded and runs all plugins.
remark().use(lint)
.remarkrc
"plugins": {
"lint": {
"list-item-indent": "space"
}
}
First use remark()
use .remarkrc
and run lint
plugin, second use
double run lint
plugin, but not get config file .remarkrc
latest
No response
Either we need to remove
Lines 9 to 10 in b856c01
detectConfig
to true.
https://github.com/unifiedjs/unified-engine-gulp#optionsdetectconfig
It should detect config if you don't have the same value as default rcName
of .remarkrc
for your config.
Custom config files with different names don't load
No response
No response
No response
No response
Gulp not exit with code > 0
'use strict';
var options = require('../options');
var taskConfig = options.get('tasks.remarkLint');
if (!taskConfig.enable) {
return;
}
var gulp = require('gulp');
var gulpPlumber = require('gulp-plumber');
var gulpRemark = require('gulp-remark');
var gulpRemarkLint = require('remark-lint');
var definingConfiguration = require('../lib/defining-configuration');
var path = require('path');
var fs = require('fs');
var remarkLintOptions = JSON.parse(fs.readFileSync(path.join(process.cwd(), '.remarkrc'), 'utf8'));
function remarkLintTask() {
var config = this.config;
return gulp
.src(config.paths.src.globs, config.paths.src.options)
.pipe(gulpPlumber(config.options.plumber))
.pipe(gulpRemark({detectRC: false, frail: true}).use(gulpRemarkLint, remarkLintOptions.plugins.lint));
}
gulp.task('remarkLint', definingConfiguration(taskConfig, remarkLintTask));
module.exports = remarkLintTask;
Output:
/some/path/to/README.md
27:3 warning Incorrect indentation before bullet: remove 2 spaces list-item-bullet-indent
27:3 warning Incorrect indentation before bullet: remove 2 spaces list-item-bullet-indent
⚠ 2 warnings
[18:45:21] Finished 'remarkLint' after 7.03 s
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.