Skip to content
This repository has been archived by the owner on Jan 13, 2018. It is now read-only.

Commit

Permalink
Merge branch 'release/0.6.12' into support/0.6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
arikon committed Aug 5, 2013
2 parents c330afb + 4ce3251 commit 2c63ad8
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 12 deletions.
35 changes: 35 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,41 @@
bem-tools changelog
===================

05.08.2013, Version 0.6.12 (stable)
-----------------------------------

- bem: Add `level-proto` tech that creates levels based on prototypes in `.bem/levels/*.js` on project level

Example usage (`.bem/level.js`):

```js
exports.getTechs = function() {
return {
'docs': 'level-proto', // will create levels <name>.blocks/ with proto in .bem/levels/docs.js
'blocks': 'level-proto' // will create levels <name>.blocks/ with proto in .bem/levels/blocks.js
};
};
```

- bem: Fix bug in `bem create level` that prevented from creating level without prototype
- bem make: Fix bug in `BemCreateNode` that was causing error when using single tech on different names
(e.g. `level-proto`)
- bem make: `require()` in `.bem/make.js` configs behaves more correctly now (try to require any dependency
of your project from your `.bem/make.js`)
- bem make: `level` property in `BlockNode` now initialized on the first access; this helps to deal with levels being
created during the `bem make` build process
- API: Export `logger` and `template` from `bem` module
- API: Add `Node.create()` static method to simplify creation of nodes, see example

```js
var opts = {
// node options
},
node = registry
.getNodeClass('BemCreateNode')
.create(opts);
```

30.07.2013, Version 0.6.11 (stable)
-----------------------------------

Expand Down
18 changes: 8 additions & 10 deletions lib/nodes/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,15 @@ registry.decl(BlockNodeName, MagicNode, {
// Lazy level initialization for the cases when level config is not exists
// at the time node object created
var level;
this.__defineGetter__('level', {
get: function() {
if (!level) {
level = typeof o.level === 'string' ?
createLevel(PATH.resolve(o.root, o.level), {
projectRoot: o.root
}) :
o.level;
}
return level;
this.__defineGetter__('level', function() {
if (!level) {
level = typeof o.level === 'string' ?
createLevel(PATH.resolve(o.root, o.level), {
projectRoot: o.root
}) :
o.level;
}
return level;
});
/* jshint +W106 */

Expand Down
2 changes: 1 addition & 1 deletion npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bem",
"description": "BEM Tools",
"version": "0.6.11",
"version": "0.6.12",
"homepage": "http://github.com/bem/bem-tools",
"author": "Sergey Berezhnoy <veged@mail.ru> (http://github.com/veged)",
"maintainers": [
Expand Down

0 comments on commit 2c63ad8

Please sign in to comment.