Missing script
ar7hur opened this issue · 1 comments
ar7hur commented
My project.clj
has:
:npm {:dependencies [["material-ui" "^0.18.1"]
["react" "15.5.4"]
["react-dom" "15.5.4"]
["webpack" "^2.5.1"]]
:package {:scripts [[:dev "webpack -p"]
[:build "webpack -p --config webpack.production.config.js"]]}}
But when I run lein npm run dev
it complains:
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/Cellar/node/5.9.0/bin/node" "/usr/local/bin/npm" "run" "dev"
npm ERR! node v6.2.2
npm ERR! npm v3.9.5
npm ERR! missing script: dev
Am I missing something?
ar7hur commented
My bad, didn't notice scripts were declared as maps, not vectors :)