Skip to content

Commit 33e93e0

Browse files
committed
WIP: fix grunt syntax error
1 parent 7fe5a48 commit 33e93e0

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Gruntfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,5 +348,5 @@ module.exports = function(grunt) {
348348
}
349349
});
350350

351-
grunt.registerTask('release', ['clean', 'build', 'gh-pages']);
351+
grunt.registerTask('release', ['clean', 'build', 'cutrelease', 'gh-pages']);
352352
};

lib/grunt/plugins.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ module.exports = function(grunt) {
8080

8181
var tasks = {}; options.map(function(t) { tasks[t] = 0 });
8282

83-
console.log('options', this.options());
83+
// console.log('options', this.options());
8484

8585
// grunt.task.run(options);
8686

@@ -141,7 +141,7 @@ module.exports = function(grunt) {
141141

142142
var options = this.options({
143143
stableSuffix: '-stable',
144-
unstableSuffix: '-edge',
144+
unstableSuffix: '-unstable',
145145
cleanup: false
146146
});
147147

@@ -152,6 +152,7 @@ module.exports = function(grunt) {
152152

153153
// Figure out if the tag is stable or not
154154
var stable = !/-\w+$/.test(tag);
155+
grunt.log.writeln('stable', stable);
155156

156157
// Log release type
157158
grunt.log.writeln(
@@ -169,7 +170,7 @@ module.exports = function(grunt) {
169170

170171
// If we're on a stable release or we want to keep unstable releases, create a directory for this release and copy the built files there
171172
if (stable || options.keepUnstable) {
172-
stableDir = path.join(file.dest, tag);
173+
stableDir = pafth.join(file.dest, tag);
173174
}
174175

175176
file.src.forEach(function (f) {

lib/grunt/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ var util = module.exports = {
186186
email: 'nggridteam@gmail.com'
187187
});
188188

189-
grunt.config('gh-pages.gh-pages.options.repo', 'https://' process.ENV.GITHUB_NAME + ':' + process.env.GITHUB_PASS + '@github.com/angular-ui/ui-grid.info.git');
189+
grunt.config('gh-pages.gh-pages.options.repo', 'https://' + process.ENV.GITHUB_NAME + ':' + process.env.GITHUB_PASS + '@github.com/angular-ui/ui-grid.info.git');
190190
}
191191
},
192192

0 commit comments

Comments
 (0)