Giter Club home page Giter Club logo

bem-lib-site-view's People

Contributors

ilyar avatar tadatuta avatar vithar avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bem-lib-site-view's Issues

Невозможно установить из исходников

Если поставить на уровне проекта:

$ npm i -D bem-site/bem-lib-site-data
$ npm i -D bem-site/bem-lib-site-view

скопировать в проект реализацию bem-lib-site:

$ cp -r bem-lib-site/bin project
$ cp index.js project 

Получаю ошибку:

$ ./bin/bem-lib-site .
module.js:341
    throw err;
    ^

Error: Cannot find module '/home/user/project/node_modules/bem-lib-site-view/desktop.bundles/index/index.bemtree'
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (/home/user/project/node_modules/bem-lib-site-view/lib/process-blocks.js:11:15)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)

Важно отметить, что использовать дебаг при стили объявления переменных через один var невозможно, поправите если я не прав. Все меняется и дебаг становится возможным когда один var на одну перемененную.

[предложение] Возможность предопределять и доопределять шаблона документации

Это поведение используется для предопределения и доопределения блоков участвующий в генерации документации.

  • По умолчанию, если есть папка bem-lib-site-view (поиск через https://github.com/tadatuta/betterc), то ее содержание участвует в процессе генерации документации, название стоит обсудить;
  • Дополнительно, положение переопределений можно задавать через .bemrc.

Platforms files overwrite each other

I think there is a problem with copying all files to the one folder like this:

cpy([path.join(pathToData, '{' + platforms.join() + '}' + '.examples', '**', '*.{html,css,js}')], outputFolder)
output/
    ├── data/
    │ └──...
    └── bem-components/
        ├── ru/
        │ ├── desktop/
        │ │ ├── button/
        │ │ │ └── index.html
        │ │ └── ...
        │ ├── touch-pad/
        │ │ ├── button/
        │ │ │ └── index.html
        │ │ └── ...
        │ └── touch-phone/
        │     ├── button/
        │     │ └── index.html
        │     └── ...
        │
        ├── AwGbvB7vF9bbamIP8ICDgP5bA-w.bemdecl.js
        └── ...

Example files for different platforms have the same name, so desktop files will be overwritten by touch-pad files and touch-pad will be overwritten by touch-phone.

What do you think about this organization?

output/
    ├── data/
    │ └──...
    └── bem-components/
        ├── ru/
        │ ├── desktop/
        │ │ ├── button/
        │ │ │ ├── index.html
        │ │ │ ├── AwGbvB7vF9bbamIP8ICDgP5bA-w.bemdecl.js
        │ │ │ └── ...
        │ │ └── ...
        │ ├── touch-pad/
        │ │ ├── button/
        │ │ │ ├── index.html
        │ │ │ ├── AwGbvB7vF9bbamIP8ICDgP5bA-w.bemdecl.js
        │ │ │ └── ...
        │ │ └── ...
        │ └── touch-phone/
        │     ├── button/
        │     │ ├── index.html
        │     │ ├── AwGbvB7vF9bbamIP8ICDgP5bA-w.bemdecl.js
        │     │ └── ...
        │     └── ...
        └──...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.