Code Monkey home page Code Monkey logo

create-amp-page's People

Contributors

elbakerino avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

create-amp-page's Issues

Add optional integration point for webpack/babel

There must be nothing included for JS handling, all webpack, babel etc. related packages and configs must be provided from implementing side.

But there should be an easy way to just add the needed gulp task and be happy, without the need to overwrite e.g. watch manually.

Configurable CSS optimizing

// issue stub

Configurable postcss plugins, autoprefixer and css nano.

Add examples on what is possible by default through some config.js file

Add CSS inliner

Add option to specify special html folders where the CSS is inlined to html tags, using the head style tags as source.

Needed for email template optimizing.

Support injecting variables into Sass

Support for injecting variables from frontmatter into the Sass build process to overwrite e.g. theming colors.

  • support for caching / disabling cache when custom variables exist
  • support for random filename generation / by hash? / and returning css filename into further build process/to client implementation

Image Convert w/ BG Settings

Image convertions like PNG to JPG, for multiple dimensions, slicing and for e.g. transparent png to jpg also files for different backgrounds.

Clean & minimize HTML

Cleaning and minimizing HTML works either through html-minifier or @ampproject/toolbox-optimizer.

For HTML with the inline CSS clean task #5 removes also unused styles in body.

See AmpCreatorOptions for ways to configure.

Add Twig Helper Functions

Helper functions for Twig,

  • uid: creating an unique id for e.g. an input + label combination
  • translate with an small dictionary library
  • renderBlock for helping rendering some object based ast

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.