-rwxr-xr-x | scripts/builder/backends/nodeBuilder.py | 7 |
1 files changed, 7 insertions, 0 deletions
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 @@ -1,10 +1,11 @@ #!/usr/bin/env python # -*- coding: UTF-8 -*- import os +import shutil from scriptLanguageBuilder import ScriptLanguageBuilder class NodeBuilder(ScriptLanguageBuilder): def name(self): return "Node builder" @@ -12,6 +13,12 @@ class NodeBuilder(ScriptLanguageBuilder): def relativePath(self): return 'node' 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')) + |