philkrie / now-amp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AMP Builder for Now

A builder that takes any HTML page and generates an AMP page. If full conversion is not possible, it will flag and recommend next steps.

The goal of this project is to simplify the AMP development process by removing AMP boilerplate and amp tags that have HTML equivalents.

This effectively serves as an AMP compiler.

Initial version aims to add appropriate boilerplate and perform direct HTML -> AMP HTML tag conversions where possible.

Sample now.json Configuration

Please read the official Now documentation

Add the following to your now.json file, and run now to "compile" any page to AMP (or as close to AMP as is possible)

{
    "version": 2,
    "builds": [{ "src": "*.html", "use": "git+https://git@github.com/philkrie/now-amp.git" }]
}

About


Languages

Language:JavaScript 100.0%