# HG changeset patch # User Ludovic Chabant # Date 1516497324 28800 # Node ID 717ac3c4ee771ffecaafb173c90c8e693a446d78 # Parent 506a5cb1e94222d34a30975f608810969550970b bake: Fix where the Browserify processor outputs things. diff -r 506a5cb1e942 -r 717ac3c4ee77 piecrust/processing/browserify.py --- a/piecrust/processing/browserify.py Thu Jan 18 21:22:42 2018 -0800 +++ b/piecrust/processing/browserify.py Sat Jan 20 17:15:24 2018 -0800 @@ -15,7 +15,7 @@ def __init__(self): super(BrowserifyProcessor, self).__init__() self.priority = PRIORITY_FIRST - self.is_bypassing_structured_processing = True + self.is_delegating_dependency_check = False self._conf = None def initialize(self, app): @@ -36,9 +36,11 @@ def getDependencies(self, path): return FORCE_BUILD + def getOutputFilenames(self, filename): + return [filename] + def process(self, path, out_dir): - _, fname = os.path.split(path) - out_path = os.path.join(out_dir, fname) + out_path = os.path.join(out_dir, os.path.basename(path)) args = [self._conf['bin'], path, '-o', out_path] cwd = self.app.root_dir