mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Previously, dev-infra only bundled the CLI with all its dependencies, while we still also kept all bundled dependencies in the `dependencies`. This basically meant that the CLI bundling did not provide any value at all. We fixed this upstream and now dependencies are still bundled, but no longer also declared as `dependencies`. We also stopped shipping deep JS files, only shipping the bundles now. As part of this deep file removal, we introduced a runtime entry-point for exports/types. This one will also benefit from the bundling and it will be predictable what symbols dev-infra consumer projects rely on (allowing us to also have an API guard or something in the future). PR Close #45206
35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
import {FormatConfig} from '@angular/dev-infra-private/ng-dev';
|
|
|
|
/**
|
|
* Configuration for the `ng-dev format` command.
|
|
*/
|
|
export const format: FormatConfig = {
|
|
'prettier': {
|
|
'matchers': ['**/*.{yaml,yml}'],
|
|
},
|
|
'clang-format': {
|
|
'matchers': [
|
|
'**/*.{js,ts}',
|
|
// TODO: burn down format failures and remove aio and integration exceptions.
|
|
'!aio/**',
|
|
'!integration/**',
|
|
// Both third_party and .yarn are directories containing copied code which should
|
|
// not be modified.
|
|
'!third_party/**',
|
|
'!.yarn/**',
|
|
// Do not format d.ts files as they are generated
|
|
'!**/*.d.ts',
|
|
// Do not format generated ng-dev script
|
|
'!dev-infra/ng-dev.js',
|
|
'!dev-infra/build-worker.js',
|
|
// Do not format compliance test-cases since they must match generated code
|
|
'!packages/compiler-cli/test/compliance/test_cases/**/*.js',
|
|
// Do not format the locale files which are checked-in for Google3, but generated using
|
|
// the `generate-locales-tool` from `packages/common/locales`.
|
|
'!packages/core/src/i18n/locale_en.ts',
|
|
'!packages/common/locales/closure-locale.ts',
|
|
'!packages/common/src/i18n/currencies.ts',
|
|
],
|
|
},
|
|
'buildifier': true,
|
|
};
|