Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 4.53 KB

tasks.md

File metadata and controls

44 lines (37 loc) · 4.53 KB

Csstime Gulp tasks

Here is available tasks which you can see after gulp --tasks:

High level tasks:

Name Dependencies
csstime-mode-release csstime-process-static,
csstime-process-assets,
csstime-minify-css,
csstime-remove-tmp
csstime-mode-debug csstime-process-static,
csstime-process-assets
csstime-mode-watch csstime-process-static,
csstime-process-assets
csstime-exec-csscomb -

Combining tasks:

Name Dependencies
csstime-process-all csstime-process-static,
csstime-process-assets
csstime-process-static csstime-copy-static
csstime-process-assets csstime-handle-css,
csstime-collect-images,
csstime-collect-fonts,
csstime-collect-svg,
csstime-combine-svg,
csstime-collect-other

Low level tasks:

Name Direction and description Result
csstime-copy-static /static => /build
Copy static files without any changes
same files
csstime-collect-sprites /src/components/**/assets/sprites => /public
Build and optimize sprites
__csstime-tmp/sprites.less,
build/assets/sprites.png
csstime-collect-images /src/components/**/assets/images => /build/assets/*/images
Copy and optimize images
optimized images
csstime-collect-fonts /src/components/**/assets/fonts => /build/assets/*/fonts
Copy fonts
same fonts
csstime-collect-svg /src/components/**/assets/svg => /build/assets/*/svg
Copy svg and optimise them
optimised svg
csstime-combine-svg /src/components/**/assets/symbols => /build/assets/symbols.svg
Combine svg
optimised and combined svg
csstime-collect-other /src/components/**/assets/other => /build/assets/*/other
Copy files
same files
csstime-concat-less /src/components/**/assets/less => /build/__csstime-tmp
Create main less file with import references
styles.less
csstime-compile-less /build/__csstime-tmp => /build
Compile less
compiled styles.css
csstime-handle-css /src/components/**/assets/css => /build
Collect styles.css
/build => /build
Handle css (postcss processes), add Normalize.css
append styles from src/components/**/assets/css
and processed styles.css
csstime-minify-css /build => /build
Minify css (csso)
minified styles.css
csstime-minify-js /build => /build
Minify js (uglify)
minified *.js
csstime-publish-tmp /build/__csstime-tmp/build
Build all assets to temporary directory and move to destination directory
csstime-remove-tmp /build/__csstime-tmp
Remove temporary files
csstime-remove-tmp-styles /build/__csstime-tmp/styles.less
Remove tmp styles files
csstime-remove-tmp-sprites /build/__csstime-tmp/sprites.less
Remove tmp sprites files
csstime-clean /build/__csstime-tmp,
/build
Remove created directories
csstime-clean-tmp /build/__csstime-tmp
Remove temporary directory
csstime-exec-csscomb /src/components
Refactor styles
updated styles