Builds the application.
Runs sequentially:
- clean
- test:build
- lint
- partials, styles
- inject
- inject:partials
- unknown
- build:compile
- assets:dist, version
Members
(private, static) build:compile
Compiles the application.
The sequence of compiling the application to a distribution is as follows:
- Add
ngStrictDi
to the same element as thengApp
is attached to. - Substitute the string
VERSION
in theindex.html
with thepackage.json
's version. - Revision the static assets by appending the content hash to their filename.
- Automatically generate dependency annotations for Angular components with
ngAnnotate
. - Minify the scripts and generate sourcemaps.
- Minify and optimize the styles with
csso
. - Concatenate, minify and update the references in the
index.html
's build blocks. - Rename the references to their revisioned counterpart.
- Move everything to the
paths.build.dist.base
folder.
Used internally by build. Relies on paths.build.tmp.mainHtml
to be present.