This project shows how to change the TypeScript code using the Angular CLI, Angular Schematics, and the TypeScript compiler.
Run npm run build
, cd to an Angular project,
run npm link <this project dir>
,
and run ng generate analyzer-and-code-fix-tsschematics:run
.
You can also run it directly through schematics with
schematics analyzer-and-code-fix-tsschematics:run
.
Make sure you have something with parseInt
on the code, on any .ts
file.
This should do:
const p = parseInt;
npm test
will run the unit tests, using Jasmine as a runner and test framework.
To publish, simply do:
npm run build
npm publish
Licensed under the Apache License, Version 2.0.