# Path: webpack/conf.py
# class Conf(conf.Conf):
#     OUTPUT_ROOT = None
#     STATIC_URL = None
#     OUTPUT_DIR = 'webpack_assets'
#     CONFIG_DIRS = None
#     CONTEXT = None
#     BUILD_URL = 'http://127.0.0.1:9009/build'
#     WATCH = False
#     AGGREGATE_TIMEOUT = 200
#     POLL = None
#     HMR = False
#     CACHE = True
#     CACHE_DIR = None
#     MANIFEST = None
#     USE_MANIFEST = False
#     MANIFEST_PATH = None
#     MANIFEST_SETTINGS = {
#         # Force the compiler to connect to the build server
#         'USE_MANIFEST': False,
#         # Ensure that the server does not add a hmr runtime
#         'HMR': False,
#     }
#     def get_path_to_output_dir(self):
#     def get_public_path(self):


import os
import shutil
from webpack.conf import settings


def write_file(file_name, content):
    with open(file_name, 'w') as _file:
        _file.write(content)


def read_file(file_name):
    with open(file_name, 'r') as _file:
        return _file.read()


def clean_output_root():
    # Clean out any files generated from previous test runs
    if os.path.exists(settings.OUTPUT_ROOT):

# Path: webpack/conf.py
# class Conf(conf.Conf):
#     OUTPUT_ROOT = None
#     STATIC_URL = None
#     OUTPUT_DIR = 'webpack_assets'
#     CONFIG_DIRS = None
#     CONTEXT = None
#     BUILD_URL = 'http://127.0.0.1:9009/build'
#     WATCH = False
#     AGGREGATE_TIMEOUT = 200
#     POLL = None
#     HMR = False
#     CACHE = True
#     CACHE_DIR = None
#     MANIFEST = None
#     USE_MANIFEST = False
#     MANIFEST_PATH = None
#     MANIFEST_SETTINGS = {
#         # Force the compiler to connect to the build server
#         'USE_MANIFEST': False,
#         # Ensure that the server does not add a hmr runtime
#         'HMR': False,
#     }
#     def get_path_to_output_dir(self):
#     def get_public_path(self):


# Path: tests/utils.py
import os
import shutil
from webpack.conf import settings



def write_file(file_name, content):
    with open(file_name, 'w') as _file:
        _file.write(content)


def read_file(file_name):
    with open(file_name, 'r') as _file:
        return _file.read()


def clean_output_root():
    # Clean out any files generated from previous test runs
    if os.path.exists(settings.OUTPUT_ROOT):

        shutil.rmtree(settings.OUTPUT_ROOT)