Skip to main content

angular()

API > @betterer/angular > angular

Use this test to incrementally introduce Angular compiler configuration to your codebase.

Signature

export declare function angular(configFilePath: string, extraCompilerOptions: CompilerOptions): BettererFileTest;

Parameters

ParameterTypeDescription
configFilePathstringThe relative path to a tsconfig.json file.
extraCompilerOptionsCompilerOptionsAdditional Angular compiler configuration to enable.

Returns

BettererFileTest

Exceptions

BettererError Will throw if the user doesn't pass configFilePath or extraCompilerOptions.

Remarks

angular is a BettererFileTest, so you can use include(), exclude(), only(), and skip().

Example

import { angular } from '@betterer/angular';

export default {
'stricter template compilation': () =>
angular('./tsconfig.json', {
strictTemplates: true
})
.include('./src/*.ts', './src/*.html')
};