-rwxr-xr-x | scripts/builder/backends/nodeBuilder.py | 24 | ||||
-rw-r--r-- | scripts/builder/backends/scriptLanguageBuilder.py | 1 |
2 files changed, 25 insertions, 0 deletions
diff --git a/scripts/builder/backends/nodeBuilder.py b/scripts/builder/backends/nodeBuilder.py new file mode 100755 index 0000000..ab43144 --- a/dev/null +++ b/scripts/builder/backends/nodeBuilder.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python +# -*- coding: UTF-8 -*- + +import os +import shutil +from scriptLanguageBuilder import ScriptLanguageBuilder + +class NodeBuilder(ScriptLanguageBuilder): + + def name(self): + return "Node builder" + + 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')) + diff --git a/scripts/builder/backends/scriptLanguageBuilder.py b/scripts/builder/backends/scriptLanguageBuilder.py index 7d5b31c..fb8e609 100644 --- a/scripts/builder/backends/scriptLanguageBuilder.py +++ b/scripts/builder/backends/scriptLanguageBuilder.py @@ -2,4 +2,5 @@ # -*- coding: UTF-8 -*- +import os import shutil from backendBuilder import BackendBuilder |