Skip to content

pvolok/PvStaticsBundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PvStaticsBundle

Installation

To composer.json:

{
    "require": {
        "pv/statics-bundle": "*@dev"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "git@github.com:pvolok/PvStaticsBundle.git"
        }
    ]
}

To AppKernel:

new Pv\StaticsBundle\PvStaticsBundle(),

Common Principles

Paths

Paths must be specified by two ways:

  1. Absolute: @MyCoolBundle/js/file.js
  2. Relative: ./dir/file.js

File Types

JavaScript

Include:

// #include './file.js';
// #include './tpl.soy';
// #include './style.less';

Depend (files included in this files will not be included in current):

// #depend '@MySiteBundle/js/global.js';
// #depend '@MySiteBundle/js/global.less';

Less

Include:

@import './bootstrap.less';

Soy

Only standard stuff.

Sprites

TBD

About

My old hack for static files. The code is ugly and untested. 50% is a dead code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published