I’m trying to include https://www.npmjs.org/package/grunt-deployments with the original Grunt file provided with Roots 7.0.0.
In package.json, under dev dependencies I’ve added ;
"grunt-deployments": "0.2.0"
This works well with npm install and grabs the files required.
Then, I’ve added the following after watch in Gruntfile.js;
deployments: {
options: {
// any should be defined options here
},
// "Local" target
"local": {
"title": "local",
"database": "db",
"user": "user",
"pass": "pass",
"host": "localhost",
"url": "url"
// note that the `local` target does not have an "ssh_host"
},
"stage": {
"title": "stage",
"database": "db",
"user": "user",
"pass": "pass",
"host": "host",
"url": "url",
"ssh_host": "ssh"
}
}
I’ve also edited the registerTask to include it;
grunt.registerTask('dev', [
'jshint',
'less:dev',
'autoprefixer:dev',
'concat',
'deployments'
]);
However when running grunt dev I get the following error;
Warning: Task "deployments" not found. Use --force to continue.
Not sure if I should try edit package.json under load-grunt-tasks? Sure I’ve just left out something?
Thanks in advance.