Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add alias @ for symbol start entity #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ilyar
Copy link

@ilyar ilyar commented Mar 25, 2018

Fix #6

@ilyar ilyar force-pushed the add_alias_start_entity branch 2 times, most recently from d0e932b to fc0c09d Compare March 25, 2018 20:40
ilyar added 2 commits March 25, 2018 23:47
Fix error: npm is known not to run on Node.js v0.12.18
You'll need to upgrade to a newer version in order to use this
version of npm. Supported versions are 4, 6, 7, 8, 9. You can find the
@ilyar ilyar force-pushed the add_alias_start_entity branch from fc0c09d to a7fbdcf Compare March 25, 2018 20:47
@@ -22,6 +22,14 @@ function buildSelector (ctx, mod) {
}

export default postcss.plugin('pobem', () => (css) => {
css.walkAtRules(/block|elem|mod/, function (rule) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ilyar может стоит объединить это с обходом на 33 строке?. Зачем 2 раза делать практически аналогичные операции?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это не возможно т.к. walkAtRules обходит rule типа atrule, walkRules обходит rule типа rule, возможно это получится объединить если использовать walk
https://t.me/bem_ru/24592

@belozer почему возникает желание объединить?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Думаю будет верно подумать в сторону выделить процесс разбора в отдельный метод.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ilyar не так прочитал метод )

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@belozer а что думаешь о предложении?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ilyar пока размышляю над #8 Хочется добиться максимальной валидности и однозначности.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Скорее всего будет bem-scope стиль. Наиболее близкий к ванильному css

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants