UNPKG

2.29 kBSource Map (JSON)View Raw
1{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../modules/@angular/compiler-cli/src/main.ts"],"names":[],"mappings":";;AAWA,QAAO,kBAAkB,CAAC,CAAA;AAG1B,IAAY,GAAG,WAAM,sBAAsB,CAAC,CAAA;AAE5C,wBAA4B,WAAW,CAAC,CAAA;AAExC,iBACI,SAAqC,EAAE,UAA6B,EAAE,OAAmB,EACzF,IAAqB;IACvB,MAAM,CAAC,uBAAa,CAAC,MAAM,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC;QACxE,iBAAiB,EAAE,IAAI;KACxB,CAAC,CAAC;AACL,CAAC;AAED,kBAAkB;AAClB,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC;IAC5B,IAAM,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACxD,IAAM,OAAO,GAAG,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,OAAO,IAAI,GAAG,CAAC;IAC9C,IAAM,UAAU,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC/C,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,UAAA,QAAQ,IAAI,OAAA,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAtB,CAAsB,CAAC,CAAC,KAAK,CAAC,UAAA,CAAC;QACrF,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACvB,OAAO,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QACpC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["#!/usr/bin/env node\n/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n\n// Must be imported first, because angular2 decorators throws on load.\nimport 'reflect-metadata';\n\nimport * as ts from 'typescript';\nimport * as tsc from '@angular/tsc-wrapped';\n\nimport {CodeGenerator} from './codegen';\n\nfunction codegen(\n ngOptions: tsc.AngularCompilerOptions, cliOptions: tsc.NgcCliOptions, program: ts.Program,\n host: ts.CompilerHost) {\n return CodeGenerator.create(ngOptions, cliOptions, program, host).codegen({\n transitiveModules: true\n });\n}\n\n// CLI entry point\nif (require.main === module) {\n const args = require('minimist')(process.argv.slice(2));\n const project = args.p || args.project || '.';\n const cliOptions = new tsc.NgcCliOptions(args);\n tsc.main(project, cliOptions, codegen).then(exitCode => process.exit(exitCode)).catch(e => {\n console.error(e.stack);\n console.error('Compilation failed');\n process.exit(1);\n });\n}\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
\No newline at end of file