Permalink
Browse files

Revert "Revert "updating package.json""

This reverts commit 1ed184d.
  • Loading branch information...
1 parent 1ed184d commit 4990609586d94aad8df12f338e4e607c447b33b0 Pranav Verma committed Aug 21, 2012
Showing with 61 additions and 0 deletions.
  1. +61 −0 package.json.pl
View
@@ -0,0 +1,61 @@
+#!/usr/local/bin/perl -w
+
+use strict;
+use warnings;
+use FindBin qw($Bin);
+
+my $PRODUCT_NAME='arrow';
+
+my $cmd = "/bin/sh $Bin/../package/${PRODUCT_NAME}.README.sh | awk '/^[vV]ersion [0-9.]+/ {print \$2; exit}'";
+my $version = `$cmd`;
+unlink("package.json");
+chomp $version;
+#$version =~ s/(.+)\.(.+)/$1-$2/;
+
+print <<EOF;
+{
+ "author": "Lego-QEP <lego-qe-platform\@yahoo-inc.com> (http://twiki.corp.yahoo.com/view/Lego/TeamQEPlatform)",
+ "name": "arrow",
+ "description": "FrontEnd Testing Framework",
+ "version": "${version}",
+ "homepage": "http://twiki.corp.yahoo.com/view/Lego/Arrow",
+ "repository": {
+ "type": "svn",
+ "url": "svn+ssh://svn.corp.yahoo.com/yahoo/media/common/tools/trunk/arrow/"
+ },
+ "man": "../man/arrow.1",
+ "main": "./index.js",
+ "scripts": {
+ "help": "arrow --help",
+ "test": "ytestrunner --yui3 --include **/*-tests.js --cov-exclude=**/webdriver.js --cov-exclude=**/node_modules/* -v -c --save-coverage --save-results"
+ },
+ "yahoo": {
+ "bugzilla": {
+ "product": "Lego QE Platform",
+ "component": "Arrow"
+ }
+ },
+ "bin": {
+ "arrow": "./index.js",
+ "arrow_server" : "arrow_server/server.js",
+ "arrow_selenium" : "arrow_selenium/selenium.js"
+ },
+ "engines": [ "node >=0.6" ],
+ "dependencies": {
+ "glob": "*",
+ "nopt": "*",
+ "colors":"*",
+ "express":"*",
+ "yui": "*",
+ "JSV": "*",
+ "log4js": "*",
+ "clone": "*",
+ "useragent": "*"
+ },
+ "devDependencies": {
+ "ytestrunner": "*",
+ "mockery": "*"
+ }
+}
+EOF
+

0 comments on commit 4990609

Please sign in to comment.