I like the build system for coffeescript, less, etc. but my googlefu failed me when learning how to target a selector by file name instead of extension. Lots of SO answers and example build blog posts assume “selector”: “package.json” would work, but they don’t (I’m assuming because of the lack of the “source” string). Mainly, the examples half work, in that they set a “working_dir” which operates from the project folder, and ignores the automatic “selector” functionality.
Am I overlooking how to select on a file name?
I’d love to be able to use
{
"cmd": "node", "$file" ],
"selector": "app.js"
}
and
{
"cmd": "npm install" ],
"selector": "package.json"
}
without accidentally trying to build “other.js” or “random.json”