roots / acorn-prettify

Acorn Prettify contains a collection of modules to apply theme-agnostic front-end modifications to your Acorn-powered WordPress sites.
https://roots.io/announcing-acorn-prettify/
MIT License
38 stars 1 forks source link

No publishable resources for tag [prettify-config] - acorn has been initialized #10

Closed octoxan closed 5 months ago

octoxan commented 5 months ago

Version

v1.0.1

What did you expect to happen?

Some configuration file to be published.

What actually happens?

No configuration file published, claims no publishable resources for tag [prettify-config]

Steps to reproduce

  1. Install a new Sage 10 theme with composer
  2. cd into new Sage theme
  3. add "post-autoload-dump" to composer.json
  4. wp acorn acorn:init to create config directory
  5. composer require roots/acorn-prettify to install acorn-prettify
  6. wp acorn optimize:clear because I saw this fix a previous issue with this
  7. wp acorn vendor:publish --tag=prettify-config
  8. observe error that there is no tags to publish

System info

Ubuntu 22.04 LTS

Log output

No publishable resources for tag [prettify-config]

Please confirm this isn't a support request.

Yes

Full composer.json

{
  "name": "roots/sage",
  "type": "wordpress-theme",
  "license": "MIT",
  "description": "WordPress starter theme with a modern development workflow",
  "homepage": "https://roots.io/sage/",
  "authors": [
    {
      "name": "Ben Word",
      "email": "ben@benword.com",
      "homepage": "https://github.com/retlehs"
    },
    {
      "name": "Scott Walkinshaw",
      "email": "scott.walkinshaw@gmail.com",
      "homepage": "https://github.com/swalkinshaw"
    },
    {
      "name": "QWp6t",
      "email": "hi@qwp6t.me",
      "homepage": "https://github.com/qwp6t"
    },
    {
      "name": "Brandon Nifong",
      "email": "brandon@tendency.me",
      "homepage": "https://github.com/log1x"
    }
  ],
  "keywords": [
    "wordpress"
  ],
  "support": {
    "issues": "https://github.com/roots/sage/issues",
    "forum": "https://discourse.roots.io/"
  },
  "autoload": {
    "psr-4": {
      "App\\": "app/"
    }
  },
  "require": {
    "php": ">=8.1",
    "roots/acorn": "^4.1",
    "roots/acorn-prettify": "^1.0"
  },
  "require-dev": {
    "laravel/pint": "^1.13"
  },
  "suggest": {
    "log1x/sage-directives": "A collection of useful Blade directives for WordPress and Sage (^1.0)."
  },
  "config": {
    "optimize-autoloader": true,
    "preferred-install": "dist",
    "sort-packages": true
  },
  "minimum-stability": "dev",
  "prefer-stable": true,
  "extra": {
    "acorn": {
      "providers": [
        "App\\Providers\\ThemeServiceProvider"
      ]
    }
  },
  "post-autoload-dump": [
    "Roots\\Acorn\\ComposerScripts::postAutoloadDump"
  ]
}
octoxan commented 5 months ago

Ah the init command actually needed is wp acorn acorn:init storage or it won't publish any tags. Didn't even need the optimize:clear

That command isn't mentioned on the installing Sage or installing Acorn docs, btw.

https://roots.io/acorn/docs/installation/