Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
K
kpp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexandr Veselov
kpp
Commits
860de3ec
Commit
860de3ec
authored
Jan 29, 2019
by
Nikolay Gromov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:nicothin/NTH-start-project
parents
8d96698f
4bc3e3e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gulpfile.js
gulpfile.js
+2
-2
No files found.
gulpfile.js
View file @
860de3ec
...
@@ -37,7 +37,7 @@ const path = require('path');
...
@@ -37,7 +37,7 @@ const path = require('path');
const
buildLibrary
=
process
.
env
.
BUILD_LIBRARY
==
'yes'
?
true
:
false
;
const
buildLibrary
=
process
.
env
.
BUILD_LIBRARY
==
'yes'
?
true
:
false
;
const
nth
=
{};
const
nth
=
{};
nth
.
config
=
require
(
'./config.js'
);
nth
.
config
=
require
(
'./config.js'
);
nth
.
blocksFromHtml
=
[];
// блоки из HTML (только если имеют свою папку блока!)
nth
.
blocksFromHtml
=
nth
.
config
.
alwaysAddBlocks
;
// блоки из конфига сразу добавим в список блоков
nth
.
scssImportsList
=
[];
// список импортов стилей
nth
.
scssImportsList
=
[];
// список импортов стилей
const
dir
=
nth
.
config
.
dir
;
const
dir
=
nth
.
config
.
dir
;
...
@@ -467,7 +467,7 @@ function getClassesToBlocksList(file, enc, cb) {
...
@@ -467,7 +467,7 @@ function getClassesToBlocksList(file, enc, cb) {
if
(
processThisFile
)
{
if
(
processThisFile
)
{
const
fileContent
=
file
.
contents
.
toString
();
const
fileContent
=
file
.
contents
.
toString
();
let
classesInFile
=
getClassesFromHtml
(
fileContent
);
let
classesInFile
=
getClassesFromHtml
(
fileContent
);
nth
.
blocksFromHtml
=
[];
//
nth.blocksFromHtml = [];
// Обойдём найденные классы
// Обойдём найденные классы
for
(
let
item
of
classesInFile
)
{
for
(
let
item
of
classesInFile
)
{
// Не Блок или этот Блок уже присутствует?
// Не Блок или этот Блок уже присутствует?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment