Skip to content

Releases: bemit/create-amp-page

1.0.0-beta.0

17 Mar 12:19
Compare
Choose a tag to compare
  • 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

19 Sep 14:52
Compare
Choose a tag to compare

Fixes:

1.0.0-alpha.2

12 Sep 23:43
Compare
Choose a tag to compare

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 change twig.functions and twig.filters without full reload of gulp
  • typing fixes and optimizes
  • add ampCreator additional setup param, so not always wrap is needed
    • breaking change when used wrap before, simply pass undefined as second parameter to ampCreator for upgrade
  • Gulpfile.js now needs to explicitly register the tasks, see example in this repo

0.2.3

26 Oct 16:29
Compare
Choose a tag to compare

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

28 Sep 23:44
Compare
Choose a tag to compare

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.