码迷,mamicode.com
首页 > 其他好文 > 详细

关于npm ---- npm 命令行运行多个命令

时间:2020-02-29 14:45:40      阅读:91      评论:0      收藏:0      [点我收藏+]

标签:多个   关于   vue-cli   pre   unit   script   dex   nbsp   pts   

需要安装 concurrently 模块  npm install concurrently

在packjson中运行

"scripts": {
    "start": "concurrently \"npm run serve\" \"npm run node\"",
    "serve": "vue-cli-service serve",
    "node": "node server/index",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint",
    "test:unit": "vue-cli-service test:unit"
}

 

关于npm ---- npm 命令行运行多个命令

标签:多个   关于   vue-cli   pre   unit   script   dex   nbsp   pts   

原文地址:https://www.cnblogs.com/mary-123/p/12382722.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!