Files
angular__angular/tools/example-module/bazel-bin.ts
T
Paul Gschwendtner c64503e0bf build: build material-examples with bazel (#13932)
This includes a `genrule` to create the generated `ExampleModule`
2018-11-02 14:38:34 -07:00

17 lines
636 B
TypeScript

import {generateExampleModule} from './generate-example-module';
/**
* Entry point for the Bazel NodeJS target. Usually this would be a more generic CLI, but due to
* Bazel not being able to handle a lot of files on Windows (with emulated Bash), we need to
* read the arguments through environment variables which are handled better.
*
* - https://github.com/bazelbuild/rules_nodejs/issues/404
* - https://github.com/bazelbuild/bazel/issues/3636
*/
if (require.main === module) {
const {_SOURCE_FILES, _OUTPUT_FILE, _BASE_DIR} = process.env;
generateExampleModule(_SOURCE_FILES.split(' '), _OUTPUT_FILE, _BASE_DIR);
}