Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asset Publish Command #2731

Merged
merged 12 commits into from
Apr 19, 2021
Merged

Asset Publish Command #2731

merged 12 commits into from
Apr 19, 2021

Conversation

askvortsov1
Copy link
Sponsor Member

@askvortsov1 askvortsov1 commented Mar 23, 2021

Followup to #2729
Part of #1783
Part of flarum/issue-archive#121
Fixes #1644

Changes proposed in this pull request:

Reviewers should focus on:

  • Already uploaded logos and favicons won't be updated. However, I think that's the correct way to approach this: this command should publish assets from source code and extension code; if a forum is migrating from one filesystem driver to another, that should be an entirely different system IMO (and probably not even in core).

Confirmed

  • Frontend changes: tested on a local Flarum installation.
  • Backend changes: tests are green (run composer test).

@askvortsov1 askvortsov1 changed the base branch from master to as/use-laravel-filesystem March 23, 2021 19:57
Copy link
Member

@luceos luceos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not tested but looking excellent ;)

Copy link
Contributor

@tankerkiller125 tankerkiller125 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tested locally, but code wise this looks good

@askvortsov1
Copy link
Sponsor Member Author

I'm going to wait until the other 2 PRs are approved, then merge everything at once in case something changes.

@luceos
Copy link
Member

luceos commented Apr 2, 2021

I'm missing commits to fix the installation procedure.

@askvortsov1
Copy link
Sponsor Member Author

I'm missing commits to fix the installation procedure.

Pardon? Modifying the installation procedure isn't part of this PR, and I'm not sure it can be: wouldn't we need InstalledSite in place before we can run commands?

@luceos
Copy link
Member

luceos commented Apr 2, 2021

The installer publishes the fonts. That's what I meant. You can't split it out and then not fix the installer.

@askvortsov1
Copy link
Sponsor Member Author

The installer publishes the fonts. That's what I meant. You can't split it out and then not fix the installer.

Yes, but it doesn't use the command, it directly copies it over within the filesystem: https://github.com/flarum/core/blob/eac7d1b7ade79f0d4ee3b44b210bc09005491316/src/Install/Steps/PublishAssets.php#L39-L45

@luceos
Copy link
Member

luceos commented Apr 9, 2021

@askvortsov1 that, I missed. Disregard and continue ;)

Base automatically changed from as/use-laravel-filesystem to master April 19, 2021 19:11
@askvortsov1 askvortsov1 merged commit 4974c91 into master Apr 19, 2021
@askvortsov1 askvortsov1 deleted the as/asset_publish_command branch April 19, 2021 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New command to publish assets
3 participants