-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from Wisembly/imp-release-it
Release it | Imps
- Loading branch information
Showing
11 changed files
with
120 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
var exec = require('../tools/exec'); | ||
|
||
module.exports = function (cb) { | ||
exec('git add -f dist/', function (err, data) { | ||
if (err) return false; | ||
return cb(null); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
var async = require('async'); | ||
var exec = require('../tools/exec'); | ||
var log = require('../tools/log'); | ||
var opts = require('../opts'); | ||
|
||
module.exports = function (cb) { | ||
async.waterfall([ | ||
function (_cb) { | ||
exec('ls dist/css/', function (err, data) { | ||
return err ? log('✗ Styles failed') : _cb(null); | ||
}); | ||
}, | ||
|
||
function (_cb) { | ||
exec('ls dist/stats/', function (err, data) { | ||
return err ? log('✗ Stats failed') : _cb(null); | ||
}); | ||
}, | ||
|
||
function (_cb) { | ||
exec('ls dist/js/', function (err, data) { | ||
return err ? log('✗ Scripts failed') : _cb(null); | ||
}); | ||
}, | ||
|
||
function (_cb) { | ||
exec('ls dist/fonts', function (err, data) { | ||
return err ? log('✗ Icons failed') : _cb(null); | ||
}); | ||
}, | ||
|
||
function (_cb) { | ||
cb(null) | ||
}, | ||
]); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
var async = require('async'); | ||
var exec = require('../tools/exec'); | ||
var log = require('../tools/log'); | ||
var opts = require('../opts'); | ||
|
||
module.exports = function (cb) { | ||
async.waterfall([ | ||
function (_cb) { | ||
exec('gulp sass', function (err, data) { | ||
if (err) return false; | ||
return _cb(null); | ||
}); | ||
}, | ||
|
||
function (_cb) { | ||
exec('gulp stats --' + opts.nextRelease.name, function (err, data) { | ||
if (err) return false; | ||
return _cb(null); | ||
}); | ||
}, | ||
|
||
function (_cb) { | ||
exec('gulp scripts', function (err, data) { | ||
if (err) return false; | ||
return _cb(null); | ||
}); | ||
}, | ||
|
||
function (_cb) { | ||
exec('gulp icons', function (err, data) { | ||
if (err) return false; | ||
return _cb(null); | ||
}); | ||
}, | ||
|
||
function (_cb) { | ||
cb(null) | ||
}, | ||
]); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
var opts = require('../opts'); | ||
var log = require('../tools/log'); | ||
var exec = require('child_process').exec; | ||
|
||
module.exports = function (cb) { | ||
var cmd = 'git show-ref refs/tags/' + opts.nextRelease.name; | ||
|
||
exec(cmd, function (err, data) { | ||
return data ? | ||
log('✗ Tag already exist in local') : | ||
cb(null); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
var opts = require('../opts'); | ||
var log = require('../tools/log'); | ||
var exec = require('child_process').exec; | ||
|
||
module.exports = function (cb) { | ||
var cmd = 'git ls-remote origin refs/tags/' + opts.nextRelease.name; | ||
|
||
exec(cmd, function (err, data) { | ||
return data ? | ||
log('✗ Tag already exist in remote') : | ||
cb(null); | ||
}); | ||
}; |