2013-08-30 17:56:53 +02:00
|
|
|
from frontendBuilder import FrontendBuilder
|
|
|
|
import shutil
|
|
|
|
|
|
|
|
class DeltaBuilder(FrontendBuilder):
|
|
|
|
|
|
|
|
def name(self):
|
|
|
|
return "/delta builder"
|
|
|
|
|
|
|
|
def projectResourceTypes (self):
|
|
|
|
return ['js', 'css']
|
|
|
|
|
|
|
|
def copyStaticResources (self, targetFolder):
|
2013-10-02 09:59:30 +02:00
|
|
|
resourcesToCopy = [
|
|
|
|
{'folder': 'properties', 'source': 'manifest.appcache', 'target': 'manifest.appcache'}
|
|
|
|
]
|
|
|
|
|
|
|
|
for resource in resourcesToCopy:
|
|
|
|
src = self.absolutePathForSourceFile(resource['folder'], resource['source'])
|
|
|
|
dst = self.absolutePathForTargetFile(targetFolder, '', resource['target'])
|
|
|
|
shutil.copy2(src, dst)
|
2013-08-30 17:56:53 +02:00
|
|
|
|
|
|
|
def bookmarklet (self):
|
|
|
|
return ""
|