blackbaud / skyux-sdk-builder

SKY UX Builder builds the output for SKY UX applications and handles configuration details. It provides for a rapid development process with minimal setup for developers to create single-page applications.
https://developer.blackbaud.com/skyux
MIT License
2 stars 15 forks source link

Allow consumers to customize Typescript's and Angular's code-health compiler options #343

Closed ThomasOrtiz closed 3 years ago

ThomasOrtiz commented 3 years ago

Changes


Background

Typescript

Why

Options

Typescript Compiler Options (click to expand) [Typescript Compiler Options](https://www.typescriptlang.org/docs/handbook/compiler-options.html) ```TS // These two options are already allowed 'esModuleInterop', 'allowSyntheticDefaultImports', // Typescript Strict Mode enables the following flags 'strict', 'noImplicitAny', 'noImplicitThis', 'alwaysStrict', 'strictBindCallApply', 'strictNullChecks', 'strictFunctionTypes', 'strictPropertyInitialization', // Other recommended TS options 'forceConsistentCasingInFileNames', 'noImplicitReturns', 'noFallthroughCasesInSwitch', 'noUnusedLocals', 'noUnusedParameters' ```

Angular

SkyUX 4 introduced enableIvy, fullTemplateTypeCheck and strictInjectionParameters which are enabled by default.

Why

Options

Angular Compiler Options (click to expand) ```TS 'fullTemplateTypeCheck', // Angular Strict Flags 'strictTemplates', 'strictInputTypes', 'strictInputAccessModifiers', 'strictNullInputTypes', 'strictAttributeTypes', 'strictSafeNavigationTypes', 'strictDomLocalRefTypes', 'strictOutputEventTypes', 'strictDomEventTypes', 'strictContextGenerics', 'strictLiteralTypes', ```

Resources

codecov[bot] commented 3 years ago

Codecov Report

Merging #343 (f89ea70) into master (e123570) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #343   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           55        56    +1     
  Lines         1665      1698   +33     
  Branches       256       268   +12     
=========================================
+ Hits          1665      1698   +33     
Flag Coverage Δ
builder 100.00% <100.00%> (ø)
runtime 100.00% <ø> (ø)
srcapp 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
lib/sky-pages-route-generator.js 100.00% <ø> (ø)
cli/build-public-library.js 100.00% <100.00%> (ø)
cli/utils/customizable-tsconfig-options.js 100.00% <100.00%> (ø)
cli/utils/run-build.js 100.00% <100.00%> (ø)
src/app/app.component.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update e123570...f89ea70. Read the comment docs.