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)
Example #2
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)
def main():

    # Check we're on a branch we can run on
    branch_valid = verify_branch_name()
    if (branch_valid == False):
        exit(0)

    # Get our folder and remove existing packages
    package_path = get_package_folder()
    
    # Log in
    return_code, std_out, std_err = cli.run_command_line(package_path, "npm-cli-login", None)
    if (return_code != 0):
        exit(return_code)

    
    # Publish our package
    return_code, std_out, std_err = cli.run_command_line(package_path, "npm", ["publish"])
    if (return_code != 0):
        exit(return_code)

    # Done
    print "Successfully published package file"
def main():
    """ Main entry function """

    # Check we're on a branch we can run on
    branch_valid = verify_branch_name()
    if branch_valid is False:
        exit(0)

    # Get our folder and remove existing packages
    package_path = get_package_folder()

    # Log in
    return_code, _, _ = cli.run_command_line(package_path, "npm-cli-login",
                                             None)
    if return_code != 0:
        exit(return_code)

    # Publish our package
    return_code, _, _ = cli.run_command_line(package_path, "npm", ["publish"])
    if return_code != 0:
        exit(return_code)

    # Done
    print "Successfully published package file"
def main():

    # Get our folder and remove existing packages
    package_path, destination_path = get_package_folder()
    remove_existing_packages(destination_path)

    # Build our package
    return_code, std_out, std_err = cli.run_command_line(
        package_path, "npm", ["pack"])
    if (return_code != 0):
        exit(return_code)

    # Move the file we just created
    package_made = std_out.strip()
    shutil.move(package_path + package_made,
                package_path + '../ng2-file-drop.tgz')

    # Done
    print "Successfully created package file " + package_made
Example #6
0
def main():
    """ Main entry function """

    # Get our folder and remove existing packages
    package_path, destination_path = get_package_folder()
    remove_existing_packages(destination_path)

    # Build our package
    return_code, std_out, _ = cli.run_command_line(package_path, "npm", ["pack"])
    if return_code != 0:
        exit(return_code)

    # Move the file we just created
    package_made = std_out.strip()
    shutil.move(package_path + package_made, package_path + '../ng2-google-recaptcha.tgz')


    # Done
    print "Successfully created package file " + package_made