newjs: JavaScript Project Creation
Date : 2008 02 15 Category : Tech & DevelopmentWhen 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???? ;)