Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gulp-util #27

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

gulp-util #27

wants to merge 10 commits into from

Conversation

cwebba1
Copy link

@cwebba1 cwebba1 commented Mar 10, 2019

I am back to troubleshooting depreciated gulp-util and it appears in [email protected].
The warning points to https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5 with instructions to make a pull request here.

These are the instructions from the tutorial:

API replacements:
gutil.File => https://www.npmjs.com/package/vinyl
gutil.replaceExtension => The .extname property on Vinyl objects or https://www.npmjs.com/package/replace-ext
gutil.colors => https://www.npmjs.com/package/ansi-colors
gutil.date => https://www.npmjs.com/package/date-format
gutil.log => https://www.npmjs.com/package/fancy-log
gutil.template => https://www.npmjs.com/package/lodash.template
gutil.env => https://www.npmjs.com/package/minimist
gutil.beep => https://www.npmjs.com/package/beeper
gutil.noop => https://www.npmjs.com/package/through2
gutil.isStream => Use the .isStream() method on Vinyl objects
gutil.isBuffer => Use the .isBuffer() method on Vinyl objects
gutil.isNull => Use the .isNull() method on Vinyl objects
gutil.linefeed => Use the string '\n' in your code
gutil.combine => https://www.npmjs.com/package/multipipe
gutil.buffer => https://www.npmjs.com/package/list-stream
gutil.PluginError => https://www.npmjs.com/package/plugin-error

Can you point to any tutorials about how to proceed from here?

Jeremie Parker added 10 commits June 11, 2014 16:25
options.data can be a string or a boolean or undefined

if options.data is a string, it should represent a path to a folder
containing data files (json/yaml)

if options.data is set to TRUE, the compiler will look for json/yaml
files sharing the template files name at the same level.

if options.data is undefined or FALSE, no data file will be processed

---

partials and helpers parameters should be strings or array of strings
it should be path to folders containing partial files or helper file

helper file should contain only the logic and not be wrapped in
Handlebars.registerHelper() as the plugin does it for you.
@coryallegory
Copy link

This library seems to have gone quite some time without a release, but a rebase against the fork may go a long way to sprucing things up.

e.g. sindresorhus#42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants