Skip to content

Commit

Permalink
Update for unified-engine@3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Feb 24, 2017
1 parent 6a76924 commit 3636fac
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 17 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ function gulpEngine(configuration) {
function plugin(options) {
var fileStream;
var config = xtend(options, configuration, {
injectedPlugins: [],
plugins: [],
silentlyIgnore: true,
alwaysStringify: true,
output: false
});

/* Prevent some settings from being configured. */
config.cwd = config.globs = config.extensions = undefined;
config.cwd = config.files = config.extensions = undefined;
config.out = config.streamIn = config.streamOut = undefined;

/* Handle virtual files. */
Expand All @@ -55,7 +55,7 @@ function gulpEngine(configuration) {

/* Inject plug-ins. See: https://github.com/wooorm/unified-engine. */
function use() {
config.injectedPlugins.push([].slice.call(arguments));
config.plugins.push([].slice.call(arguments));
return fileStream;
}
}
Expand Down
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@
"convert-vinyl-to-vfile": "^1.0.0",
"gulp-util": "^3.0.7",
"through2": "^2.0.1",
"unified-engine": "^2.0.0",
"unified-engine": "^3.0.2",
"xtend": "^4.0.1"
},
"devDependencies": {
"nyc": "^10.0.0",
"remark": "^6.0.0",
"remark-cli": "^2.0.0",
"remark-html": "^5.0.0",
"remark-preset-wooorm": "^1.0.0",
"remark": "^7.0.0",
"remark-cli": "^3.0.0",
"remark-html": "^6.0.0",
"remark-preset-wooorm": "^2.0.0",
"tape": "^4.6.0",
"xo": "^0.17.0"
},
"scripts": {
"build": "remark *.md --quiet --frail",
"build": "remark *.md -qfo",
"lint": "xo",
"test-api": "node test",
"test-coverage": "nyc --reporter lcov tape test",
Expand All @@ -50,7 +50,6 @@
"branches": 100
},
"remarkConfig": {
"output": true,
"presets": "wooorm"
"plugins": ["preset-wooorm"]
}
}
4 changes: 0 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,6 @@ There’s also a `fileStream.use()` function, which mimics
[`unified.use()`][use] in that it accepts a plug-in and configuration.
It returns the operated on `fileStream`.

> **Note:** Be careful not to pass plug-ins which are also detected
> (for example, from configuration files), as this results in the
> same plug-in being attached multiple times.
## License

[MIT][license] © [Titus Wormer][author]
Expand Down
3 changes: 1 addition & 2 deletions test/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ module.exports = engine({
rcName: '.remarkrc',
packageField: 'remarkConfig',
ignoreName: '.remarkignore',
pluginPrefix: 'remark',
presetPrefix: 'remark-preset'
pluginPrefix: 'remark'
});

0 comments on commit 3636fac

Please sign in to comment.