bem-tools / bem-tools-create

bem create command
Other
32 stars 4 forks source link

Implement support for techs defined in config for levels #4

Closed vithar closed 8 years ago

vithar commented 8 years ago

Techs specified in command-line must be merged

  1. with techs specified for this level OR
  2. with project techs OR
  3. with global user techs

E.g. ~/.bemconf.json

{
  "techs": [
      "js"
  ]
}

~/project/bemconf.json

{
  "root": true,
  "techs": [
      "styl"
  ]
}

~/project/level/bemconf.json

{
  "techs": [
      "css"
  ]
}

The command bem create -t bemhtml b creates block b with bemhtml and css techs.

@tadatuta, do I think in right direction?

tadatuta commented 8 years ago

yes, but we still need forceTech to create entities without regard of configs