dotcore64 / gulp-xml-transformer Goto Github PK
View Code? Open in Web Editor NEWGulp plugin for transforming xml content
License: MIT License
Gulp plugin for transforming xml content
License: MIT License
Currently I am trying to use this as part of a build script where I want to basically read some environmental config files and for any correlating appSetting
or connectionString
nodes in a web/app.config
file replace them.
The problem is there will probably be a lot of environmental variables which are not going to be in the web.config files and currently it reports an error that it cannot find the path, so is there a way for me to build all possible paths but indicate that if it doesn't find a match just skip it and continue?
== Edit
It seems like https://github.com/perrin4869/gulp-xml-transformer/blob/master/src/transformers.js#L21 could be updated in some way to basically check for an isRequired
property or something, but let me know your thoughts on it.
So I have a weird scenario where I need to:
Problem is I will have a stream which will contain a myriad of files with only some being XML, so is there a way to be able to infer to it a filter of files to process, or some way for it to just bypass any non xml files in the stream?
as libxmljs seems to be pretty dead, would it be possible to replace it with libxmljs2?
Please replace gulp-util with the following 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
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.