angular/aio/tools/examples/constants.js
Derek Cormier e4b82cea26 build(bazel): clean up pathing in aio build tooling
Make use of process.env.RUNFILES.
2022-11-22 13:51:16 -07:00

14 lines
446 B
JavaScript

const path = require('canonical-path');
exports.RUNFILES_ROOT = path.resolve(process.env.RUNFILES, 'angular');
exports.getExamplesBasePath = function(root) {
return path.join(root, 'aio', 'content', 'examples');
}
exports.getSharedPath = function(root) {
return path.join(root, 'aio', 'tools', 'examples', 'shared');
}
exports.EXAMPLE_CONFIG_FILENAME = 'example-config.json';
exports.STACKBLITZ_CONFIG_FILENAME = 'stackblitz.json';