shipit-cli
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -95,2 +95,3 @@ var util = require('util'); | ||
log(msg); | ||
process.exit(1); | ||
}); | ||
@@ -97,0 +98,0 @@ |
{ | ||
"name": "shipit-cli", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Universal automation and deployment tool written in JavaScript.", | ||
@@ -15,4 +15,4 @@ "main": "index.js", | ||
"bluebird": "^2.9.1", | ||
"chalk": "^0.5.1", | ||
"interpret": "^0.4.2", | ||
"chalk": "^1.0.0", | ||
"interpret": "^0.6.2", | ||
"liftoff": "^2.0.0", | ||
@@ -28,3 +28,3 @@ "lodash": "^3.0.0", | ||
"devDependencies": { | ||
"chai": "^1.10.0", | ||
"chai": "^3.0.0", | ||
"mocha": "^2.1.0", | ||
@@ -31,0 +31,0 @@ "mock-utf8-stream": "^0.1.1", |
@@ -7,3 +7,3 @@ # Shipit | ||
[![Dependency Status](https://david-dm.org/shipitjs/shipit.svg?theme=shields.io)](https://david-dm.org/shipitjs/shipit) | ||
[![devDependency Status](https://david-dm.org/shipitjs/shipit/dev-status.svg?theme=shields.io)](https://david-dm.org/shipitjs/shipit-cli#info=devDependencies) | ||
[![devDependency Status](https://david-dm.org/shipitjs/shipit/dev-status.svg?theme=shields.io)](https://david-dm.org/shipitjs/shipit#info=devDependencies) | ||
[![Inline docs](http://inch-ci.org/github/shipitjs/shipit.svg?branch=master)](http://inch-ci.org/github/shipitjs/shipit) | ||
@@ -236,2 +236,35 @@ | ||
### Customising environments | ||
You can overwrite all default variables defined as part of the `default` object. | ||
```js | ||
module.exports = function (shipit) { | ||
shipit.initConfig({ | ||
staging: { | ||
servers: 'staging.myproject.com', | ||
workspace: '/home/vagrant/website' | ||
branch: 'dev' | ||
}, | ||
production: { | ||
servers: [{ | ||
host: 'app1.myproject.com', | ||
user: 'john', | ||
}, { | ||
host: 'app2.myproject.com', | ||
user: 'rob', | ||
}], | ||
branch: 'production', | ||
workspace: '/var/www/website' | ||
} | ||
}); | ||
... | ||
shipit.task('pwd', function () { | ||
return shipit.remote('pwd'); | ||
}); | ||
... | ||
}; | ||
``` | ||
## Known Plugins | ||
@@ -251,2 +284,4 @@ | ||
- [shipit-npm](https://github.com/callerc1/shipit-npm) | ||
- [shipit-aws](https://github.com/KrashStudio/shipit-aws) | ||
- [shipit-captain](https://github.com/timkelty/shipit-captain/) | ||
@@ -253,0 +288,0 @@ ## Who use Shipit? |
@@ -16,2 +16,6 @@ module.exports = function (shipit) { | ||
}); | ||
shipit.task('default', ['test'], function () { | ||
console.log("Using default task that depends on 'test'"); | ||
}); | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20794
354
294
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedinterpret@0.6.6(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)
- Removedansi-regex@0.2.1(transitive)
- Removedansi-styles@1.1.0(transitive)
- Removedchalk@0.5.1(transitive)
- Removedhas-ansi@0.1.0(transitive)
- Removedinterpret@0.4.3(transitive)
- Removedstrip-ansi@0.3.0(transitive)
- Removedsupports-color@0.2.0(transitive)
Updatedchalk@^1.0.0
Updatedinterpret@^0.6.2