puppeteer-examples

所属分类:DevOps
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2018-02-09 11:26:26
上 传 者sh-1993
说明:  为了娱乐和利润而使用木偶,
(Using puppeteer for fun and profit,)

文件列表:
code-usage.js (1356, 2018-02-09)
lighthouse.js (693, 2018-02-09)
package.json (415, 2018-02-09)
render-comparison.js (1745, 2018-02-09)
website/ (0, 2018-02-09)
website/package.json (333, 2018-02-09)
website/pages/ (0, 2018-02-09)
website/pages/index.js (1539, 2018-02-09)
website/yarn.lock (141276, 2018-02-09)
yarn.lock (45219, 2018-02-09)

# Using puppeteer for fun and profit > Free open-source tutorial on using puppeteer for fun and profit This repository contains code and related materials for [Using puppeteer for fun and profit](https://youtu.be/OMJGHOw2iog) video. ## Project description This is a series of small demos showing how to use puppeteer to do: * CSS regression testing via pixel-perfect image comparison * Get percentage for CSS and JS usage for your website * Perform Lighthouse audit of your website ## Running project 1. Start the website from `./website` folder by running `npm run dev` 2. Execute one of the scripts in parent folder: `render-comparison.js` or `code-usage.js` or `lighthouse.js` ## Related links * [Puppeteer](https://github.com/GoogleChrome/puppeteer) * [Lighthouse](https://github.com/GoogleChrome/lighthouse) ## Useful links * [YouTube channel](https://www.youtube.com/c/TimErmilov) with videos covering code * [Discord chat](https://discord.gg/hnKCXqQ) for questions and live discussions * [Subreddit](https://www.reddit.com/r/BuildingWithJS/) for discussions * [Facebook page](https://www.facebook.com/buildingproductswithjs/) with updates on progress * [My twitter](https://twitter.com/yamalight) with updates on progress (and other stuff) ## License [MIT](https://opensource.org/licenses/mit-license)

近期下载者

相关文件


收藏者