bem server: Move introspection logic of Arch into separate node #87

Closed
wants to merge 77 commits into
from

7 participants

@arikon
BEM member

No description provided.

arikon and others added some commits Sep 26, 2012
@arikon arikon Add util.uniq() generator of callbacks for [].reduce() bbc1e24
@arikon arikon Add ability to customize build rules more flexibly by providing Arch.…
…createCustomNode() method
967fc34
@scf2k scf2k Tests bem-bl submodule is updated to 0.2 (close #264)
- tests bem-bl updated
- tests fixed to inherit i18n.js from js-i to build files with include directives (close #265)
d2c9378
@arikon arikon js+coffee and js+coffee-i tech modules
- Add `js+coffee` and `js+coffee-i` tech modules
- Refactor `js` and `js-i` tech modules
- BundleNode: Use `js+coffee` tech instead of `js` for `BorschikNode` of `js` techs by default
- package: Depends on `coffee-script` and `borschik ~0.0.13`
- tests: Update `bem-bl 0.2` (`i18n.js` tech module)
- tests: Use `js+coffee-i` as `js` tech to build bundles
6496475
@arikon arikon Some more tuning and jsdoc 38ad9fa
@arikon arikon Fix link e6c0472
@scf2k scf2k README is splat into several files 5188ada
@arikon arikon Add level config with `md` tech for `docs/` 900f375
@arikon arikon Merge pull request #273 from bem/doc-split
`README` is splat into several files in `docs/`
0862340
@banzalik banzalik Update README.ru.md
опечатка помошью -> помощью
6e4261c
@vithar vithar Merge pull request #275 from banzalik/patch-4
Update README.ru.md
ae962ab
@arikon arikon GitLibraryNode: Fix checkout of the last commit
There was an error checking out last commit of the branch:

- checkout of repos with only one commit didn't work
- checkout of branch was touching files from the last commit, it was affecting build processes, as these files was always updated
63085e5
@arikon arikon Refactor of require() function in `.bem/make.js` files, it is now ful…
…ly context aware
627a043
@arikon arikon Refactor of require() function in declaration files, it is now fully …
…context aware
957e6ba
@arikon arikon util: Introduce `isFileValid()` and `itTimeValid()` convenient utilit…
…y functions

The are used in `bem-www` `.bem/make.js`, for example
e661144
@apsavin apsavin Docs fix: bemhtml.js -> bemhtml dd04050
@arikon arikon Merge pull request #276 from apsavin/docs-fix
Docs fix: bemhtml.js -> bemhtml
1ae120b
@arikon arikon Create node_modules/bem -> .. symlink on module install (Close #277) 3465a50
@arikon arikon Do not make symlink on Travis build run a9df6d4
@arikon arikon Merge branch 'master' into bem-www 96ad172
@scf2k scf2k Part of the default-arch is moved to standalone node (SeedNode) (close
…#87)

Libraries utilize the same build initialization as project - it's possible to build blocks levels within libraries (close #52)
f91eecc
@scf2k scf2k Merge branch 'master' of github.com:bem/bem-tools into arch-node b4df386
@scf2k scf2k added a commit that closed this pull request Oct 12, 2012
@scf2k scf2k Part of the default-arch is moved to standalone node (SeedNode) (close
…#87)

Libraries utilize the same build initialization as project - it's possible to build blocks levels within libraries (close #52)
f91eecc
@scf2k scf2k closed this in f91eecc Oct 12, 2012
@scf2k scf2k reopened this Oct 12, 2012
@arikon arikon commented on an outdated diff Oct 13, 2012
lib/nodes/seed.js
+ Q.call(_this.createBundlesLevelsNodes, _this, node, _this.deps)
+ ];
+ },
+
+ function(blocks, bundles) {
+ return Q.call(_this.removeRudiments, _this, node, (blocks || []).concat(bundles, _this.deps, _this.getId()));
+ })
+
+ .then(function() {
+ return _this.takeSnapshot('after alterArch SeedNode ' + _this.getId());
+ });
+ }
+ },
+
+ removeRudiments: function(node, keep) {
+ console.dir(keep);
@arikon
BEM member
arikon added a line comment Oct 13, 2012

console.log();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@arikon arikon commented on the diff Oct 13, 2012
lib/nodes/block.js
@@ -27,7 +30,151 @@ registry.decl(BlockNodeName, MagicNode, {
},
- make: function() {},
+ make: function() {
+
+ return this.ctx.arch.withLock(this.alterArch(), this);
+
+ },
+
+ alterArch: function() {
@arikon
BEM member
arikon added a line comment Oct 13, 2012

Без копипаста не обойтись?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@scf2k scf2k was assigned Oct 16, 2012
@arikon
BEM member

@scf2k Please update your branch to make it merge cleanly

arikon and others added some commits Oct 17, 2012
@arikon arikon Merge pull request #272 from bem/bem-www
Arch: Add ability to customize build rules more flexibly
2e67364
@arikon arikon Add `dir` tech module 5576819
@arikon arikon Merge pull request #290 from bem/dir-tech
Tech module to create directories
c083230
@vithar vithar Simple index page added 507458a
@vithar vithar markdown list markup fixed 39e951d
@arikon arikon Replace own `util.extend()` implementation with `node.extend` module 07e5874
@tadatuta tadatuta combine bem commands documentation d30c80e
@tadatuta tadatuta Doc: Update index page to fit new doc structure f11c19d
@arikon arikon Fix jsdoc in util 98cd788
@arikon arikon Slightly refactor `bem create level` command
- Move validation of level prototype logic to the `COA.Opt.val()` method
- More promisy-based code
- Code cleanup
- Updated reference legacy-tests results
03c376a
@arikon arikon Use promisy function to write level .js module fdd8a64
@arikon arikon Add ability to `bem create level` command to create level .js modules ed29eef
@arikon arikon Use coa ~0.3.6 e46ebd2
@arikon arikon Fix jsdoc of util.exec(): `options` and `resolveWithOutput` are optio…
…nal arguments
9623bdd
@arikon arikon Fix jsdoc on util.relative(): mark `dot` argument as optional 0adab98
@arikon arikon Add util.bemParseKey() function and tests dbdf857
@arikon arikon Add `.bem` and `node_modules` to `Level.isIgnorablePath()` 97e13d4
@arikon arikon Fix jsdoc of `Tech.getPath()` and `Tech.getPaths()` methods: mark `su…
…ffix` and `suffixes` arguments as optional
f3f0935
@arikon arikon A bit of code style fixes in SeedNode 19e0dc5
@arikon arikon Remove dead code and minor code cleanup in default-arch ca3594a
@arikon arikon Remove duplicate code from BundleNode ff4f2a8
@arikon arikon Merge branch 'master' into arch-node
Conflicts:
	lib/default-arch.js
	lib/make.js
82baf04
@arikon arikon Correct bem-bl submodule revision 472f4ae
@scf2k scf2k Inspector is improved
The graph is shown collapsed when snapshot is chosen. Click a node to expand/collapse it.
8f3d80b
@arikon arikon Fix createCustomNodes() method signature 966b4f8
@narqo narqo Описал пример поключения локализационных технологий сборки 42198f5
@narqo narqo Исправил замечания из #301 f7c5a50
@narqo narqo Добавил английский вариант описания 2d30504
@narqo narqo Исправил опечатку в описании 8587ec3
@scf2k scf2k Git library checkout fixed to work with commit hashes (close #302)
Parameter branch is added to specify branch name. Use treeish to specify
commit or tag.
9b3bd6b
@tadatuta tadatuta Doc: Fix techs link bf907d7
@narqo
BEM member

А этот функционал еще не планируется отправить в 0.5.x?

BEM member

@narqo Я думаю, что это будет в следующих версиях (0.6.x или 0.7.x).
А тебе для чего?

BEM member

@arikon Нужно для демки в project-stub перед webconf.lv, а в ветке introspect нет патчей про q

@scf2k scf2k added a commit that closed this pull request Feb 14, 2013
@scf2k scf2k Part of the default-arch is moved to standalone node (SeedNode) (close
…#87)

Libraries utilize the same build initialization as project - it's possible to build blocks levels within libraries (close #52)
8521793
@scf2k scf2k closed this in 8521793 Feb 14, 2013
@scf2k scf2k added a commit that referenced this pull request Feb 14, 2013
@scf2k scf2k Merge branch 'i-87' into dev
Part of the default-arch is moved to standalone node (SeedNode) (close #87)
Libraries utilize the same build initialization as project - it's possible to build blocks levels within libraries (close #52)
7ef7eb3
@scf2k

merged into dev

@scf2k scf2k deleted the arch-node branch Feb 14, 2013
@scf2k scf2k added a commit that referenced this pull request Jul 20, 2013
@scf2k scf2k Part of the default-arch is moved to standalone node (SeedNode) (close
…#87)

Libraries utilize the same build initialization as project - it's possible to build blocks levels within libraries (close #52)
3f6f412
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment