Friday, February 15th, 2008

newjs: JavaScript Project Creation

Category: JavaScript, Testing, Utility

When you start a new JavaScript library, how do you layout the source files, the tests, the distribution files? Do you have support scripts to generate distributions from source files? Run your JavaScript unit tests? Generators to create new unit test HTML files?

This is why Dr. Nic created newjs, a Ruby script that sets you up to do the right thing by your pet project. No longer will you crack open a .js file and slice and dice your JavaScript willy nilly. Instead, you will use newjs to:

  • Setup your directory structure for src, tests, documentation, distribution
  • Start building unit tests using unittest.js
  • Generate test files
  • Run unit tests and get nice HTML output
  • Package up your src for distribution
  • Create a website for your project (wait. is this maven???? ;)

Posted by Dion Almaer at 7:36 am
Comment here

+++--
3.4 rating from 18 votes

Comments Here »

Comments feed TrackBack URI

Leave a comment

You must be logged in to post a comment.