From 060428e6a51d9642a9c2fc95cfd6553dde13552a Mon Sep 17 00:00:00 2001 From: Zura Gabievi Date: Tue, 13 Dec 2016 14:24:43 +0400 Subject: [PATCH] folder structure for source files --- _bem.scss | 84 +++++++++---------- bower.json | 2 +- package.json | 2 +- _config.scss => src/_config.scss | 2 +- {functions => src/functions}/_bem-index.scss | 0 {functions => src/functions}/_explode.scss | 0 {functions => src/functions}/_get-block.scss | 0 {functions => src/functions}/_has-pseudo.scss | 0 {functions => src/functions}/_has-state.scss | 0 {functions => src/functions}/_implode.scss | 0 {functions => src/functions}/_is-block.scss | 0 {functions => src/functions}/_is-element.scss | 0 .../functions}/_is-modifier.scss | 0 {functions => src/functions}/_math-min.scss | 0 {functions => src/functions}/_splice.scss | 0 .../functions}/_str-replace.scss | 0 {helpers => src/helpers}/_block-selector.scss | 0 .../helpers}/_component-selector.scss | 0 .../helpers}/_element-selector.scss | 0 {helpers => src/helpers}/_hack-selector.scss | 0 .../helpers}/_modifier-selector.scss | 0 .../helpers}/_object-selector.scss | 0 .../helpers}/_pseudo-selector.scss | 0 .../helpers}/_relations-selector.scss | 0 {helpers => src/helpers}/_scope-selector.scss | 0 {helpers => src/helpers}/_state-selector.scss | 0 .../helpers}/_states-selector.scss | 0 {helpers => src/helpers}/_test-selector.scss | 0 {helpers => src/helpers}/_theme-selector.scss | 0 .../helpers}/_utility-selector.scss | 0 {mixins => src/mixins}/_block.scss | 0 {mixins => src/mixins}/_component.scss | 0 {mixins => src/mixins}/_element.scss | 0 {mixins => src/mixins}/_hack.scss | 0 {mixins => src/mixins}/_modifier.scss | 0 {mixins => src/mixins}/_object.scss | 0 {mixins => src/mixins}/_parse.scss | 0 {mixins => src/mixins}/_pseudo.scss | 0 {mixins => src/mixins}/_relations.scss | 0 {mixins => src/mixins}/_scope.scss | 0 {mixins => src/mixins}/_state.scss | 0 {mixins => src/mixins}/_states.scss | 0 {mixins => src/mixins}/_test.scss | 0 {mixins => src/mixins}/_theme.scss | 0 {mixins => src/mixins}/_utility.scss | 0 45 files changed, 45 insertions(+), 45 deletions(-) rename _config.scss => src/_config.scss (98%) rename {functions => src/functions}/_bem-index.scss (100%) rename {functions => src/functions}/_explode.scss (100%) rename {functions => src/functions}/_get-block.scss (100%) rename {functions => src/functions}/_has-pseudo.scss (100%) rename {functions => src/functions}/_has-state.scss (100%) rename {functions => src/functions}/_implode.scss (100%) rename {functions => src/functions}/_is-block.scss (100%) rename {functions => src/functions}/_is-element.scss (100%) rename {functions => src/functions}/_is-modifier.scss (100%) rename {functions => src/functions}/_math-min.scss (100%) rename {functions => src/functions}/_splice.scss (100%) rename {functions => src/functions}/_str-replace.scss (100%) rename {helpers => src/helpers}/_block-selector.scss (100%) rename {helpers => src/helpers}/_component-selector.scss (100%) rename {helpers => src/helpers}/_element-selector.scss (100%) rename {helpers => src/helpers}/_hack-selector.scss (100%) rename {helpers => src/helpers}/_modifier-selector.scss (100%) rename {helpers => src/helpers}/_object-selector.scss (100%) rename {helpers => src/helpers}/_pseudo-selector.scss (100%) rename {helpers => src/helpers}/_relations-selector.scss (100%) rename {helpers => src/helpers}/_scope-selector.scss (100%) rename {helpers => src/helpers}/_state-selector.scss (100%) rename {helpers => src/helpers}/_states-selector.scss (100%) rename {helpers => src/helpers}/_test-selector.scss (100%) rename {helpers => src/helpers}/_theme-selector.scss (100%) rename {helpers => src/helpers}/_utility-selector.scss (100%) rename {mixins => src/mixins}/_block.scss (100%) rename {mixins => src/mixins}/_component.scss (100%) rename {mixins => src/mixins}/_element.scss (100%) rename {mixins => src/mixins}/_hack.scss (100%) rename {mixins => src/mixins}/_modifier.scss (100%) rename {mixins => src/mixins}/_object.scss (100%) rename {mixins => src/mixins}/_parse.scss (100%) rename {mixins => src/mixins}/_pseudo.scss (100%) rename {mixins => src/mixins}/_relations.scss (100%) rename {mixins => src/mixins}/_scope.scss (100%) rename {mixins => src/mixins}/_state.scss (100%) rename {mixins => src/mixins}/_states.scss (100%) rename {mixins => src/mixins}/_test.scss (100%) rename {mixins => src/mixins}/_theme.scss (100%) rename {mixins => src/mixins}/_utility.scss (100%) diff --git a/_bem.scss b/_bem.scss index 3000ed5..8c177b2 100644 --- a/_bem.scss +++ b/_bem.scss @@ -6,51 +6,51 @@ /// @group sass-bem // Configuration -@import "config"; +@import "src/config"; // Functions -@import "functions/bem-index"; -@import "functions/is-modifier"; -@import "functions/is-element"; -@import "functions/has-state"; -@import "functions/has-pseudo"; -@import "functions/is-block"; -@import "functions/get-block"; -@import "functions/str-replace"; -@import "functions/math-min"; -@import "functions/explode"; -@import "functions/implode"; -@import "functions/splice"; +@import "src/functions/bem-index"; +@import "src/functions/is-modifier"; +@import "src/functions/is-element"; +@import "src/functions/has-state"; +@import "src/functions/has-pseudo"; +@import "src/functions/is-block"; +@import "src/functions/get-block"; +@import "src/functions/str-replace"; +@import "src/functions/math-min"; +@import "src/functions/explode"; +@import "src/functions/implode"; +@import "src/functions/splice"; // Helpers -@import "helpers/block-selector"; -@import "helpers/element-selector"; -@import "helpers/modifier-selector"; -@import "helpers/relations-selector"; -@import "helpers/object-selector"; -@import "helpers/component-selector"; -@import "helpers/utility-selector"; -@import "helpers/theme-selector"; -@import "helpers/scope-selector"; -@import "helpers/state-selector"; -@import "helpers/pseudo-selector"; -@import "helpers/states-selector"; -@import "helpers/hack-selector"; -@import "helpers/test-selector"; +@import "src/helpers/block-selector"; +@import "src/helpers/element-selector"; +@import "src/helpers/modifier-selector"; +@import "src/helpers/relations-selector"; +@import "src/helpers/object-selector"; +@import "src/helpers/component-selector"; +@import "src/helpers/utility-selector"; +@import "src/helpers/theme-selector"; +@import "src/helpers/scope-selector"; +@import "src/helpers/state-selector"; +@import "src/helpers/pseudo-selector"; +@import "src/helpers/states-selector"; +@import "src/helpers/hack-selector"; +@import "src/helpers/test-selector"; // Mixins -@import "mixins/block"; -@import "mixins/element"; -@import "mixins/modifier"; -@import "mixins/relations"; -@import "mixins/states"; -@import "mixins/pseudo"; -@import "mixins/parse"; -@import "mixins/object"; -@import "mixins/component"; -@import "mixins/utility"; -@import "mixins/theme"; -@import "mixins/scope"; -@import "mixins/state"; -@import "mixins/hack"; -@import "mixins/test"; +@import "src/mixins/block"; +@import "src/mixins/element"; +@import "src/mixins/modifier"; +@import "src/mixins/relations"; +@import "src/mixins/states"; +@import "src/mixins/pseudo"; +@import "src/mixins/parse"; +@import "src/mixins/object"; +@import "src/mixins/component"; +@import "src/mixins/utility"; +@import "src/mixins/theme"; +@import "src/mixins/scope"; +@import "src/mixins/state"; +@import "src/mixins/hack"; +@import "src/mixins/test"; diff --git a/bower.json b/bower.json index 342e454..8adfd7a 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "sass-bem", - "version": "2.6.1", + "version": "2.6.2", "main": "_bem.scss", "description": "Amazing package for sass to write bem classes, with namespaces and more advanced features.", "authors": [ diff --git a/package.json b/package.json index 84cdb64..ce17686 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sass-bem", - "version": "2.6.1", + "version": "2.6.2", "description": "Amazing package for sass to write bem classes, with namespaces and more advanced features.", "main": "_bem.scss", "repository": { diff --git a/_config.scss b/src/_config.scss similarity index 98% rename from _config.scss rename to src/_config.scss index e2ec41f..28d10d6 100644 --- a/_config.scss +++ b/src/_config.scss @@ -1,6 +1,6 @@ @charset "UTF-8"; -@import "node_modules/sass-config/config"; +@import "../node_modules/sass-config/config"; /// Default sass-bem configuration settings. /// diff --git a/functions/_bem-index.scss b/src/functions/_bem-index.scss similarity index 100% rename from functions/_bem-index.scss rename to src/functions/_bem-index.scss diff --git a/functions/_explode.scss b/src/functions/_explode.scss similarity index 100% rename from functions/_explode.scss rename to src/functions/_explode.scss diff --git a/functions/_get-block.scss b/src/functions/_get-block.scss similarity index 100% rename from functions/_get-block.scss rename to src/functions/_get-block.scss diff --git a/functions/_has-pseudo.scss b/src/functions/_has-pseudo.scss similarity index 100% rename from functions/_has-pseudo.scss rename to src/functions/_has-pseudo.scss diff --git a/functions/_has-state.scss b/src/functions/_has-state.scss similarity index 100% rename from functions/_has-state.scss rename to src/functions/_has-state.scss diff --git a/functions/_implode.scss b/src/functions/_implode.scss similarity index 100% rename from functions/_implode.scss rename to src/functions/_implode.scss diff --git a/functions/_is-block.scss b/src/functions/_is-block.scss similarity index 100% rename from functions/_is-block.scss rename to src/functions/_is-block.scss diff --git a/functions/_is-element.scss b/src/functions/_is-element.scss similarity index 100% rename from functions/_is-element.scss rename to src/functions/_is-element.scss diff --git a/functions/_is-modifier.scss b/src/functions/_is-modifier.scss similarity index 100% rename from functions/_is-modifier.scss rename to src/functions/_is-modifier.scss diff --git a/functions/_math-min.scss b/src/functions/_math-min.scss similarity index 100% rename from functions/_math-min.scss rename to src/functions/_math-min.scss diff --git a/functions/_splice.scss b/src/functions/_splice.scss similarity index 100% rename from functions/_splice.scss rename to src/functions/_splice.scss diff --git a/functions/_str-replace.scss b/src/functions/_str-replace.scss similarity index 100% rename from functions/_str-replace.scss rename to src/functions/_str-replace.scss diff --git a/helpers/_block-selector.scss b/src/helpers/_block-selector.scss similarity index 100% rename from helpers/_block-selector.scss rename to src/helpers/_block-selector.scss diff --git a/helpers/_component-selector.scss b/src/helpers/_component-selector.scss similarity index 100% rename from helpers/_component-selector.scss rename to src/helpers/_component-selector.scss diff --git a/helpers/_element-selector.scss b/src/helpers/_element-selector.scss similarity index 100% rename from helpers/_element-selector.scss rename to src/helpers/_element-selector.scss diff --git a/helpers/_hack-selector.scss b/src/helpers/_hack-selector.scss similarity index 100% rename from helpers/_hack-selector.scss rename to src/helpers/_hack-selector.scss diff --git a/helpers/_modifier-selector.scss b/src/helpers/_modifier-selector.scss similarity index 100% rename from helpers/_modifier-selector.scss rename to src/helpers/_modifier-selector.scss diff --git a/helpers/_object-selector.scss b/src/helpers/_object-selector.scss similarity index 100% rename from helpers/_object-selector.scss rename to src/helpers/_object-selector.scss diff --git a/helpers/_pseudo-selector.scss b/src/helpers/_pseudo-selector.scss similarity index 100% rename from helpers/_pseudo-selector.scss rename to src/helpers/_pseudo-selector.scss diff --git a/helpers/_relations-selector.scss b/src/helpers/_relations-selector.scss similarity index 100% rename from helpers/_relations-selector.scss rename to src/helpers/_relations-selector.scss diff --git a/helpers/_scope-selector.scss b/src/helpers/_scope-selector.scss similarity index 100% rename from helpers/_scope-selector.scss rename to src/helpers/_scope-selector.scss diff --git a/helpers/_state-selector.scss b/src/helpers/_state-selector.scss similarity index 100% rename from helpers/_state-selector.scss rename to src/helpers/_state-selector.scss diff --git a/helpers/_states-selector.scss b/src/helpers/_states-selector.scss similarity index 100% rename from helpers/_states-selector.scss rename to src/helpers/_states-selector.scss diff --git a/helpers/_test-selector.scss b/src/helpers/_test-selector.scss similarity index 100% rename from helpers/_test-selector.scss rename to src/helpers/_test-selector.scss diff --git a/helpers/_theme-selector.scss b/src/helpers/_theme-selector.scss similarity index 100% rename from helpers/_theme-selector.scss rename to src/helpers/_theme-selector.scss diff --git a/helpers/_utility-selector.scss b/src/helpers/_utility-selector.scss similarity index 100% rename from helpers/_utility-selector.scss rename to src/helpers/_utility-selector.scss diff --git a/mixins/_block.scss b/src/mixins/_block.scss similarity index 100% rename from mixins/_block.scss rename to src/mixins/_block.scss diff --git a/mixins/_component.scss b/src/mixins/_component.scss similarity index 100% rename from mixins/_component.scss rename to src/mixins/_component.scss diff --git a/mixins/_element.scss b/src/mixins/_element.scss similarity index 100% rename from mixins/_element.scss rename to src/mixins/_element.scss diff --git a/mixins/_hack.scss b/src/mixins/_hack.scss similarity index 100% rename from mixins/_hack.scss rename to src/mixins/_hack.scss diff --git a/mixins/_modifier.scss b/src/mixins/_modifier.scss similarity index 100% rename from mixins/_modifier.scss rename to src/mixins/_modifier.scss diff --git a/mixins/_object.scss b/src/mixins/_object.scss similarity index 100% rename from mixins/_object.scss rename to src/mixins/_object.scss diff --git a/mixins/_parse.scss b/src/mixins/_parse.scss similarity index 100% rename from mixins/_parse.scss rename to src/mixins/_parse.scss diff --git a/mixins/_pseudo.scss b/src/mixins/_pseudo.scss similarity index 100% rename from mixins/_pseudo.scss rename to src/mixins/_pseudo.scss diff --git a/mixins/_relations.scss b/src/mixins/_relations.scss similarity index 100% rename from mixins/_relations.scss rename to src/mixins/_relations.scss diff --git a/mixins/_scope.scss b/src/mixins/_scope.scss similarity index 100% rename from mixins/_scope.scss rename to src/mixins/_scope.scss diff --git a/mixins/_state.scss b/src/mixins/_state.scss similarity index 100% rename from mixins/_state.scss rename to src/mixins/_state.scss diff --git a/mixins/_states.scss b/src/mixins/_states.scss similarity index 100% rename from mixins/_states.scss rename to src/mixins/_states.scss diff --git a/mixins/_test.scss b/src/mixins/_test.scss similarity index 100% rename from mixins/_test.scss rename to src/mixins/_test.scss diff --git a/mixins/_theme.scss b/src/mixins/_theme.scss similarity index 100% rename from mixins/_theme.scss rename to src/mixins/_theme.scss diff --git a/mixins/_utility.scss b/src/mixins/_utility.scss similarity index 100% rename from mixins/_utility.scss rename to src/mixins/_utility.scss