Index: buildhelpers/configure
===================================================================
--- buildhelpers/configure	(revision dae7d73e225ed8d97f577744bac5b6f68e4f0af9)
+++ buildhelpers/configure	(revision ce5244ebeeb207c49887709cb343888ee6b8e76f)
@@ -11,5 +11,5 @@
 CURRENT_DIR = Path(os.path.dirname(__file__))
 SRC = CURRENT_DIR.joinpath('../src/gnuboat')
-SRC_GEN = CURRENT_DIR.joinpath('../src/gnuboat/')
+SRC_GEN = CURRENT_DIR.joinpath('../src')
 APIS_DIR = CURRENT_DIR.joinpath('../apis')
 version_file = open(CURRENT_DIR.joinpath('../VERSION').resolve(), 'r')
@@ -51,15 +51,17 @@
     Package('mapservice', 'python-flask', CURRENT_DIR.joinpath('codegen/templates'), None),
     Package('deviceservice', 'python-flask', CURRENT_DIR.joinpath('codegen/templates'), None),
-    Package('mapservice', 'python', None, 'mapservice_client'),
+    Package('mapservice', 'python', None, 'gnuboat/mapservice_client'),
+    Package('mapservice', 'typescript-angular', None, 'mapservice-webclient/src-gen/gnuboat-mapservice'),
 ]
 
-def generate_stub(package, generator, template_folder, target):
+def generate_stub(package, generator, template_folder, target_dir):
     target_tmp = SRC_GEN.joinpath('{}_tmp'.format(package))
     service_specification_file = APIS_DIR.joinpath('{}.yaml'.format(package)).resolve()
     server_port = 8080
     
+    target = target_dir.stem
     package_name_gen = 'gnuboat.{}'.format(target)
     target_tmp = SRC_GEN.joinpath('{}_tmp'.format(package))
-    target_dir = SRC_GEN.joinpath(target)
+    target_dir = SRC_GEN.joinpath(target_dir)
     service_specification_file = APIS_DIR.joinpath('{}.yaml'.format(package)).resolve()
     server_port = 8080
@@ -104,20 +106,30 @@
         return
 
-    shutil.move(target_tmp.joinpath('gnuboat/{}'.format(target)).resolve(), target_dir.resolve())
-    shutil.rmtree(target_tmp.resolve())
+    if 'python' in generator:
+        shutil.move(target_tmp.joinpath('gnuboat/{}'.format(target)).resolve(), target_dir.resolve())
+        shutil.rmtree(target_tmp.resolve())
+        # running yapf
+        print('  Formatting the generated code accoring to style file')
+        subprocess.run(['yapf', '--style', 'python-style.yapf', '-r', '-i',
+            target_dir.resolve()])
+        if 'python-flask' == generator:
+            # copy conftest in place
+            shutil.copy(target_dir.joinpath(
+                '../{}_impl/tests/conftest.py'.format(package)).resolve(),
+                target_dir.joinpath('test').resolve()
+            )
+    else:
+        shutil.move(target_tmp, target_dir.resolve())
 
-    # running yapf
-    print('  Formatting the generated code accoring to style file')
-    subprocess.run(['yapf', '--style', 'python-style.yapf', '-r', '-i',
-        target_dir.resolve()])
 
 print('Generating the {} services:'.format(len(PACKAGES)))
 for package in PACKAGES:
     print('  {}'.format(package.package))
-
 for package in PACKAGES:
     package_name_gen = 'gnuboat.{}'.format(package)
     if package.target is None:
-        package.target = package.package
+        package.target = Path('gnuboat').joinpath(package.package)
+    else:
+        package.target = Path(package.target)
     generate_stub(package.package, package.generator, package.template_folder, package.target)
    
