Because the gulpfile.js
was becoming enormous and because I hate huge files, this
directory contains all the gulp tasks splited by purposes. gulpfiles.js
passes path
configuration to gulp tasks through gulp.paths
.
Contains the build tasks aiming to optimize all your project and create the dist folder
- partials: compile html partials in one javascript
templateCacheHtml.js
- html: the big one with
useref
,rev
anduglify
. - images: optimize images with imagemin.
- fonts: copy fonts from bower to dist
- misc: copy other files
- clean: delete temporary files
- build: html + images + fonts + misc
Task for launching e2e tests from Gulp. Which means launching local server, an instance of Selenium and Protractor.
Inject task which link project files in the index.html
and write the result in .tmp/serve/index.html
- Project CSS files
- Project JS files
- Bower css and js deps
Warning The src/index.html
is not modified (it was the case in previous version and is still the case in other generators) but the injected index.html
is placed in .tmp/serve
.
Compile your markups files (when you use a HTML preprocessor).
Optional implementation of a proxy which ables to address your backend server through BrowserSync (and avoir CORS).
Compile your scripts with your JS preprocessor if you have one. Run the linter. If you use ES6, will also use Browserify to bundle the files.
Gulp tasks which start a server for development or e2e tests.
Compile your styles with your CSS preprocessor. Use injection in the index.*
Typescript specific tasks to generate Typescript descriptors.
Task for launching the unit tests with Karma from Gulp.
Watch task which watch over source files to trigger recompilation.