Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Added Elixir option to ThemeScaffold #27
Not sure if this is something you'd want for this module. I was planning to put it in a separate one but thought I'd check in first to see if you'd prefer to have it as part of the existing ThemeScaffold.
Added the option to include elixir as part of the theme scaffolding. During the setup you can choose to include elixir and specify the version if you like.
If you choose to include Elixir as part of the theme scaffolding it will be configured to look for source files in THEME_NAME/resources and generate your assets within your THEME_NAME/assets directory.
It also includes the 'stylistPublish' Elixir extension. An updated version of the snippet documented here: https://asgardcms.com/docs/themes/usage#elixir
New unit tests were added to make sure it's backwards compatible. No elixir files are created when you choose 'no' during setup. Tests were added to validate the elixir files get created as well when you choose 'yes' during setup.
To manually test:
The .php_cs file seems to be out-dated so I ran this (tried to match it up as best as I could)
Not sure if you're still following the PSR2 standards since most of the files failed the unix line endings test, so I left them as-is.
@nWidart I'll tinker around with this some more tomorrow. Unfortunately when I run
Is there some other script I need to run beforehand?
Closing since I'm unable to run php-cs-fixer. If I find time to troubleshoot this I'll re-open in the future.
Tried running this (as described here: https://asgardcms.com/docs/getting-started/contributing#style-guide)
Corrected it to
Tried to run it a few ways and keep getting this error. I have to get back to my project but will try and find time to look into this when I can.