Skip to content

(WiP) BEM-stack with the most popular front-end framework for developing responsive, mobile first projects on the web

Notifications You must be signed in to change notification settings

CultOfOpenSource/bem-bootstrap

Repository files navigation

BEM with Bootstrap Bootstrap Logo BEM Logo

Build Status

Usage

npm i -D bem-bootstrap

Add .bem/enb-make.js:

const nodeConfigSetup = require('bem-bootstrap');
const isProd = process.env.YENV === 'production';
const levels = [
    { path: 'node_modules/bem-bootstrap/components', check: false }
];

module.exports = function (config) {

    config.nodes('bundles/*', function (nodeConfig) {
        nodeConfig.addTechs(nodeConfigSetup(levels, isProd));

        nodeConfig.addTargets([
            '?.html',
            '?.min.js',
            '?.min.css'
        ]);
    });
};

Add bundles/index/index.bemjson.js:

module.exports = {
    block: 'page',
    title: 'Title of the page',
    favicon: '/favicon.ico',
    head: [
        { elem: 'meta', attrs: { name: 'description', content: '' } },
        { elem: 'meta', attrs: { name: 'viewport', content: 'width=device-width, initial-scale=1' } },
        { elem: 'css', url: 'index.min.css' }
    ],
    scripts: [{ elem: 'js', url: 'index.min.js' }],
    content: [
        {
            block: 'container',
            mods: {
                fluid: true
            },
            content: [
                {
                    block: 'alert',
                    mods: {
                        success: true,
                        dismissible: true
                    },
                    content: '<strong>Holy guacamole!</strong> You should check in on some of those fields below.'
                }
            ]
        }
    ]
};
npm start

Docs

Videos

About

(WiP) BEM-stack with the most popular front-end framework for developing responsive, mobile first projects on the web

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published