Skip to content

Collects data of BEM blocks library for bem-lib-site module

Notifications You must be signed in to change notification settings

bem-site/bem-lib-site-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bem-lib-site-data

Collects data of BEM blocks library for bem-lib-site module.

Installation

npm i bem-lib-site-data

Usage

Library config

Consider adding you library to config.

Library config format (all fields are optional):

module.exports = {
    modules: {
        'bem-lib-site': {
            langs: ['ru', 'en'],

            data: {
                tempFolder: 'tmp',
                outputFolder: 'output-data'
            },

            view: {
                outputFolder: 'output'
            },

            platforms: { // TODO: make it really optional
                'desktop': ['common', 'deskpad', 'desktop'],
                'touch-phone': ['common', 'touch', 'touch-phone'],
                'touch-pad': ['common', 'deskpad', 'touch', 'touch-pad']
            },
            libs: {
                'bem-components': {
                    langs: ['ru', 'en'],
                    github: {
                        url: 'github.com',
                        user: 'bem',
                        repo: 'bem-components',
                        defaultBranch: 'v3'
                    }
                }
            }
        }
    }
};

Anatomy

Build process is following:

  1. Install bower dependencies of a library
  2. Collect source files list
  3. Build examples
  4. Build docs
  5. Move results to destination folder. Destination folder ('./output-data') may be changed in config as well as needed platforms and languages.

Notes

To build examples iframes there should be bem-core library as bower dependency (otherwise there won't be page template).

About

Collects data of BEM blocks library for bem-lib-site module

Resources

Stars

Watchers

Forks

Packages

No packages published