Permalink
Browse files

Build

  • Loading branch information...
1 parent 8f24450 commit a936741ced675a958201ca3f4d3dd09f5eb45039 @davglass davglass committed Aug 14, 2012
@@ -413,17 +413,7 @@ YUITest.Util.mix(YUITest.CLI, {
},
outputVersion: function() {
- var fs = require('fs'),
- path = require('path'),
- exists = fs.existsSync || path.existsSync,
- pack = path.join(__dirname, 'package.json');
-
- if (exists(pack)) {
- var json = JSON.parse(fs.readFileSync(pack, 'utf8'));
- this.print(json.version + '\n');
- } else {
- this.print('Can not locate package.json file.\n');
- }
+ this.print(YUITest.version + '\n');
},
outputHelp: function(){
@@ -10,7 +10,7 @@
*/
var YUITest = exports;
-YUITest.version = "@VERSION@";
+YUITest.version = "0.7.6";
//backwards compatibility
exports.YUITest = YUITest;
@@ -10,7 +10,7 @@
*/
var YUITest = exports;
-YUITest.version = "@VERSION@";
+YUITest.version = "0.7.6";
//backwards compatibility
exports.YUITest = YUITest;
@@ -10,7 +10,7 @@
*/
var YUITest = {
- version: "@VERSION@"
+ version: "0.7.6"
};
/**

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -10,7 +10,7 @@
*/
var YUITest = {
- version: "@VERSION@"
+ version: "0.7.6"
};
/**
@@ -10,7 +10,7 @@
*/
var YUITest = {
- version: "@VERSION@"
+ version: "0.7.6"
};
/**

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -412,17 +412,7 @@ YUITest.Util.mix(YUITest.CLI, {
},
outputVersion: function() {
- var fs = require('fs'),
- path = require('path'),
- exists = fs.existsSync || path.existsSync,
- pack = path.join(__dirname, 'package.json');
-
- if (exists(pack)) {
- var json = JSON.parse(fs.readFileSync(pack, 'utf8'));
- this.print(json.version + '\n');
- } else {
- this.print('Can not locate package.json file.\n');
- }
+ this.print(YUITest.version + '\n');
},
outputHelp: function(){

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -412,17 +412,7 @@ YUITest.Util.mix(YUITest.CLI, {
},
outputVersion: function() {
- var fs = require('fs'),
- path = require('path'),
- exists = fs.existsSync || path.existsSync,
- pack = path.join(__dirname, 'package.json');
-
- if (exists(pack)) {
- var json = JSON.parse(fs.readFileSync(pack, 'utf8'));
- this.print(json.version + '\n');
- } else {
- this.print('Can not locate package.json file.\n');
- }
+ this.print(YUITest.version + '\n');
},
outputHelp: function(){
@@ -10,7 +10,7 @@
*/
var YUITest = exports;
-YUITest.version = "@VERSION@";
+YUITest.version = "0.7.6";
//backwards compatibility
exports.YUITest = YUITest;
Oops, something went wrong.

0 comments on commit a936741

Please sign in to comment.