From bcfe3d4f277b5d87e5c3fd56479e07f194a37144 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Fri, 22 Nov 2013 17:05:41 +0000 Subject: nodejs+postgresql backend --- (limited to 'scripts') 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,11 +1,15 @@ #!/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() -- cgit v0.9.0.2