Skip to content

Commit

Permalink
Merge branch 'release/1.0.13'
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Welch committed Apr 5, 2021
2 parents 9d9d7ea + 62f437c commit ae6c7f7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# nystudio107/plugindev Change Log

## 1.0.13 - 2021.04.05
### Added
* Added `make update` to update Composer & NPM packages
* Added `make update-clean` to completely remove `vendor/` and `node_modules/`, then update Composer & NPM packages

## 1.0.12 - 2021.04.01
### Changed
* Better login background pattern
Expand Down
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ mysql: up
cp cms/config/_dbconfigs/mysql.php cms/config/db.php
postgres: up
cp cms/config/_dbconfigs/postgres.php cms/config/db.php
update:
docker-compose down
rm cms/composer.lock
docker-compose up
update-clean:
docker-compose down
rm cms/composer.lock
rm -rf cms/vendor/
docker-compose up
up:
if [ ! "$$(docker ps -q -f name=${CONTAINER})" ]; then \
docker-compose up; \
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,12 @@ The default login is:

To update to the latest Composer packages (as constrained by the `cms/composer.json` semvers), do:
```
rm cms/composer.lock
make dev
make update
```

To start from scratch by removing `cms/vendor/`, then update to the latest Composer packages (as constrained by the `cms/composer.json` semvers), do:
```
make update-clean
```

### Switching between MySQL & Postgres
Expand Down Expand Up @@ -94,6 +98,8 @@ To make using it easier, we're using a Makefile and the built-in `make` utility
- `make clean` - shuts down the Docker containers, removes any mounted volumes (including the database), and then rebuilds the containers from scratch
- `make mysql` - switches the project to use the MySQL database container; just reload the browser
- `make postgres` - switches the project to use the Postgres database container; just reload the browser
- `make update` - causes the project to update to the latest Composer and NPM dependencies
- `make update-clean` - completely removes `node_modules/` & `vendor/`, then causes the project to update to the latest Composer and NPM dependencies
- `make composer xxx` - runs the `composer` command passed in, e.g. `make composer install`

### XDebug with VScode
Expand Down

0 comments on commit ae6c7f7

Please sign in to comment.