Wallogit.com
2017 © Pedro Peláez
Tailwind and Bootstrap theme setup generator for Pyrocms., (*1)
I have written this extension simply to help myself get started more quickly and in a way i prefer to have things setup myself., (*2)
If you like it you are free to use it., (*3)
composer create-project pyrocms/pyrocms [projectname] php artisan install
For more information, see PyroCMS documentation, (*4)
Add the pixney repository to your composer., (*5)
{
"repositories": [{
"type": "composer",
"url": "https://packages.pixney.com"
}]
}
Require it:, (*6)
composer require "pixney/avviare-extension" composer dump php artisan addon:install avviare
Run the following command to generate the theme., (*7)
php artisan avviare:create mycompany.theme.themename
Example: pixney.theme.mytheme, (*8)
If you use svgs, it's a recommended to create a svg sprite. After you have run npm install you simply place your svgs in resources/svgs and when you run npm run watch/production this plugin will create the svg sprite map for you., (*9)
Include the spritemap in your view:, (*10)
<div style="display:none">
{% include "theme::partials/svgs" %}
</div>
To display the svg :, (*11)
<svg><use xlink:href="#example" /></svg>
Within the webpack.mix.js file, set the proxy and files to watch for:, (*12)
.browserSync({
proxy: 'devsite.test',
files: [
'public/js/**/*.js',
'public/css/**/*.css'
]
})
If you don't want to use svg sprite plugin or browsersync, simply comment out or remove the reference within webpack.mix.js, (*13)
Simple styling, just remove it and make your own.., (*14)
, (*15)
Run npm install from the root directory (basepath) to install all the dependencies specified in your package.json file., (*16)
At the end run npm run watch to transpile/compile everything., (*17)
Either to to display->settings within the admin to activate your theme or in your .env file specify:
STANDARD_THEME=mycompany.theme.themename, (*18)
Within your theme directory, you want to change the images placed within resources/images. You can change it's location as well, but if you do make sure you update metadata.twig., (*19)