summaryrefslogtreecommitdiff
path: root/scripts/builder
Side-by-side diff
Diffstat (limited to 'scripts/builder') (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/builder/backends/nodeBuilder.py13
-rw-r--r--scripts/builder/backends/scriptLanguageBuilder.py4
2 files changed, 17 insertions, 0 deletions
diff --git a/scripts/builder/backends/nodeBuilder.py b/scripts/builder/backends/nodeBuilder.py
new file mode 100755
index 0000000..bb63204
--- a/dev/null
+++ b/scripts/builder/backends/nodeBuilder.py
@@ -0,0 +1,13 @@
+#!/usr/bin/env python
+# -*- coding: UTF-8 -*-
+
+from scriptLanguageBuilder import ScriptLanguageBuilder
+
+class NodeBuilder(ScriptLanguageBuilder):
+
+ def name(self):
+ return "Node builder"
+
+
+ def relativePath(self):
+ return 'node'
diff --git a/scripts/builder/backends/scriptLanguageBuilder.py b/scripts/builder/backends/scriptLanguageBuilder.py
index 7d5b31c..f2d32ba 100644
--- a/scripts/builder/backends/scriptLanguageBuilder.py
+++ b/scripts/builder/backends/scriptLanguageBuilder.py
@@ -1,20 +1,24 @@
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
+import os
import shutil
from backendBuilder import BackendBuilder
class ScriptLanguageBuilder(BackendBuilder):
+ def frontEndTempFolder (self):
+ return os.path.join(self.tempFolder(),'htdocs')
+
def compileCode (self):
src = self.sourceFolder()
dst = self.tempFolder()
shutil.copytree(src, dst)
def createPackage (self):
src = self.tempFolder()
dst = self.targetFolder()
shutil.copytree(src, dst)