You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Edits composer.json so that `drupal/core-recommended` becomes a dev dependency.
17
+
- Runs `composer install` AND `yarn install` so that dependencies are available.
18
+
- Note: it is perfectly acceptable to skip this command and edit the require-dev of composer.json by hand.
17
19
-[ddev symlink-project](https://github.com/ddev/ddev-drupal-contrib/blob/main/commands/web/symlink-project). This symlinks the top level files of your project into web/modules/custom so that Drupal finds your module. This command runs automatically on every `ddev start`. See codebase image below.
18
20
-`ddev phpunit`. Run phpunit tests on the web/modules/custom directory.
19
21
-`ddev nightwatch`. Run nightwatch tests on the web/modules/custom directory.
@@ -28,12 +30,25 @@ Codebase layout
28
30
29
31
Misc
30
32
=======
33
+
31
34
- Optional: [Install Chrome service for FunctionalJavascript and Nightwatch tests](https://github.com/ddev/ddev-selenium-standalone-chrome).
32
35
- Optional. Commit the changes .ddev after this plugin installs. This saves other users from having to install this integration. Rerun the `ddev get` in order to update the commands from this project.
33
36
- This project reads your `project_type` from DDEV and fetches adds the corresponding version of `drupal/core-recommended` to composer.json. if you are doing something non-standard with project_type, don't use `ddev poser` command.
34
37
- This project should work for any contrib project, including those that haven't [opted into Gitlab CI](https://www.drupal.org/project/infrastructure/issues/3261803). One advantage of that is that failures in CI are more likely to be reproducible locally when using this integration.
35
-
- If you add/remove a root file or directory, re-symlink root files via EITHER of these methods
38
+
- If you add/remove a root file or directory, re-symlink root files via EITHER of these methods
36
39
-`ddev restart`
37
40
-`ddev symlink-project`
38
41
42
+
Troubleshooting
43
+
=======
44
+
45
+
"Error: unknown command":
46
+
47
+
The commands from this addon are available when the project type a valid `drupal` type.
48
+
Below, is an example `.ddev/config.yaml` for a Drupal 10 project.
49
+
50
+
```yaml
51
+
type: drupal10
52
+
```
53
+
39
54
**Contributed and maintained by [@weitzman](https://github.com/weitzman)**
0 commit comments