Open eps90 opened 9 years ago
All right, just after posting this question I've found a way to do what I need :)
For others, here's my Gruntfile.js
config:
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-shipit');
grunt.loadNpmTasks('shipit-deploy');
grunt.loadNpmTasks('shipit-npm');
require('shipit-npm')(grunt.shipit);
grunt.initConfig({
shipit: {
options: {
workspace: '/tmp/local-deploy-dir',
deployTo: '/tmp/deploy-dir',
repositoryUrl: 'https://github.com/author/repo,
ignores: ['.git'],
keepReleases: 3,
npm: {
remote: false,
installFlags: ['--production']
}
},
staging: {
servers: 'deploy@127.0.0.1'
}
}
});
};
@callerc1 If you don't mind, I'll provide a pull request with README update soon.
Hi, Maybe I'm doing something wrong, but I cannot find out why. I've just installed
shipit-npm
in my project and loaded it inGruntfile.js
bygrunt.loadNpmTasks('shipit-npm'). After running
grunt shipit:[stage] deploy` I got error in console:Do I have to do something more than loading the module in
Gruntfile
? I've event tried to set options ofshipit-npm
undershipit.options
inGruntfile
but that didn't help. I've also created ashipitfile.js
with exact config as inREADME.md
but it wasn't it too. Thanks for help!