Automate npm and bower install with grunt

前端 未结 5 1681
耶瑟儿~
耶瑟儿~ 2021-01-29 21:38

I have a node / angular project that uses npm for backend dependency management and bower for frontend dependency management. I\'d like to use a grunt task to do both install co

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-29 21:57

    To install client side components during npm install at the same time than server side libs, you can add in your package.json

    "dependencies": {
        ...
        "bower" : ""
    },
    "scripts": {
        ...
        "postinstall" : "bower install"
    }
    

    I prefer to make the difference between install and test/build

提交回复
热议问题