[英]share data from a custom grunt task with another grunt task
I am relatively new to using grunt. 我对使用grunt比较陌生。 I created a custom grunt task that queries my database to get a value, I want to add that value to a path in a grunt-contrib-copy task, to look like so:
我创建了一个自定义grunt任务,查询我的数据库以获取一个值,我想将该值添加到grunt-contrib-copy任务的路径中,如下所示:
{cwd: 'src/public/modules/' + variablefromCustomTask}
I have been unable to figure this out or find any useful resource online to help. 我一直无法弄清这一点,也无法在线找到任何有用的资源来提供帮助。 Any ideas/link to a resource that might help?
有任何想法/资源链接可能会有所帮助吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.