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

Acorn docs needed #315

Closed
18 tasks
Tracked by #2357
retlehs opened this issue Nov 19, 2021 · 1 comment
Closed
18 tasks
Tracked by #2357

Acorn docs needed #315

retlehs opened this issue Nov 19, 2021 · 1 comment

Comments

@retlehs
Copy link
Sponsor Member

retlehs commented Nov 19, 2021

Initial Acorn docs have been shipped 🎉 thanks to @alwaysblank @QWp6t @knowler via #314

Known additions that we want to get published:

  • Installation: Configuration
  • Basics: WP-CLI
  • Basics: How can I use Acorn in my plugin?
    • Can I distribute a plugin uses Acorn? How does that work?
  • Digging Deeper: Asset Management
    • Bundle
  • Digging Deeper: Console
  • Digging Deeper: Helpers
  • Digging Deeper: Cache
  • Digging Deeper: Collections
  • Digging Deeper: Logging
  • Digging Deeper: Filesystem
  • Packages: Installing Packages
  • Packages: Package Development
    • Mention extra.acorn.{providers,aliases} composer.json stuff
    • What is a service provider? How I make one?
    • How to provide a config file?
    • How to provide views? How to make those override-able?
@retlehs
Copy link
Sponsor Member Author

retlehs commented Feb 23, 2022

asset management

bundle

bundle localize example:

add_action('wp_enqueue_scripts', function () {
    bundle('app')->enqueue()->localize('example', ['hello' => 'world']);
}, 100);

ref https://github.com/roots/acorn/blob/9af5ffff189abd09436d4280df13c620675252a3/src/Roots/Acorn/Assets/Concerns/Enqueuable.php#L135-L152
ref https://github.com/roots/acorn/blob/9af5ffff189abd09436d4280df13c620675252a3/src/Roots/Acorn/Assets/Concerns/Enqueuable.php#L111-L133

@retlehs retlehs closed this as completed Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant