Exemple #1
0
def pack(args):
    " Pack files. "
    from zetalibrary.packer import Packer

    args = parse_config(args)
    for path in gen_files(args.source, prefix=args.prefix):
        Packer(path, args).pack()
Exemple #2
0
 def test_route(self):
     css_file = op.join(self.folder, 'main.css')
     js_file = op.join(self.folder, 'main.js')
     result = list(gen_files(self.folder))
     self.assertTrue(css_file in result)
     self.assertTrue(js_file in result)
Exemple #3
0
 def test_route(self):
     css_file = op.join(self.folder, 'main.css')
     js_file = op.join(self.folder, 'main.js')
     result = list(gen_files(self.folder))
     self.assertTrue(css_file in result)
     self.assertTrue(js_file in result)