Permalink
Browse files

Took js from build and put it into the correct file for generating ex…

…amples
  • Loading branch information...
1 parent f2c2cbc commit 998cf559fd20c8b604d353076cf9c124532ef4d7 @FotoVerite FotoVerite committed May 18, 2010
Showing with 22 additions and 17 deletions.
  1. +0 −15 BUILD/BUILD.js
  2. +1 −1 examples/bigDataSet.json
  3. +1 −1 examples/dataSet.json
  4. +20 −0 examples/node_generateSet.js
View
@@ -66,21 +66,6 @@ fs.writeFile('../Readme.md', docOutput, function() {
sys.puts("Docs generated successfully!");
});
-// generate dataSet as example
-fs.writeFile('../examples/dataSet.json', JSON.stringify(Faker.Helpers.userCard()), function() {
- sys.puts("dataSet generated successfully!");
-});
-// generate bigDataSet as example
-var bigSet = [];
-
-for(i = 20; i >= 0; i--){
- bigSet.push(Faker.Helpers.userCard());
-};
-
-fs.writeFile('../examples/bigDataSet.json', JSON.stringify(bigSet), function() {
- sys.puts("bigDataSet generated successfully!");
-});
-
/*********************** BUILD HELPER METHODS *********************/
// Recursively traverse a hierarchy, returning a list of all relevant .js files.
View
@@ -1 +1 @@
-[{"name":"Vida Stark","username":"Colleen.Denesik","email":"Mireya.Herman@jerome.info","address":{"street":"Jenkins Shoals","suite":"Suite 987","city":"East Anastasiabury","zipcode":"70435-0544"},"phone":"481.547.1023 x1212","website":"morton.uk","company":{"name":"Wintheiser,Kuhlman and Wisoky","catchPhrase":"Vision-oriented 6th generation complexity","bs":"productize wireless experiences"}},{"name":"Victoria Hessel","username":"Austyn","email":"Gunnar@megane.biz","address":{"street":"Runolfsson Drive","suite":"Apt. 361","city":"West Lucienne","zipcode":"74261"},"phone":"(233)511-2243 x3671","website":"favian.biz","company":{"name":"Blanda-Dickens","catchPhrase":"Triple-buffered client-server complexity","bs":"unleash bricks-and-clicks relationships"}},{"name":"Mrs. Edwin Johnston","username":"Brenda","email":"Tanya@leanna.ca","address":{"street":"Ryan Camp","suite":"Apt. 278","city":"South Justus","zipcode":"68473-0638"},"phone":"1-708-850-6099","website":"freddie.co.uk","company":{"name":"Davis-Wintheiser","catchPhrase":"Multi-lateral bandwidth-monitored circuit","bs":"engineer cross-media ROI"}},{"name":"Reed Goyette","username":"Elliott","email":"Kariane@ricky.co.uk","address":{"street":"Klein Shores","suite":"Apt. 668","city":"North Luisa","zipcode":"68265-8789"},"phone":"984.971.2692 x008","website":"maxime.ca","company":{"name":"Upton,Beahan and Nikolaus","catchPhrase":"Future-proofed bandwidth-monitored conglomeration","bs":"monetize granular convergence"}},{"name":"Alexandra Maggio","username":"Pietro","email":"Zachariah.Weber@lillian.us","address":{"street":"Champlin Isle","suite":"Suite 325","city":"North Araceli","zipcode":"89695-1242"},"phone":"1-099-181-7064 x5756","website":"astrid.info","company":{"name":"Wilderman-Hoeger","catchPhrase":"Public-key global challenge","bs":"expedite web-enabled networks"}},{"name":"Ms. Rusty Kozey","username":"Rudolph","email":"Cooper.Kulas@giuseppe.biz","address":{"street":"Rosenbaum Meadows","suite":"Suite 346","city":"North Johnniefurt","zipcode":"48142"},"phone":"557.506.7618 x9268","website":"simeon.co.uk","company":{"name":"Prosacco,Pollich and Goodwin","catchPhrase":"Realigned grid-enabled moderator","bs":"empower user-centric paradigms"}},{"name":"Caitlyn Berge","username":"Modesta","email":"Niko@al.co.uk","address":{"street":"Hilpert Station","suite":"Suite 648","city":"Lake Blaze","zipcode":"33375"},"phone":"042.464.8561 x064","website":"theresa.info","company":{"name":"Grady and Sons","catchPhrase":"Innovative national knowledge user","bs":"enhance end-to-end platforms"}},{"name":"Mr. Travon Brown","username":"Lyric","email":"Richard_Bartoletti@marshall.co.uk","address":{"street":"Sipes Drive","suite":"Suite 392","city":"Gradyhaven","zipcode":"08574-2050"},"phone":"434-684-1848 x3396","website":"boris.com","company":{"name":"Gottlieb-Hilll","catchPhrase":"Centralized human-resource system engine","bs":"engineer front-end eyeballs"}},{"name":"Doug Zieme","username":"Jermaine_Adams","email":"Ava@tania.com","address":{"street":"Gusikowski Corner","suite":"Suite 998","city":"Lake Dovie","zipcode":"94646-1829"},"phone":"(544)659-7314","website":"patricia.ca","company":{"name":"Kassulke,Little and Beahan","catchPhrase":"Switchable 6th generation hardware","bs":"maximize end-to-end applications"}},{"name":"Dr. Kaylah Goldner","username":"Linda.Krajcik","email":"Marco@elisabeth.us","address":{"street":"Tremblay Circle","suite":"Apt. 907","city":"West Tinaland","zipcode":"50366"},"phone":"130.036.2408 x65169","website":"lew.uk","company":{"name":"Cummerata Inc","catchPhrase":"Focused web-enabled installation","bs":"unleash out-of-the-box mindshare"}},{"name":"Armani Gerlach","username":"Will.Kiehn","email":"Rosamond.Waters@jermain.biz","address":{"street":"McCullough Circle","suite":"Suite 921","city":"Port Orland","zipcode":"48571"},"phone":"625-471-3039 x090","website":"rosamond.com","company":{"name":"Hane-Stanton","catchPhrase":"Monitored local benchmark","bs":"transform seamless methodologies"}},{"name":"Ricky Koepp","username":"Milan","email":"Verla_Kunde@rory.us","address":{"street":"Powlowski Spur","suite":"Apt. 155","city":"West Lia","zipcode":"38279"},"phone":"320.481.4797","website":"miles.info","company":{"name":"King LLC","catchPhrase":"De-engineered discrete collaboration","bs":"deploy dynamic architectures"}},{"name":"Loma Ferry","username":"Maryse","email":"Lue@marisol.com","address":{"street":"Hoeger Gateway","suite":"Apt. 840","city":"West Devyn","zipcode":"53131-8299"},"phone":"797.644.4638 x979","website":"jamal.uk","company":{"name":"Witting-Dicki","catchPhrase":"Re-contextualized background software","bs":"maximize user-centric bandwidth"}},{"name":"Sigurd Ferry","username":"Orrin_Renner","email":"Orpha_Rempel@alia.info","address":{"street":"Schneider Point","suite":"Suite 382","city":"Lake Everardoshire","zipcode":"53431-9520"},"phone":"(302)535-8944","website":"karli.biz","company":{"name":"Nolan Inc","catchPhrase":"Face to face transitional interface","bs":"seize cutting-edge relationships"}},{"name":"Kira Monahan","username":"Gonzalo.Bernhard","email":"Zetta.Wehner@skylar.name","address":{"street":"Gislason Gardens","suite":"Suite 742","city":"Lake Clair","zipcode":"39314"},"phone":"1-239-149-4160","website":"adan.uk","company":{"name":"Nader-Zemlak","catchPhrase":"Right-sized maximized data-warehouse","bs":"enable synergistic e-services"}},{"name":"Ana Witting","username":"Bernie","email":"Octavia@alice.uk","address":{"street":"Lebsack Fall","suite":"Apt. 516","city":"New Jayhaven","zipcode":"07973"},"phone":"(214)114-1762 x285","website":"polly.us","company":{"name":"Bruen,Marquardt and Farrell","catchPhrase":"De-engineered high-level architecture","bs":"whiteboard 24/7 web services"}},{"name":"Freddy Marquardt","username":"Shanon","email":"Sabryna.Gorczany@myriam.us","address":{"street":"Feeney Ford","suite":"Suite 991","city":"North Mathew","zipcode":"66120"},"phone":"(051)988-6005 x396","website":"lilly.name","company":{"name":"Hodkiewicz Inc","catchPhrase":"Future-proofed user-facing installation","bs":"disintermediate mission-critical deliverables"}},{"name":"Trenton Gutkowski","username":"Jayde_Fadel","email":"Jeromy_Reinger@deja.biz","address":{"street":"Satterfield Keys","suite":"Apt. 246","city":"Lonhaven","zipcode":"40393-2153"},"phone":"(788)741-1648","website":"ethyl.us","company":{"name":"Gu\ufffdann-Gerhold","catchPhrase":"Managed responsive application","bs":"embrace 24/7 partnerships"}},{"name":"Norris Lockman","username":"Nella.Bruen","email":"Shane@dominic.info","address":{"street":"Haley Shoals","suite":"Suite 348","city":"Adrieltown","zipcode":"05248"},"phone":"1-797-496-5932","website":"june.biz","company":{"name":"Romaguera Group","catchPhrase":"Profound bi-directional middleware","bs":"target extensible action-items"}},{"name":"Lilyan Bernhard","username":"Chadrick_Wolf","email":"Elbert@lesly.ca","address":{"street":"Streich Grove","suite":"Suite 827","city":"Port Velma","zipcode":"21651-4385"},"phone":"075-132-5180 x76231","website":"forrest.name","company":{"name":"Heidenreich-Steuber","catchPhrase":"Sharable bandwidth-monitored hub","bs":"enable B2B action-items"}},{"name":"Desiree White","username":"Thad.Kautzer","email":"Hadley.Mayer@nicole.com","address":{"street":"Brown Corner","suite":"Suite 747","city":"Pearlhaven","zipcode":"69149"},"phone":"(138)609-7758 x4030","website":"jennyfer.us","company":{"name":"Jaskolski LLC","catchPhrase":"Reduced multi-state definition","bs":"transition viral interfaces"}}]
+[{"name":"Liliana Gibson","username":"Madelyn","email":"Armand@tavares.biz","address":{"street":"Leffler Unions","suite":"Suite 102","city":"Lake Jonatan","zipcode":"60579"},"phone":"(457)497-4068","website":"margarette.uk","company":{"name":"Bruen,Altenwerth and Heathcote","catchPhrase":"Innovative fault-tolerant superstructure","bs":"synergize out-of-the-box partnerships"}},{"name":"Shanie Hauck","username":"Katheryn","email":"Sally@zackery.com","address":{"street":"Balistreri Fields","suite":"Apt. 287","city":"Marafurt","zipcode":"91572"},"phone":"216-402-6789 x1647","website":"hanna.ca","company":{"name":"Abbott-Hermann","catchPhrase":"Extended modular info-mediaries","bs":"evolve granular technologies"}},{"name":"Liliane Fay","username":"Clinton","email":"Josue@dillon.name","address":{"street":"Kihn Road","suite":"Apt. 148","city":"Lenoraborough","zipcode":"19689"},"phone":"1-250-798-0995 x172","website":"francesco.ca","company":{"name":"Luettgen,Wehner and Rolfson","catchPhrase":"Cross-platform discrete structure","bs":"whiteboard dynamic e-tailers"}},{"name":"Thalia Hauck","username":"Chauncey","email":"Jaleel_Bogan@zola.name","address":{"street":"Erdman Divide","suite":"Suite 430","city":"Laurinemouth","zipcode":"77403-6880"},"phone":"1-407-468-7819","website":"samson.name","company":{"name":"Christiansen and Sons","catchPhrase":"Self-enabling methodical open system","bs":"exploit real-time bandwidth"}},{"name":"Breanne Willms","username":"Hobart","email":"Dawn@lynn.info","address":{"street":"O'Conner Summit","suite":"Suite 031","city":"Vivienneview","zipcode":"83910"},"phone":"654-791-5113 x5062","website":"arnoldo.info","company":{"name":"Ferry,Boehm and Bednar","catchPhrase":"Intuitive directional knowledge user","bs":"extend mission-critical experiences"}},{"name":"Regan DuBuque","username":"Elyssa","email":"Faye@royal.ca","address":{"street":"Russel Oval","suite":"Apt. 188","city":"Alexzandermouth","zipcode":"99240"},"phone":"225.773.6392","website":"roxanne.us","company":{"name":"Zulauf-Hammes","catchPhrase":"Cross-group zero administration capability","bs":"expedite front-end architectures"}},{"name":"Antonietta Schinner","username":"Theodora.Medhurst","email":"Reyna.Block@lilly.co.uk","address":{"street":"Abbott Street","suite":"Suite 988","city":"East Fredaville","zipcode":"70477-9430"},"phone":"146-545-1914","website":"weldon.biz","company":{"name":"Cruickshank Group","catchPhrase":"Automated well-modulated circuit","bs":"utilize interactive architectures"}},{"name":"Dr. Lester Russel","username":"Kyla","email":"Amina_Barton@eldridge.co.uk","address":{"street":"Kautzer Court","suite":"Apt. 190","city":"Port Lindseyville","zipcode":"44055-3290"},"phone":"1-556-430-7679","website":"michael.com","company":{"name":"D'Amore and Sons","catchPhrase":"Team-oriented background middleware","bs":"morph granular web services"}},{"name":"Cary Reilly","username":"Marcella.Boehm","email":"Pat@jett.uk","address":{"street":"Flatley Locks","suite":"Suite 779","city":"South Addieland","zipcode":"42791-5340"},"phone":"1-669-561-3826 x52188","website":"bradly.info","company":{"name":"Hilpert-Crona","catchPhrase":"Enterprise-wide transitional capacity","bs":"generate dynamic ROI"}},{"name":"Nettie Smitham","username":"Braden_West","email":"Avis@cortez.biz","address":{"street":"Rippin Trace","suite":"Suite 185","city":"South Domenico","zipcode":"17324-3258"},"phone":"(656)404-9278","website":"adolf.name","company":{"name":"Nikolaus-Bergstrom","catchPhrase":"Switchable background conglomeration","bs":"monetize integrated networks"}},{"name":"Lupe Upton","username":"Eli","email":"Marjory_Howell@stanley.com","address":{"street":"Mueller Spurs","suite":"Suite 348","city":"New Keshawn","zipcode":"07420-7542"},"phone":"752.279.1192 x1924","website":"oral.biz","company":{"name":"Skiles Inc","catchPhrase":"Profit-focused 3rd generation architecture","bs":"maximize cross-media eyeballs"}},{"name":"Emma Weimann","username":"Bret","email":"Abner_Marks@otha.us","address":{"street":"Gorczany Hollow","suite":"Suite 353","city":"Lake Jedidiah","zipcode":"87710-9994"},"phone":"1-895-970-8063 x803","website":"alexa.us","company":{"name":"Hayes-Glover","catchPhrase":"Synchronised maximized moderator","bs":"implement open-source portals"}},{"name":"Aubree Dooley","username":"Joanie_Reilly","email":"Alaina@bennett.ca","address":{"street":"Harris Station","suite":"Apt. 067","city":"East Claudie","zipcode":"36323"},"phone":"262.193.2022","website":"rosalia.us","company":{"name":"Fritsch and Sons","catchPhrase":"Horizontal grid-enabled monitoring","bs":"iterate B2C markets"}},{"name":"Modesto Dibbert","username":"Mohammed.Wintheiser","email":"Leonor@owen.name","address":{"street":"Quitzon Station","suite":"Suite 464","city":"North Johnathanville","zipcode":"69325"},"phone":"725-733-4343 x07214","website":"yvonne.com","company":{"name":"Kris-Lynch","catchPhrase":"Diverse upward-trending success","bs":"whiteboard enterprise e-markets"}},{"name":"Jermey Jacobi","username":"Marjory","email":"Jaclyn@juliana.com","address":{"street":"Casper Knolls","suite":"Suite 861","city":"North Lavernville","zipcode":"15883"},"phone":"1-064-055-1029 x6895","website":"kyle.co.uk","company":{"name":"Howe,Collins and Waters","catchPhrase":"Persistent real-time local area network","bs":"disintermediate distributed infomediaries"}},{"name":"Zachariah Smith","username":"Quincy","email":"Rose.Stiedemann@norma.biz","address":{"street":"Miller Estates","suite":"Apt. 681","city":"New Jared","zipcode":"65557"},"phone":"(269)490-9367","website":"christian.ca","company":{"name":"Bradtke and Sons","catchPhrase":"Compatible impactful Graphic Interface","bs":"unleash interactive interfaces"}},{"name":"Tracey Powlowski","username":"Trisha.Greenholt","email":"Laney@rollin.com","address":{"street":"Lemke Shore","suite":"Suite 151","city":"Patriciashire","zipcode":"09804-1321"},"phone":"1-624-426-5456 x5507","website":"scarlett.biz","company":{"name":"Lockman-Kuvalis","catchPhrase":"Enhanced context-sensitive interface","bs":"enable real-time convergence"}},{"name":"Nickolas Bauch","username":"Romaine","email":"Shania@eli.ca","address":{"street":"Streich Pine","suite":"Apt. 536","city":"New Sammie","zipcode":"60826"},"phone":"466.621.4430 x7410","website":"selina.co.uk","company":{"name":"Howe and Sons","catchPhrase":"Robust analyzing help-desk","bs":"disintermediate real-time convergence"}},{"name":"Kristina Grant","username":"Magnolia_Quigley","email":"Katrine@albertha.us","address":{"street":"Roob Tunnel","suite":"Apt. 630","city":"North Gaylord","zipcode":"52101"},"phone":"(597)488-0874 x21090","website":"chanelle.info","company":{"name":"Gorczany-Will","catchPhrase":"Triple-buffered interactive framework","bs":"maximize front-end models"}},{"name":"Albertha Walter","username":"Freda","email":"Rosie.Kohler@dedrick.biz","address":{"street":"Blanda Grove","suite":"Apt. 724","city":"Port Tyrique","zipcode":"68900"},"phone":"548.845.1835","website":"ottis.uk","company":{"name":"Hayes LLC","catchPhrase":"Innovative global process improvement","bs":"morph enterprise channels"}},{"name":"Alexandria Kovacek","username":"Mittie","email":"Laurine_Heathcote@wendy.com","address":{"street":"Bailey Turnpike","suite":"Suite 729","city":"South Dawnview","zipcode":"47868"},"phone":"382.233.0380 x03245","website":"jarrod.ca","company":{"name":"O'Keefe-Keeling","catchPhrase":"Balanced user-facing collaboration","bs":"enable cross-platform bandwidth"}}]
View
@@ -1 +1 @@
-{"name":"Irving Shields","username":"Jaiden","email":"Lamar@reinhold.co.uk","address":{"street":"Wehner Motorway","suite":"Apt. 165","city":"East Noble","zipcode":"21121-8688"},"phone":"1-226-958-5020 x445","website":"justus.ca","company":{"name":"Hayes and Sons","catchPhrase":"Inverse radical local area network","bs":"optimize robust partnerships"}}
+{"name":"Oswald Goldner","username":"Izaiah","email":"Michael@nicola.us","address":{"street":"Legros Summit","suite":"Suite 061","city":"Lake Jaydeburgh","zipcode":"35411-3193"},"phone":"1-658-413-1550","website":"buddy.ca","company":{"name":"Quigley Group","catchPhrase":"Organized content-based encoding","bs":"generate e-business solutions"}}
@@ -0,0 +1,20 @@
+var sys = require('sys')
+ , fs = require('fs');
+
+var Faker= require('../index');
+
+
+// generate dataSet as example
+fs.writeFile('../examples/dataSet.json', JSON.stringify(Faker.Helpers.userCard()), function() {
+ sys.puts("dataSet generated successfully!");
+});
+// generate bigDataSet as example
+var bigSet = [];
+
+for(i = 20; i >= 0; i--){
+ bigSet.push(Faker.Helpers.userCard());
+};
+
+fs.writeFile('../examples/bigDataSet.json', JSON.stringify(bigSet), function() {
+ sys.puts("bigDataSet generated successfully!");
+});

1 comment on commit 998cf55

Owner

Marak commented on 998cf55 May 18, 2010

nice!

you should probably put this logic into => Helpers.generateDataSet = function (size){}; in the helper.js file?

Please sign in to comment.