2017 © Pedro Peláez
 

streams-addon avviare-extension

image

pixney/avviare-extension

  • Sunday, June 17, 2018
  • by Pixney-William
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

About

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)

How to use it

Install pyro cms

composer create-project pyrocms/pyrocms [projectname]
php artisan install

For more information, see PyroCMS documentation, (*4)

Install Avviare

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

Create a theme

Run the following command to generate the theme., (*7)

php artisan avviare:create mycompany.theme.themename

Example: pixney.theme.mytheme, (*8)

SVG Spitemaps (svg-spritemap-webpack-plugin)

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)

Using an svg within twig files

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>

Use Browsersync

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)

Styling

Simple styling, just remove it and make your own.., (*14)

Image is showing the theme styling, (*15)

After install

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)

Make sure you are using the theme.

Either to to display->settings within the admin to activate your theme or in your .env file specify: STANDARD_THEME=mycompany.theme.themename, (*18)

Change the Open Graph and Favicon images

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)

The Versions

17/06 2018

dev-master

9999999-dev

  Sources   Download

17/06 2018

0.1.12

0.1.12.0

  Sources   Download

16/06 2018

0.1.11

0.1.11.0

  Sources   Download

16/06 2018

0.1.1

0.1.1.0

  Sources   Download

16/06 2018

0.1.0

0.1.0.0

  Sources   Download