password-manager/scripts/builder/frontends/deltaBuilder.py
Giulio Cesare Solaroli 1180b7b195 Updated /delta
Switched from less to scss. Still no build script to update the final CSS, though.
Added preliminary support for storing account data on browser's local storage for offline viewing. No public backend currently support this feature.
2013-10-02 09:59:30 +02:00

23 lines
619 B
Python

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 ""