author | Michael Krelin <hacker@klever.net> | 2013-11-26 20:17:04 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2013-11-26 20:17:04 (UTC) |
commit | b59defff1efe85e43850243910007dd1fe3a4ef2 (patch) (side-by-side diff) | |
tree | ecc740ad1169dd50a50ba22a53179fcda963eaf0 /scripts/builder/backends/nodeBuilder.py | |
parent | 7759f50a024a3e450237c308562ae745c808d2e1 (diff) | |
download | clipperz-b59defff1efe85e43850243910007dd1fe3a4ef2.zip clipperz-b59defff1efe85e43850243910007dd1fe3a4ef2.tar.gz clipperz-b59defff1efe85e43850243910007dd1fe3a4ef2.tar.bz2 |
when copying node backend files skip htdocs and node_modules
both are used while debugging and don't have to break the build
Diffstat (limited to 'scripts/builder/backends/nodeBuilder.py') (more/less context) (ignore whitespace changes)
-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,17 +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')) + |