grunt-iw-release
Advanced tools
Comparing version 0.6.1 to 0.6.2
{ | ||
"name": "grunt-iw-release", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "InsideWarehouse release/deploy flow", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -31,3 +31,3 @@ module.exports = function (grunt) { | ||
var bundleFileTemplate = "build/<%= pkg.name %>-v<%= pkg.version %>.tgz"; | ||
var bundleFileTemplate = "build/<%= pkg.name.replace(/\\@\\w+\\//, '') %>-v<%= pkg.version %>.tgz"; | ||
sftpConfig.release = { | ||
@@ -50,13 +50,13 @@ src: [ bundleFileTemplate ], | ||
sshexecConfig.checkupload = { | ||
command: "cd <%= pkg.deployment.path %>/releases/; [ ! -f <%= pkg.name %>-v<%= pkg.version %>.tgz ];" | ||
command: "cd <%= pkg.deployment.path %>/releases/; [ ! -f <%= pkg.name.replace(/\\@\\w+\\//, '') %>-v<%= pkg.version %>.tgz ];" | ||
}; | ||
sshexecConfig.extract = { | ||
command: "cd <%= pkg.deployment.path %>/releases/; tar xvzf <%= pkg.name %>-v<%= pkg.version %>.tgz >/dev/null" | ||
command: "cd <%= pkg.deployment.path %>/releases/; tar xvzf <%= pkg.name.replace(/\\@\\w+\\//, '') %>-v<%= pkg.version %>.tgz >/dev/null" | ||
}; | ||
sshexecConfig.symlink = { | ||
command: "ln -sfn <%= pkg.deployment.path %>/releases/<%= pkg.name %>-v<%= pkg.version %> <%= pkg.deployment.path %>/apps/<%= pkg.name %>" | ||
command: "ln -sfn <%= pkg.deployment.path %>/releases/<%= pkg.name.replace(/\\@\\w+\\//, '') %>-v<%= pkg.version %> <%= pkg.deployment.path %>/apps/<%= pkg.name.replace(/\\@\\w+\\//, '') %>" | ||
}; | ||
if (!!grunt.config.get("pkg.scripts.start")) { | ||
sshexecConfig.restart = { | ||
command: "cd <%= pkg.deployment.path %>/apps/<%= pkg.name %>/; npm restart" | ||
command: "cd <%= pkg.deployment.path %>/apps/<%= pkg.name.replace(/\\@\\w+\\//, '') %>/; npm restart" | ||
}; | ||
@@ -67,3 +67,3 @@ } | ||
sshexecConfig.restart = { | ||
command: "cd <%= pkg.deployment.path %>/apps/<%= pkg.name %>/; bash ./restart.sh" | ||
command: "cd <%= pkg.deployment.path %>/apps/<%= pkg.name.replace(/\\@\\w+\\//, '') %>/; bash ./restart.sh" | ||
}; | ||
@@ -70,0 +70,0 @@ } |
@@ -25,3 +25,3 @@ module.exports = function (grunt) { | ||
if (!grunt.file.isPathCwd(topLevelPath)) { | ||
var pkgName = grunt.config.get("pkg.name"); | ||
var pkgName = grunt.config.get("pkg.name").replace(/\@\w+\//, ''); | ||
bumpOptions.commitMessage = "[" + pkgName + "] v%VERSION%"; | ||
@@ -28,0 +28,0 @@ bumpOptions.tagName = pkgName + "-v%VERSION%"; |
9501