Releases: bemit/create-amp-page
1.0.0-beta.0
- new multi-page config structure
- refactored template generation, now everything is configured by
collections
- a lot more options can be configured (compression, html minification etc.)
- internal restructuring of promises and error handling
- typing fixes and clean up
- ! moved AmpOptimizer to peer-dependencies, now optional
Full Changelog: 1.0.0-alpha.4...1.0.0-beta.0
1.0.0-alpha.4
Fixes:
- default svgo plugin settings, see readme of new plugin v10 configuration
- gulp reexport
1.0.0-alpha.2
Upgrade Deps. / Rewrite as ECMA Module, small Feature changes
- full rewrite as plain esmodule
- increased NodeJS min. version (>=12.20)
- upgrade dependencies (for details see commit)
- add
twig.extraLogic
to be able to changetwig.functions
andtwig.filters
without full reload of gulp- check example in
Gulpfile.js
ofcreate-page-starter
- check example in
- typing fixes and optimizes
- add
ampCreator
additionalsetup
param, so not alwayswrap
is needed- breaking change when used
wrap
before, simply passundefined
as second parameter toampCreator
for upgrade
- breaking change when used
Gulpfile.js
now needs to explicitly register the tasks, see example in this repo
0.2.3
Optimized internal structure and added internal typings for htmlTask/htmlTask.js
and cssTask/cssTask.js
.
Adds subpipe
for easier extension of .pipe
and reuse of tasks, supports conditional subpipes.
const {subpipe} from 'create-amp-page/subpipe'
import { subpipe } from 'create-amp-page/subpipe'
gulp.src('/**/*.scss').pipe(subpipe(gulpPlugin, [true, () => true]))
Adds better reusage of task with cssBuffer
, further css and twig configs and switching to subpipe.
Small typing fixes.
0.2.1
Add HandlerError; Refactoring internals; Add automatic image resizer; Add wrap
Internal
Internal files and functions, not through index.js
exported, refactored and moved around a lot.
Cleaerer, more reusable structure, most tasks have their own folder now.
With replacement
Added wrap
as general-purpose wrapper, for adding further gulp tasks using also the internal gulp instance, browsersync, options and more.
Removed watchOverride
as it was bugged, use wrap
now.
Automatic resizing
Added getImage
support for srcset
caching.
Added automatic image resizing, using sharp, with configured sub-task after html rendering for resizing used images according usage with getImage
and srcset
. Check readme on how to generate srcset
from the same syntax of getImage
.