daruma v0.2.1
What is this?
A tool that gets you up and running writing ES2015+ JavaScript with no fuss.
Why do I want this?
If you've ever had to start a node project or library from scratch with all of the cool features like ES2015 with babel and bundling with webpack, you know it can be a hassle. Daruma allows you to focus on what's most important: building your project.
Who is this for?
Primarily for those who don't want to go through the hassle of setting up an ES2015+ project but still want to flexibility that a starter kit can't provide.
Getting Started
Install Daruma from npm npm install -g daruma
Initialize a new project
daruma new <projectname> [-l for libraries with a specific bundled outfile]
Enter the Project Directory
cd <projectname>
Write ES2015+ code in your src/ folder. (index.js is the entry for libraries)
then ...
Test your code
Write tests in your test/ directory using whatever assertion library you'd like and run daruma test to run tests using Mocha
Compile your EsNext JavaScript
daruma build [-w for watching files] [-p for production library builds]
You now have valid ES5 code in your dist/ folder! Wasn't that easy?
Daruma leverages the power of...
- npm
- Babel
- Webpack
- Shelljs
- Mocha
- Vorpal
...to give you a clean and easy development experience.
This wouldn't be possible without those projects, so thank you JavaScript ecosystem. :)
Roadmap:
Features wanted:
daruma new <projectname> -l(Project Initialization for Library with single entry point)daruma new <projectname>(Project initialization for compiling whole source)daruma init [-l](Transform a directory for use with daruma)daruma build [-p -w for libs](Compile project depending on project type. Bundled file todist/for lib and compile wholesrc/tree todist/for normal projects.-pis for compiling minimized 'production' code and-wwatches for changes)daruma test(First class testing)daruma install <packagename(s)>(Add package(s) from NPM and save topackage.json)daruma uninstall <packagename(s)>(Remove dependencies from project andpackage.json)daruma updateupdate the version of daruma on your machine- daruma pre-build scripts