From b59defff1efe85e43850243910007dd1fe3a4ef2 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Tue, 26 Nov 2013 20:17:04 +0000 Subject: when copying node backend files skip htdocs and node_modules both are used while debugging and don't have to break the build --- (limited to 'scripts') diff --git a/scripts/builder/backends/nodeBuilder.py b/scripts/builder/backends/nodeBuilder.py index 783746e..ab43144 100755 --- a/scripts/builder/backends/nodeBuilder.py +++ b/scripts/builder/backends/nodeBuilder.py @@ -2,6 +2,7 @@ # -*- coding: UTF-8 -*- import os +import shutil from scriptLanguageBuilder import ScriptLanguageBuilder class NodeBuilder(ScriptLanguageBuilder): @@ -15,3 +16,9 @@ class NodeBuilder(ScriptLanguageBuilder): def frontEndTempFolder (self): return os.path.join(self.tempFolder(),'htdocs') + def compileCode (self): + src = self.sourceFolder() + dst = self.tempFolder() + + shutil.copytree(src, dst, ignore = shutil.ignore_patterns('htdocs','node_modules')) + -- cgit v0.9.0.2