[WIP] Add development environment#1825
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
|
I signed it! |
|
CLAs look good, thanks! |
The platform setting was restricting dependencies that rely on later versions of PHP, such as phpunit, etc.
|
This is interesting. I'm very novice with Docker, but we've recently using https://github.com/felixarntz/wordpressdev as the environment to do development on, at least a few of us. It's also based on Docker, though it doesn't require putting Docker configuration in the repo as it just uses whatever environment it finds itself in. I know that Gutenberg has a Docker setup, but I haven't used it. I'm not very good to review this. /cc @felixarntz |
|
I would generally advise against putting a dev environment into a specific project's repository. IMO this plugin should provide the tools needed to develop for it (via NPM and Composer), but it should be agnostic about which dev environment to use. If there is consensus that a specific dev environment for the AMP plugin makes sense, it should be a separate repository, that could be linked to from the readme for example. |
|
Thanks for the feedback @felixarntz! The idea behind a simplified development environment was to simplify the effort required for new developers to contribute to the project. For example, running phpunit currently requires a development machine with a full WP setup and files in particular locations. Having a minimal development environment with the suggested defaults could significantly reduce the time it takes to start contributing to the project. A separate repo sounds like a good solution! |
Fixes #1823.
Use Docker containers defined in
docker-compose.yamlrunning inside Vagrant for better hostname isolation (enableshttp://ampwp.local).Document system requirements and setup.