blob: ab43144174755b49e7ba43680ed72809026457b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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'))
|