Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
mandrasch committed May 7, 2024
1 parent b876b23 commit 36eb4e8
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ ddev start
# install dependencies
ddev composer install && ddev npm install

# will only prompt for password, other settings = leave defaults
# install craft cms
# You can remove password from this command if you want to enter it manually
ddev craft install/craft \
--username=admin \
[email protected] \
--site-name=Testsite
--username="admin" \
--email="[email protected]" \
--password="password123" \
--site-name="Testsite" \
--language="en" \
--site-url='$DDEV_PRIMARY_URL'

# already installed in composer, but needs activation:
ddev craft plugin/install vite
Expand Down Expand Up @@ -176,11 +180,13 @@ Add the following scripts to `package.json`:
6. Edited `index.twig`, added craft-vite (and created `app.js` + `app.scss` file)

```
{{ craft.vite.script("src/js/app.js") }}
{{ craft.vite.script("src/js/app.js", false) }}
```

7. That's it, have fun!

8. Updated from v4 to v5 https://craftcms.com/docs/5.x/upgrade.html

## Acknowledgements

Thanks to the DDEV maintainers and DDEV open source community, especially [Randy Fay](https://github.com/rfay) for suggestions and feedback! 💚
Expand Down

0 comments on commit 36eb4e8

Please sign in to comment.