Exemplo n.º 1
0
def codeToCode():
    py = sys.stdin.read()
    try:
        js = pj.api_internal.codeToCode(py)
        sys.stdout.write(js)
    except Exception as e:
        writeExceptionJsonAndDie(e)
Exemplo n.º 2
0
def codeToCode():
    py = sys.stdin.read()
    try:
        js = pj.api_internal.codeToCode(py)
        sys.stdout.write(js)
    except Exception as e:
        writeExceptionJsonAndDie(e)
Exemplo n.º 3
0
def buildBundle(mainModule, codepath, createSourceMap):
    try:
        info = pj.api_internal.buildBundle(mainModule,
                                           path=codepath,
                                           createSourceMap=createSourceMap)
        sys.stdout.write(json.dumps(info))
    except Exception as e:
        writeExceptionJsonAndDie(e)
Exemplo n.º 4
0
def buildBundle(mainModule, codepath, createSourceMap):
    try:
        info = pj.api_internal.buildBundle(
                            mainModule,
                            path=codepath,
                            createSourceMap=createSourceMap)
        sys.stdout.write(json.dumps(info))
    except Exception as e:
        writeExceptionJsonAndDie(e)