Angular cleaning up build files?

Discussão em 'Angular' iniciado por Evan Carroll, Maio 9, 2025.

  1. Evan Carroll

    Evan Carroll Guest

    Angular generates a lot of trash from a .ts file.

    app.component.js
    app.component.spec.js.map
    app.component.js.map
    app.component.spec.ts
    app.component.spec.js


    Is there any simple way to delete of that, a lot of build systems support clean,

    make clean
    git clean


    How do you do this in angular

    My test case.

    1. Download Angular's Hero Demo toh-3
    2. Unzip it
    3. Jump into the directory
    4. Run npm install
    5. Run npm start

    Now from the main.ts you now have main.js and main.js.map

    In my own project, where I'm working along with the angular-cli, I actually have .spec files too.

    Continue reading...

Compartilhe esta Página