def create_package_folder():

    # Get the path to the distribution package
    root_path = cli.get_project_root() + '/release'
    if os.path.exists(root_path):
        shutil.rmtree(root_path)
    distribution_folder = '/{}/package'.format(root_path)
    os.makedirs(distribution_folder)

    # Send it back with the root folder
    return cli.get_project_root() + '/', distribution_folder + '/'
def get_package_folder():

    project_path = cli.get_project_root()

    # Get the path to the distribution package
    package_path = project_path + '/release/package/' 
    return package_path
def main():
    """ Main entry function """

    # Get the path to the distribution package
    root_path = cli.get_project_root() + '/release'
    if os.path.exists(root_path):
        shutil.rmtree(root_path)
def build_project():

    config_root = cli.get_project_root() + '/development/'

    return_code, std_out, std_err = cli.run_command_line(
        config_root, "tsc", ['-p', 'tsconfig-ci.json'])
    if (return_code != 0):
        exit(return_code)
def clean_build_files():

    # Get our path
    source_folder = cli.get_project_root() + '/development/src'

    remove_all_files(source_folder, '*.js')
    remove_all_files(source_folder, '*.js.map')
    remove_all_files(source_folder, '*.d.ts')
Beispiel #6
0
def build_project():
    """ Builds the Typescript project """

    config_root = cli.get_project_root() + '/development/'

    return_code, _, _ = cli.run_command_line(config_root, "tsc", ['-p', 'tsconfig-ci.json'])
    if return_code != 0:
        exit(return_code)
Beispiel #7
0
def clean_build_files():
    """ Removes all the build files so we can do a clean build """

    # Get our path
    source_folder = cli.get_project_root() + '/development/src'

    remove_all_files(source_folder, '*.js')
    remove_all_files(source_folder, '*.js.map')
    remove_all_files(source_folder, '*.d.ts')
Beispiel #8
0
def get_package_folder():
    """ Gets the main package folder """

    project_path = cli.get_project_root()

    # Get the path to the distribution package
    package_path = project_path + '/release/package/'
    destination_path = project_path + '/release/'
    return package_path, destination_path