summaryrefslogtreecommitdiff
path: root/scripts/builder/frontends/deltaBuilder.py
blob: 17ac941b9a113d45f4e9036ba4a7d17f7726822c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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):
		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)

	def bookmarklet (self):
		return ""