Build yeoman project from git checkout

前端 未结 2 1546
清酒与你
清酒与你 2021-02-09 22:54

Am facing issue in building the yeoman project checkout from git. Am trying to take git checkout of yeoman project and run grunt serve. Following is the scenari

2条回答
  •  鱼传尺愫
    2021-02-09 23:42

    Solved in 2 steps. The the following commands :

    1. npm install
    2. bower install

    Now run grunt serve

    $ grunt serve
    Running "serve" task
    
    Running "clean:server" (clean) task
    
    Running "bower-install:app" (bower-install) task
    
    Running "concurrent:server" (concurrent) task
    
        Running "compass:server" (compass) task
        directory .tmp/styles/ 
           create .tmp/styles/main.css (8.454s)
        Compilation took 8.455s
    
        Done, without errors.
    
    
        Execution Time (2014-03-13 10:53:01 UTC)
        compass:server  9.1s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 100%
        Total 9.1s
    
    Running "autoprefixer:dist" (autoprefixer) task
    Prefixed file ".tmp/styles/main.css" created.
    
    Running "connect:livereload" (connect) task
    Started connect web server on 127.0.0.1:9000.
    
    Running "watch" task
    Waiting...
    

    This solves the problem.

    Let me know if this can be avoided or done in better way :)

提交回复
热议问题