Skip to content

Commit

Permalink
Merge pull request #1 from appwilio/build-script
Browse files Browse the repository at this point in the history
автогенерация иконок
  • Loading branch information
kompolom authored Jul 13, 2016
2 parents f2bfe26 + 0389b1e commit 712db54
Show file tree
Hide file tree
Showing 11 changed files with 93 additions and 607 deletions.
1 change: 0 additions & 1 deletion .bem/level.js

This file was deleted.

24 changes: 0 additions & 24 deletions .bem/levels/blocks.js

This file was deleted.

15 changes: 0 additions & 15 deletions .bem/levels/bundles.js

This file was deleted.

32 changes: 0 additions & 32 deletions .bem/techs/bemjson.js.js

This file was deleted.

50 changes: 7 additions & 43 deletions .enb/make.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ var techs = {
levels = [
{ path: 'libs/bem-core/common.blocks', check: false },
{ path: 'libs/bem-core/desktop.blocks', check: false },
{ path: 'libs/bem-components/common.blocks', check: false },
{ path: 'libs/bem-components/desktop.blocks', check: false },
{ path: 'libs/bem-components/design/common.blocks', check: false },
{ path: 'libs/bem-components/design/desktop.blocks', check: false },
'common.blocks',
'desktop.blocks'
];

module.exports = function(config) {
Expand All @@ -46,15 +41,9 @@ module.exports = function(config) {
// css
[techs.stylus, {
target: '?.css',
sourcemap: false,
autoprefixer: {
browsers: ['ie >= 10', 'last 2 versions', 'opera 12.1', '> 2%']
}
sourcemap: true
}],

// bemtree
// [techs.bemtree, { sourceSuffixes: ['bemtree', 'bemtree.js'] }],

// bemhtml
[techs.bemhtml, {
sourceSuffixes: ['bemhtml', 'bemhtml.js'],
Expand All @@ -64,39 +53,14 @@ module.exports = function(config) {
// html
[techs.bemjsonToHtml],

// client bemhtml
[enbBemTechs.depsByTechToBemdecl, {
target: '?.bemhtml.bemdecl.js',
sourceTech: 'js',
destTech: 'bemhtml'
}],
[enbBemTechs.deps, {
target: '?.bemhtml.deps.js',
bemdeclFile: '?.bemhtml.bemdecl.js'
}],
[enbBemTechs.files, {
depsFile: '?.bemhtml.deps.js',
filesTarget: '?.bemhtml.files',
dirsTarget: '?.bemhtml.dirs'
}],
[techs.bemhtml, {
target: '?.browser.bemhtml.js',
filesTarget: '?.bemhtml.files',
sourceSuffixes: ['bemhtml', 'bemhtml.js']
}],

// js
[techs.browserJs, { includeYM: true }],
[techs.fileMerge, {
target: '?.js',
sources: ['?.browser.js', '?.browser.bemhtml.js']
}],

// borschik
[techs.borschik, { source: '?.js', target: '?.min.js', minify: isProd }],
[techs.borschik, { source: '?.css', target: '?.min.css', minify: isProd }]
[ techs.browserJs, {
includeYM: true,
target : '?.js',
sourcemap : true
}]
]);

nodeConfig.addTargets([/* '?.bemtree.js', */ '?.html', '?.min.css', '?.min.js']);
nodeConfig.addTargets(['?.html', '?.css', '?.js']);
});
};
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ node_modules/
npm-debug.log

# bem
.bem/cache/
.enb/tmp/
*bundles*/*/*.*
!*bundles*/*/*.bemjson.js
!*bundles*/.bem/*
*pages*/*/*.*
!*pages*/*/*.bemjson.js
!*pages*/.bem/*

common.blocks/icon/*
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"libs"
],
"dependencies": {
"bem-components": "3.0.0",
"material-design-icons": "2.2.3"
"material-design-icons": "2.2.3",
"bem-core" : "3.x"
}
}
1 change: 0 additions & 1 deletion desktop.blocks/.bem/level.js

This file was deleted.

Loading

0 comments on commit 712db54

Please sign in to comment.