Permalink
Browse files

Merge branch 'release/0.6.12' into support/0.6.x

  • Loading branch information...
2 parents c330afb + 4ce3251 commit 2c63ad80e42a6a340bee44242a22612276e74493 @arikon arikon committed Aug 5, 2013
Showing with 45 additions and 12 deletions.
  1. +35 −0 ChangeLog.md
  2. +8 −10 lib/nodes/block.js
  3. +1 −1 npm-shrinkwrap.json
  4. +1 −1 package.json
View
@@ -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)
-----------------------------------
View
@@ -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 */
View
@@ -1,6 +1,6 @@
{
"name": "bem",
- "version": "0.6.10",
+ "version": "0.6.12",
"dependencies": {
"coa": {
"version": "0.3.9",
View
@@ -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": [

0 comments on commit 2c63ad8

Please sign in to comment.