Closed ilyar closed 10 years ago
Не хочешь поучаствовать? Пришлешь pull-request) Надо в Gruntfile не использовать exec для создания директорий. Можно попробовать создавать их неявно во время выполнения сжатия или чего-то другого. Также их можно делать в генераторе, во время инициализации проекта. Работа с генератором слегка изменилась, посмотри readme.
testing on windows:
$ npm install -g yo generator-bem
$ mkdir test_bem_gen && cd $_
$ yo bem
$ yo bem:init
$ grunt
Running "bem:bundles" (bem) task
15:10:33.082 - info: bem 0.7.8
15:10:33.184 - info: Graph:
== root
all
build
bower_components
bower_components\bem-core
bower_components\bem-components
app.common.blocks*
bower_components
bower_components\bem-core
bower_components\bem-components
app.desktop.blocks*
bower_components
bower_components\bem-core
bower_components\bem-components
app.touch.blocks*
bower_components
bower_components\bem-core
bower_components\bem-components
app.desktop.bundles*
bower_components
bower_components\bem-core
bower_components\bem-components
app.common.blocks*
bower_components
bower_components\bem-core
bower_components\bem-components
app.desktop.blocks*
bower_components
bower_components\bem-core
bower_components\bem-components
app.touch.blocks*
bower_components
bower_components\bem-core
bower_components\bem-components
15:10:33.189 - info: [i] Going to build 'all' [1]
15:10:33.281 - info: [t] isValid() time for "bower_components\bem-core" [1]: 86ms
15:10:33.294 - info: [t] isValid() time for "bower_components\bem-components" [1]: 99ms
15:10:33.295 - info: [t] isValid() time for "bower_components" [1]: 0ms
15:10:33.295 - info: [*] make 'bower_components' [1]
15:10:33.296 - info: [t] Build time for "bower_components" [1]: 1ms
15:10:33.909 - warn: Level at c:\Users\Ilya\lab\test_bem_gen\app.desktop.bundles\404\blocks is
not a directory
15:10:34.054 - warn: Level at c:\Users\Ilya\lab\test_bem_gen\app.desktop.bundles\index\blocks is not a directory
15:10:34.120 - info: [t] isValid() time for "app.desktop.bundles\404\404.bemdecl.js" [1]: 6ms
15:10:34.121 - info: [t] isValid() time for "app.desktop.bundles\404\404.deps.js" [1]: 0ms
15:10:34.122 - info: [*] make 'app.desktop.bundles\404\404.deps.js' [1]
15:10:34.227 - warn: Tech module with path 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-core\libs\bem-pr\bem\techs\test.js.js' not found on require search paths
15:10:34.242 - warn: Tech module with path 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-core\libs\bem-pr\bem\techs\sets.js' not found on require search paths
15:10:34.258 - warn: Tech module with path 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-core\libs\bem-pr\bem\techs\test.js+browser.js+bemhtml.js' not found on require search paths
15:10:34.280 - warn: Cannot find module 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-core\libs\bem-pr\bem\techs\examples.js'
15:10:34.296 - warn: Cannot find module 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-core\libs\bem-pr\bem\techs\tests.js'
15:10:34.443 - warn: Tech module with path 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-core\libs\bem-pr\bem\techs\test.js.js' not found on require search paths
15:10:34.457 - warn: Tech module with path 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-core\libs\bem-pr\bem\techs\sets.js' not found on require search paths
15:10:34.470 - warn: Tech module with path 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-core\libs\bem-pr\bem\techs\test.js+browser.js+bemhtml.js' not found on require search paths
15:10:34.486 - warn: Cannot find module 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-core\libs\bem-pr\bem\techs\examples.js'
15:10:34.499 - warn: Cannot find module 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-core\libs\bem-pr\bem\techs\tests.js'
15:10:34.805 - warn: Tech module with path 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-components\libs\bem-core\.bem\techs\bemhtml.js' not found on require search paths
15:10:34.817 - warn: Tech module with path 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-components\libs\bem-core\.bem\techs\vanilla.js.js' not found on require search paths
15:10:34.833 - warn: Tech module with path 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-components\libs\bem-core\.bem\techs\browser.js.js' not found on require search paths
15:10:34.866 - warn: Cannot find module 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-components\libs\bem-pr\bem\techs\examples.js'
15:10:34.878 - warn: Cannot find module 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-components\libs\bem-pr\bem\techs\tests.js'
15:10:34.889 - warn: Tech module with path 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-components\libs\bem-pr\bem\techs\sets.js' not found on require search paths
15:10:34.902 - warn: Tech module with path 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-components\libs\bem-pr\bem\techs\test.js.js' not found on require search paths
15:10:34.917 - warn: Tech module with path 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-components\libs\bem-pr\bem\techs\test.js+browser.js+bemhtml.js' not found on require search paths
15:10:35.215 - warn: Tech module with path 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-components\libs\bem-core\.bem\techs\bemhtml.js' not found on require search paths
15:10:35.225 - warn: Tech module with path 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-components\libs\bem-core\.bem\techs\vanilla.js.js' not found on require search paths
15:10:35.236 - warn: Tech module with path 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-components\libs\bem-core\.bem\techs\browser.js.js' not found on require search paths
15:10:35.246 - warn: Cannot find module 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-components\libs\bem-pr\bem\techs\examples.js'
15:10:35.257 - warn: Cannot find module 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-components\libs\bem-pr\bem\techs\tests.js'
15:10:35.269 - warn: Tech module with path 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-components\libs\bem-pr\bem\techs\sets.js' not found on require search paths
15:10:35.284 - warn: Tech module with path 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-components\libs\bem-pr\bem\techs\test.js.js' not found on require search paths
15:10:35.295 - warn: Tech module with path 'c:\Users\Ilya\lab\test_bem_gen\bower_components\bem-components\libs\bem-pr\bem\techs\test.js+browser.js+bemhtml.js' not found on require search paths
15:10:35.389 - info: [t] isValid() time for "app.desktop.bundles\index\index.bemdecl.js" [1]: 1272ms
15:10:35.391 - info: [t] isValid() time for "app.desktop.bundles\index\index.deps.js" [1]: 1ms
15:10:35.391 - info: [*] make 'app.desktop.bundles\index\index.deps.js' [1]
15:10:35.435 - info: [t] Build time for "app.desktop.bundles\index\index.deps.js" [1]: 45ms
15:10:35.437 - info: [t] isValid() time for "app.desktop.bundles\index\index.bemhtml" [1]: 0ms
15:10:35.438 - info: [*] make 'app.desktop.bundles\index\index.bemhtml' [1]
15:10:35.438 - info: [t] isValid() time for "app.desktop.bundles\index\index.browser.js+bemhtml" [1]: 1ms
15:10:35.439 - info: [*] make 'app.desktop.bundles\index\index.browser.js+bemhtml' [1]
15:10:35.440 - info: [t] isValid() time for "app.desktop.bundles\index\index.css" [1]: 3ms
15:10:35.440 - info: [*] make 'app.desktop.bundles\index\index.css' [1]
15:10:35.441 - info: [t] isValid() time for "app.desktop.bundles\index\index.ie.css" [1]: 3ms
15:10:35.441 - info: [*] make 'app.desktop.bundles\index\index.ie.css' [1]
15:10:35.486 - info: [t] Build time for "app.desktop.bundles\404\404.deps.js" [1]: 1365ms
15:10:35.489 - info: [t] isValid() time for "app.desktop.bundles\404\404.bemhtml" [1]: 1ms
15:10:35.489 - info: [*] make 'app.desktop.bundles\404\404.bemhtml' [1]
15:10:35.489 - info: [t] isValid() time for "app.desktop.bundles\404\404.browser.js+bemhtml" [1]: 1ms
15:10:35.490 - info: [*] make 'app.desktop.bundles\404\404.browser.js+bemhtml' [1]
15:10:35.490 - info: [t] isValid() time for "app.desktop.bundles\404\404.css" [1]: 2ms
15:10:35.490 - info: [*] make 'app.desktop.bundles\404\404.css' [1]
15:10:35.491 - info: [t] isValid() time for "app.desktop.bundles\404\404.ie.css" [1]: 3ms
15:10:35.491 - info: [*] make 'app.desktop.bundles\404\404.ie.css' [1]
15:10:35.554 - info: [t] Build time for "app.desktop.bundles\index\index.browser.js+bemhtml" [1]: 117ms
15:10:35.560 - info: [t] Build time for "app.desktop.bundles\index\index.css" [1]: 123ms
15:10:35.566 - info: [t] Build time for "app.desktop.bundles\index\index.ie.css" [1]: 129ms
15:10:35.576 - info: [t] isValid() time for "app.desktop.bundles\index\_index.css" [1]: 15ms
15:10:35.578 - info: [t] isValid() time for "app.desktop.bundles\index\_index.js" [1]: 15ms
15:10:35.588 - info: [t] isValid() time for "app.desktop.bundles\index\_index.ie.css" [1]: 15ms
15:10:35.589 - info: [t] Build time for "app.desktop.bundles\404\404.browser.js+bemhtml" [1]: 101ms
15:10:35.622 - info: [t] Build time for "app.desktop.bundles\404\404.css" [1]: 134ms
15:10:35.631 - info: [t] Build time for "app.desktop.bundles\404\404.ie.css" [1]: 143ms
15:10:35.634 - info: [t] isValid() time for "app.desktop.bundles\404\_404.css" [1]: 6ms
15:10:35.642 - info: [t] isValid() time for "app.desktop.bundles\404\_404.ie.css" [1]: 10ms
15:10:35.643 - info: [t] isValid() time for "app.desktop.bundles\404\_404.js" [1]: 10ms
15:10:36.090 - warn: Level at c:\Users\Ilya\lab\test_bem_gen\app.desktop.bundles\index\blocks is not a directory
15:10:36.142 - warn: Level at c:\Users\Ilya\lab\test_bem_gen\app.desktop.bundles\404\blocks is
not a directory
15:10:36.159 - info: [t] Build time for "app.desktop.bundles\index\index.bemhtml" [1]: 722ms
15:10:36.164 - info: [t] isValid() time for "app.desktop.bundles\index\_index.bemhtml.js" [1]:
4ms
15:10:36.166 - info: [t] isValid() time for "app.desktop.bundles\index\index.html" [1]: 1ms
15:10:36.216 - info: [t] Build time for "app.desktop.bundles\404\404.bemhtml" [1]: 728ms
15:10:36.218 - info: [t] isValid() time for "app.desktop.bundles\404\_404.bemhtml.js" [1]: 1ms
15:10:36.220 - info: [t] isValid() time for "app.desktop.bundles\404\404.html" [1]: 1ms
15:10:36.226 - info: [t] isValid() time for "build" [1]: 0ms
15:10:36.227 - info: [*] make 'build' [1]
15:10:36.227 - info: [t] Build time for "build" [1]: 1ms
15:10:36.228 - info: [t] isValid() time for "all" [1]: 0ms
15:10:36.228 - info: [*] make 'all' [1]
15:10:36.229 - info: [t] Build time for "all" [1]: 1ms
15:10:36.230 - info: [t] Build total: 3145ms
Running "copy:bundles" (copy) task
Copied 2 files
Running "copy:assets" (copy) task
Created 3 directories, copied 4 files
Running "shell:mkdirs" (shell) task
Running "shell:concat_css" (shell) task
Running "shell:concat_js" (shell) task
Running "shell:borschik_csso" (shell) task
Running "shell:borschik_uglify" (shell) task
Done, without errors.
Execution Time (2014-02-21 11:10:32 UTC)
bem:bundles 3.6s ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 94%
shell:concat_css 63ms ■ 2%
shell:borschik_uglify 64ms ■ 2%
Total 3.9s
@ilyar Илья, я починил вроде все для винды. Будет круто, если ты сможешь проверить, я, к сожелению, пока не имею возможности.
Да, все круто!
@ilyar Отлично:)