skyline-project/component-template

Skyline CMS Component template to create css and js files that can be required by templates

v0.8.0 2020-10-02 12:56 UTC

This package is auto-updated.

Last update: 2024-04-29 04:46:44 UTC


README

A PhpStorm template to create custom Skyline CMS component templates.

Create Project

$ composer create-project skyline-project/component-template ./my-template

Then update the component's name:

  1. composer.json
    line 2: skyline-project/component-template => your-component
  2. package.json
    line: 2: skyline-component-template => your-component
    line: 9: … dist/skyline-component-template.min.css => … dist/your-component.min.css
  3. components.cfg.php
    lines 14 and 15, 22 and 23, 30 and 31.

Start Developing

JS: src/index.js
CSS: style/main.scss

Building

Just run npm predefined scripts:

Build JS only (dev): npm run build:js
Build CSS only: npm run build:css
Build whole component: npm run build