Amphtml: publish validator on npm

Created on 8 Mar 2016  路  4Comments  路  Source: ampproject/amphtml

hi all--is it possible to publish the AMP validator (i.e. what ends up at https://cdn.ampproject.org/v0/validator.js) as an npm module? we're looking at ways of validating amp documents as part of our release pipeline and this would be super helpful. thanks!

caching

Most helpful comment

@jaredmcdonald , as an update, there is a node package that can be used in your release pipeline. Some documentation here:
https://github.com/ampproject/amphtml/tree/master/validator

We're working on releasing this as an npmjs module.

All 4 comments

/cc @Gregable @powdercloud

There is an unofficial project here: https://www.npmjs.com/package/amp-validator . We've talked about doing something a little differently, such that it doesn't require a headless browser, but haven't done so yet. It's definitely a todo.

@jaredmcdonald , as an update, there is a node package that can be used in your release pipeline. Some documentation here:
https://github.com/ampproject/amphtml/tree/master/validator

We're working on releasing this as an npmjs module.

The Node.js API and command line tool for the validator is published here:
https://www.npmjs.com/package/amphtml-validator

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lisotton picture lisotton  路  52Comments

darobin picture darobin  路  48Comments

choumx picture choumx  路  113Comments

ericlindley-g picture ericlindley-g  路  60Comments

jpettitt picture jpettitt  路  42Comments