@web.dev-lify/web.dev-lify

0.0.14 • Public • Published

web.dev-lify

Helper script for the migration of content from Web Fundamentals over to web.dev.

Usage

Pass a Web Fundamentals URL:

$ npx @web.dev-lify/web.dev-lify -u https://developers.google.com/web/updates/capabilities

If this fails, pass a raw GitHub URL:

$ npx @web.dev-lify/web.dev-lify -u https://raw.githubusercontent.com/google/WebFundamentals/master/src/content/en/updates/capabilities.md

Make sure to run this from the web.dev root folder. The output of the script is twofold:

[ Markdown of the article to migrate                                    ]
----------
[ Bash commands to bootstrap your web.dev PR that perform these steps:  ]
[ - Create a folder.                                                    ]
[ - Copy images over from WebFu.                                        ]
[ - Create an index.md file.                                            ]
[ You then just need to copy the Markdown part in the index.md file.    ]

Parameters:

Name Required Description Example
-u yes The URL from Web Fundamentals to web.dev-lify https://developers.google.com/web/updates/capabilities
-o no The desired output format, accepts webfundamentals (Web Fundamentals flavor) and web.dev (web.dev flavor, default) web.dev

License

Apache 2.0

Package Sidebar

Install

npm i @web.dev-lify/web.dev-lify

Weekly Downloads

2

Version

0.0.14

License

Apache-2.0

Unpacked Size

22.5 kB

Total Files

4

Last publish

Collaborators

  • tomayac_google
  • tomayac