thinkshout / thinkwp-starter-theme

Forked for ThinkShout from Timber: a dead-simple theme that you can build anything from
MIT License
1 stars 0 forks source link

77 base assets #79

Closed JulesKhong closed 5 months ago

JulesKhong commented 7 months ago

77 This PR removes base-assets files from thinkwp-starter-theme, and adds a composer script to bring them back in from the thinkshout/base-assets repo.

This PR adds a new composer script file to the theme itself. This also works if we want to add the script to the top-level composer.json file instead. In that case, the script would need to be removed from this PR.

If adding it to the top level composer.json file, the script needs to be changed slightly, and the theme name would need to use a variable instead of pointing to think-friends:

"scripts": {
    "scaffold": [
      "git clone git@github.com:thinkshout/base-assets.git",
      "mv base-assets/scaffold/* web/wp-content/themes/custom/think-friends/",
      "rm -rf base-assets"
    ]
  }

To test:

Known bugs

jamacon36 commented 5 months ago

@JulesKhong Finally getting around to merging this 🎉