Closed lukehorvat closed 9 years ago
This is a great idea, and you are right, this is a potential use for the plugin.
It would be way better if we could automatically detect the use case, I would like the plugin to act smart but allow you to force the functionality with an option.
@guzart Any news on this?
For those who need this right away I have implemented this in https://www.npmjs.com/package/gulp-ng-constant-fork
@lukehorvat thank you for the PR, out in the wild on 0.3.0
It seems to me that this gulp plugin should be completely usable without a physical file to source the constants from, because you can pass an object via the
constants
option. But the current setup doesn't really allow it.I've added a
noFile
option that allows the plugin to act as a vinyl adapter, meaning it can be used in place ofgulp.src
. For example:The default outputted filename will be
constants.js
.