Skip to content

Commit

Permalink
Merge pull request #369 from /issues/367@v1
Browse files Browse the repository at this point in the history
Use bower for dependencies management
  • Loading branch information
Vladimir Varankin committed Feb 3, 2014
2 parents 5836afa + ed295a4 commit cb8256e
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .bem/make.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ MAKE.decl('Arch', {
blocksLevelsRegexp : /^.+?\.blocks$/,
bundlesLevelsRegexp : /^.+?\.bundles$/,

libraries : [ '[email protected]' ],
libraries : [],

createCustomNodes : function(common, libs, blocks) {
var SetsNode = MAKE.getNodeClass('SetsNode');
Expand Down
4 changes: 4 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"directory": "libs"
}

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ or an alternative way to run locally-installed [bem-tools](https://github.com/be

3. Install all the necessary libraries:
```
$ bem make libs
$ bower-npm-install
```

4. Build examples and tests:
Expand Down
4 changes: 2 additions & 2 deletions README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ $ npm install
Для последующего запуска локально установленных [bem-tools](https://github.com/bem/bem-tools) нам потребуется
`export PATH=./node_modules/.bin:$PATH` или любой альтернативный способ.

3. С помощью bem-tools устанавливаем все зависимые библиотеки:
3. Устанавливаем зависимые библиотеки:
```
$ bem make libs
$ bower-npm-install
```

4. Собираем примеры и тесты:
Expand Down
3 changes: 3 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
"authors": [
"Sergey Belov <[email protected]>"
],
"devDependencies": {
"bem-pr": "git://github.com/narqo/bem-pr.git#~0.6.1"
},
"license": "MIT",
"private": true,
"ignore": [
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@
"jshint": "2.1.8",
"jshint-groups": "0.5.1",
"jscs": "1.0.0",
"git-hooks": "0.0.3"
"git-hooks": "0.0.3",
"bower-npm-install": "~0.5.4"
},
"scripts": {
"libs": "bem make libs",
"libs": "bower-npm-install",
"bem-test": "npm run libs && bem make sets",
"test": "npm run bem-test && mocha --ui tdd --reporter spec common.blocks/i-bem/i-bem.test.bemhtml/*-test.js common.blocks/i-bem/__i18n/test/*-test.js common.blocks/i-bem/__i18n/i-bem__i18n.test.bemhtml/*-test.js"
}
Expand Down

0 comments on commit cb8256e

Please sign in to comment.