The JavaScript build tool.
A tool that gets you up and running writing ES2015+ JavaScript with no fuss.
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.
Even Daruma was written using Daruma. 😏
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.
Install Daruma from npm npm install -g daruma
daruma new <projectname> [-l for libraries with a specific bundled outfile]
cd <projectname>
then ...
Write tests in your test/
directory using whatever assertion library you'd like and run daruma test
to run tests using Mocha
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?
- 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. :)
-
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.-p
is for compiling minimized 'production' code and-w
watches 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 update
update the version of daruma on your machine - daruma pre-build scripts