Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ This serves two purposes:
- **Breaking:** Renamed class `DataCollections` to `DataCollection` in [#1732](https://github.com/hydephp/develop/pull/1732) For more information, see below.
- **Breaking:** Renamed the `hyde.enable_cache_busting` configuration option to `hyde.cache_busting` in [#1980](https://github.com/hydephp/develop/pull/1980)
- **Breaking:** Renamed the `hyde.navigation.subdirectories` configuration option to `hyde.navigation.subdirectory_display` in [#1818](https://github.com/hydephp/develop/pull/1818)
- **Breaking:** Replaced `--run-dev` and `--run-prod` build command flags with a single `--run-vite` flag that uses Vite to build assets in [#2013](https://github.com/hydephp/develop/pull/2013)
- **Breaking:** Replaced `--run-dev` and `--run-prod` build command flags with a single `--vite` flag that uses Vite to build assets in [#2013](https://github.com/hydephp/develop/pull/2013)
- **Breaking:** The `Author::create()` method now returns an array instead of a `PostAuthor` instance in [#1798](https://github.com/hydephp/develop/pull/1798) For more information, see below.
- **Breaking:** The `Author::get()` method now returns `null` if an author is not found, rather than creating a new instance in [#1798](https://github.com/hydephp/develop/pull/1798) For more information, see below.
- **Breaking:** The `hyde.authors` config setting should now be keyed by the usernames in [#1782](https://github.com/hydephp/develop/pull/1782) For more information, see below.
Expand Down Expand Up @@ -555,7 +555,7 @@ The new asset system is a complete rewrite of the HydeFront asset handling syste
- Added a new `npm run build` command for compiling frontend assets with Vite.
- Added Vite facade for Blade templates.
- Added Vite Hot Module Replacement (HMR) support to the realtime compiler.
- Build command now uses Vite to compile assets when the `--run-vite` flag is passed.
- Build command now uses Vite to compile assets when the `--vite` flag is passed.

- **Improved HydeFront integration.** ([#2024], [#2029], [#2031], [#2036], [#2037], [#2038], [#2039])
- HydeFront styles are now refactored into Tailwind.
Expand All @@ -576,7 +576,7 @@ The new asset system is a complete rewrite of the HydeFront asset handling syste

- Replaced Laravel Mix with Vite. ([#2010])
- You must now use `npm run build` to compile your assets, instead of `npm run prod`.
- Removed `--run-dev` and `--run-prod` build command flags, replaced by `--run-vite`. ([#2013])
- Removed `--run-dev` and `--run-prod` build command flags, replaced by `--vite`. ([#2013])
- Removed `DocumentationPage::getTableOfContents()` method. Table of contents are now generated using a Blade component. ([#2045])
- Removed `hyde.css` from HydeFront, requiring recompilation of assets if you were extending it. ([#2037])
- Changed how HydeFront is included in projects. Instead of separate `hyde.css` and `app.css`, all styles are now in `app.css`. ([#2024])
Expand Down
4 changes: 2 additions & 2 deletions docs/getting-started/console-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Here is a quick reference of all the available commands. You can also run `php h
<a name="build" style="display: inline-block; position: absolute; margin-top: -5rem;"></a>

```bash
php hyde build [--run-vite] [--run-prettier] [--pretty-urls] [--no-api]
php hyde build [--vite] [--run-prettier] [--pretty-urls] [--no-api]
```

Build the static site
Expand All @@ -75,7 +75,7 @@ Build the static site

| | |
|------------------|--------------------------------------------|
| `--run-vite` | Build frontend assets using Vite |
| `--vite` | Build frontend assets using Vite |
| `--run-prettier` | Format the output using NPM Prettier |
| `--pretty-urls` | Should links in output use pretty URLs? |
| `--no-api` | Disable API calls, for example, Torchlight |
Expand Down
12 changes: 6 additions & 6 deletions packages/framework/src/Console/Commands/BuildSiteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ class BuildSiteCommand extends Command
{
/** @var string */
protected $signature = 'build
{--run-vite : Build frontend assets using Vite}
{--vite : Build frontend assets using Vite}
{--run-prettier : Format the output using NPM Prettier}
{--pretty-urls : Should links in output use pretty URLs?}
{--no-api : Disable API calls, for example, Torchlight}
{--run-dev : [Removed] Use --run-vite instead}
{--run-prod : [Removed] Use --run-vite instead}';
{--run-dev : [Removed] Use --vite instead}
{--run-prod : [Removed] Use --vite instead}';

/** @var string */
protected $description = 'Build the static site';
Expand Down Expand Up @@ -88,7 +88,7 @@ protected function runPreBuildActions(): void
Config::set(['hyde.pretty_urls' => true]);
}

if ($this->option('run-vite')) {
if ($this->option('vite')) {
$this->runNodeCommand('npm run build', 'Building frontend assets for production!');
}

Expand Down Expand Up @@ -161,7 +161,7 @@ protected function getExitCode(): int
/**
* This method is called when the removed --run-dev or --run-prod options are used.
*
* @deprecated Use --run-vite instead
* @deprecated Use --vite instead
* @since v2.0 - This will be removed after 2-3 minor releases depending on the timeframe between them. (~v2.3)
*
* @codeCoverageIgnore
Expand All @@ -170,7 +170,7 @@ protected function checkForDeprecatedRunMixCommandUsage(): void
{
if ($this->option('run-dev') || $this->option('run-prod')) {
$this->error('The --run-dev and --run-prod options have been removed in HydePHP v2.0.');
$this->info('Please use --run-vite instead to build assets for production with Vite.');
$this->info('Please use --vite instead to build assets for production with Vite.');
$this->line('See https://github.com/hydephp/develop/pull/2013 for more information.');

exit(Command::INVALID);
Expand Down
2 changes: 1 addition & 1 deletion packages/framework/tests/Feature/StaticSiteServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public function testNodeActionOutputs()
{
Process::fake();

$this->artisan('build --run-prettier --run-vite')
$this->artisan('build --run-prettier --vite')
->expectsOutput('Building frontend assets for production! This may take a second.')
->expectsOutput('Prettifying code! This may take a second.')
->assertExitCode(0);
Expand Down
Loading