Giter VIP home page Giter VIP logo

generator-bem-stub's Introduction

generator-bem-stub Build Status Coverage Status Dependency Status devDependency Status

generator-bem-stub is a generator of BEM projects for Yeoman.

Introduction

There are several assemblers for BEM projects โ€” bem-tools and ENB. What does any developer do by starting a new BEM project? First and foremost, a developer creates a configuration file for an assembler which he is going to use. Unfortunately it is rather time-consuming and prone to error process both for bem-tools and ENB.

In order to save time and decrease barrier to entry into the tools for assembly, we decided to create a generator of configuration files which allows a developer to configure the assembly without immersion into tools' API. This generator provides you the ability to get the base of BEM project in few minutes by answering the simple questions.

Install

To install the generator run:

$ npm install -g generator-bem-stub

Usage

Run:

$ yo bem-stub

To create the config file fitting for your project, the generator will ask several questions. Note that some of them depend on the previous ones, for example:

  • If you have chosen library bem-components, generator-bem-stub will choose Autoprefixer and CSS preprocessor Stylus as default.

  • You can choose template engine BH only if you have chosen assembler ENB.

  • If you have not chosen technology BEMJSON, bundles will be assembled from BEMDECL.

  • You can build HTML only if you have chosen technology BEMJSON and template engine BEMHTML or BH.

  • You will be able to choose which separate files to minimize only if you have chosen assembler ENB (bem-tools does not support configuration of minimization, all possible files are minimized by borschik).

What does generator-bem-stub support?

Installation of dependencies

generator-bem-stub will install all dependencies and libraries after generation of the project.

If you do not want to install dependencies and libraries, use the option --skip-install:

$ yo bem-stub --skip-install

Versions

You can check in the file app/config/versions.js which versions of the dependencies and libraries generator-bem-stub uses.

generator-bem-stub's People

Contributors

dab avatar egavr avatar jk708 avatar qfox avatar tadatuta avatar

Watchers

 avatar  avatar  avatar

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.