-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 @@ | |||
1 | #!/usr/bin/env python | 1 | #!/usr/bin/env python |
2 | # -*- coding: UTF-8 -*- | 2 | # -*- coding: UTF-8 -*- |
3 | 3 | ||
4 | import os | 4 | import os |
5 | import shutil | ||
5 | from scriptLanguageBuilder import ScriptLanguageBuilder | 6 | from scriptLanguageBuilder import ScriptLanguageBuilder |
6 | 7 | ||
7 | class NodeBuilder(ScriptLanguageBuilder): | 8 | class NodeBuilder(ScriptLanguageBuilder): |
8 | 9 | ||
9 | def name(self): | 10 | def name(self): |
10 | return "Node builder" | 11 | return "Node builder" |
@@ -12,6 +13,12 @@ class NodeBuilder(ScriptLanguageBuilder): | |||
12 | def relativePath(self): | 13 | def relativePath(self): |
13 | return 'node' | 14 | return 'node' |
14 | 15 | ||
15 | def frontEndTempFolder (self): | 16 | def frontEndTempFolder (self): |
16 | return os.path.join(self.tempFolder(),'htdocs') | 17 | return os.path.join(self.tempFolder(),'htdocs') |
17 | 18 | ||
19 | def compileCode (self): | ||
20 | src = self.sourceFolder() | ||
21 | dst = self.tempFolder() | ||
22 | |||
23 | shutil.copytree(src, dst, ignore = shutil.ignore_patterns('htdocs','node_modules')) | ||
24 | |||