changeset 1041:717ac3c4ee77

bake: Fix where the Browserify processor outputs things.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 20 Jan 2018 17:15:24 -0800
parents 506a5cb1e942
children 895f49c9833d
files piecrust/processing/browserify.py
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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