I am working with vuex (2.1.1) and get things working within vue single file components. However to avoid too much cruft in my vue single file component I moved some functions t
import store from './store'
and than
store.commit('mutation_name', mutation_argument)
if you use js file