This repository was archived by the owner on May 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Extract tasks into separate packages #2
Copy link
Copy link
Open
Description
Tasks
-
js: https://github.com/unic/estatico/blob/develop/gulp/js/default.js (includepreset-env, check out HMR) -
js:lint(based oneslint, addfixoption) -
js:modernizr: https://github.com/unic/estatico/blob/develop/gulp/js/modernizr.js (possibly replace with Webpack loader instead) -
js:test: Based on Puppeter and QUnit (for now): Use chrome instead of PhantomJS jonkemp/gulp-qunit#31 (comment) -
js:mocks: https://github.com/unic/estatico/blob/develop/gulp/js/mocks.js -
css: https://github.com/unic/estatico/blob/develop/gulp/css/default.js → compare to webpack afterwards @alinamelnyk -
css:lint(based onsass-lintorstylelint) @Wymowny -
css:colors: Probably replace with https://github.com/Updater/node-sass-json-importer -
css:fonts: https://github.com/unic/estatico/blob/develop/gulp/css/fonts.js @orioltf -
media:svgsprite: https://github.com/unic/estatico/blob/develop/gulp/media/svgsprite.js @drowka - [low prio]
media:iconfont: https://github.com/unic/estatico/blob/develop/gulp/media/iconfont.js - [low prio]
media:dataurls: Data URIs: https://github.com/unic/estatico/blob/develop/gulp/media/dataurls.js -
media:imageversions: https://github.com/unic/estatico/blob/develop/gulp/media/imageversions.js -
media:copy: Make more generic (not bound to media files): https://github.com/unic/estatico/blob/develop/gulp/media/copy.js -
scaffold: Evaluate https://github.com/amwmedia/plop and Yeoman, e.g. -
serve: Based onbrowsersync -
watch(with proper dependency graph) -
document: Replace with proper READMEs for every task
Examples:
Criteria:
- Exporting plugin factory
- Taking options overwriting defaults as argument. Defaults for a "standard" gulp task:
- Exposing options for everything configurable. Setting plugin options to
nullshould disable the corresponding step - Returning a gulp stream in case of "standard" gulp tasks. Most probably returning a promise otherwise since we don't want to deal with callbacks.
- Using
gulp-plumberto prevent stream from unpiping, adding.on('error', err => config.logger.error(err, env.dev))to every step possibly throwing. - Using
joito validate options: https://github.com/unic/estatico-nou/blob/master/packages/estatico-handlebars/index.js#L9-L37
- Using gulp 4 (if using gulp). Probably not having an effect on "standard gulp tasks since they mostly use
gulp.srcandgulp.destwhich should not break anything for us - Not using
gulp-utilwhich will be deprecated. Rather rely on the underlying modules (plugin-error,fancy-log,chalk,minimistetc. - Documenting usage and options in README.md
- Adding tests
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels