{"action":"closed","issue":{"url":"https://api.github.com/repos/spmjs/spm-build/issues/62","labels_url":"https://api.github.com/repos/spmjs/spm-build/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/spmjs/spm-build/issues/62/comments","events_url":"https://api.github.com/repos/spmjs/spm-build/issues/62/events","html_url":"https://github.com/spmjs/spm-build/issues/62","id":52843879,"number":62,"title":"spm 配置里能否增加 buildCommand 参数执行额外的命令和插件","user":{"login":"xuhuan","id":1960194,"avatar_url":"https://avatars.githubusercontent.com/u/1960194?v=3","gravatar_id":"","url":"https://api.github.com/users/xuhuan","html_url":"https://github.com/xuhuan","followers_url":"https://api.github.com/users/xuhuan/followers","following_url":"https://api.github.com/users/xuhuan/following{/other_user}","gists_url":"https://api.github.com/users/xuhuan/gists{/gist_id}","starred_url":"https://api.github.com/users/xuhuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuhuan/subscriptions","organizations_url":"https://api.github.com/users/xuhuan/orgs","repos_url":"https://api.github.com/users/xuhuan/repos","events_url":"https://api.github.com/users/xuhuan/events{/privacy}","received_events_url":"https://api.github.com/users/xuhuan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-25T02:25:33Z","updated_at":"2015-02-28T04:57:55Z","closed_at":"2015-02-28T04:57:55Z","body":"如题，比如下面的情况\r\n```\r\nspm build & gulp & ...\r\n```\r\n目前没看到spm-build 有挂载额外插件的地方，那能否spm配置里增加\r\n```\r\nbuildCommand : 'gulp & ...'\r\n```\r\n在执行完 spm build  后继续执行 buildCommand  对应的命令，这样子就不用每次都手动输入一开始的命令。上面的可以是spm build 执行完不管成功与否都继续执行下面的命令。\r\n碰到需要依次在前面命令执行成功的前提下执行下一个的情况可以用数组形式，如下：\r\n```\r\nbuildCommand : ['gulp',...]\r\n```\r\n\r\n或者如果有其他附加插件的方式也行，可以执行额外的spm-build 没有提供的功能。\r\n\r\n\r\n"}}