studiopress / atomic-blocks

Atomic Blocks has been renamed to Genesis Blocks. This plugin is no longer maintained! Visit Atomic Blocks → Migrate to migrate to the new plugin.
https://wordpress.org/plugins/genesis-blocks/
GNU General Public License v3.0
157 stars 57 forks source link

Prevent Chromium from always downloading #385

Closed kienstra closed 2 years ago

kienstra commented 4 years ago

Documentation

Suggested changelog entry

Notes

kienstra commented 4 years ago

Hi @mindctrl, Does this help? It should prevent Chromium from downloading on npm install, and delay it until npm run test:e2e.

Is npm run lint:css failing in your local with this PR? It is in mine, but it's a little strange it passed in CircleCI.

If it is failing and you like this PR's approach, we could discuss whether we should change the CSS ruleset, or change the CSS to conform to it.

Thanks, John!

kienstra commented 4 years ago

Unfortunately, this doesn't remove puppeteer from package.json.

Doing npm uninstall puppeteer-core seems to take almost as long as installing it, and npm run test:e2e fails without puppeteer.

mindctrl commented 4 years ago

@kienstra Nice, thanks for putting this together! ❤️

Is npm run lint:css failing in your local with this PR? It is in mine, but it's a little strange it passed in CircleCI.

Looks like we're running npm run lint:css:src in Circle, which is why it passed. But it appears that's not working as intended nowadays. It's not catching issues with files inside src. I think for now in this PR we leave the CSS linting alone and address it in a new PR.

I just ran some quick tests with npm run start and npm run build-assets, both as a standalone AB install and also with it bundled inside the latest GPB build. Blocks and other things are working as expected.

@mikemcalister can you give this a test as well?