2.0.1 ā€¢ Published 7 years ago

bem2ng v2.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

Installation

npm install bem2ng

Features

ā¤ Bem2ng have two command

> and five options

Examples

Create/Update component
# Create component
bem2ng create -b input

# Update component
bem2ng update -s --block=input
bem2ng update -t --block=input
bem2ng update -a --block=input

# Copy Global Style
bem2ng create --global-style=web/

Note: When you first start bem2ng checks if configuration file (.bem2ngrc) exists, otherwise the program will try to create it and ask you to enter in terminal the requested data. The path of these directories should be relative.

Create file configuration
$ bem2ng create -b input
* Missing or not correctly configured .bem2ngrc file
? Specify language from the list of available [ en, ru, ro ] default is: (en)
? Specify location of the Angular project: ng-app/
? Specify language is used in Angular project [ dart, ts ]: dart
? Specify location of the BEM project: blocks/
? Specify location of the collected html BEM project: bundles/
* The module works with PostCSS
? Specify by order used plugins separated by a comma: postcss-nested, pobem
? Specify postcss parser if necessary: sugarss
? Specify the extension of your stylesheets: sss

āœ” Configuration file .bem2ngrc created successfully

# content of the created configuration file
# {
#     "lang": "en",
#     "src_ng2": "ng-app/",
#     "tech_ng2": "dart",
#     "src_bem": "blocks/",
#     "out_bem": "bundles/",
#     "postcss_plugins": "postcss-nested, pobem",
#     "postcss_parser": "sugarss",
#     "css_extension": "sss"
# }

License

MIT

2.0.1

7 years ago

2.0.0

7 years ago

1.0.33

7 years ago

1.0.32

7 years ago

1.0.31

7 years ago

1.0.30

7 years ago

1.0.29

7 years ago

1.0.28

7 years ago

1.0.27

7 years ago

1.0.26

7 years ago

1.0.25

7 years ago

1.0.24

7 years ago

1.0.23

7 years ago

1.0.22

7 years ago

1.0.21

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago