コード例 #1
0
def test_project(simpleprj):
    """Test extension initialization."""
    project = WebpackProject(simpleprj)
    assert exists(project.project_path)

    node_modules = join(project.project_path, 'node_modules')
    bundlejs = join(project.project_path, 'dist/bundle.js')

    assert not exists(node_modules)
    project.install()
    assert exists(node_modules)

    assert not exists(bundlejs)
    project.build()
    assert exists(bundlejs)
コード例 #2
0
ファイル: __init__.py プロジェクト: rikardg/whathappened
def build():
    logger.debug("Build stuff")
    project_path = './frontend'
    project = WebpackProject(project_path)

    project.build()