scriptr
scriptr
is a convenience utility for getting my scripting workflow up and running quickly without much added complexity. It's a very simple utility that encapsulates my most common scripting workflow, allowing me to keep the base application from exploding with dependencies unrelated to its domain.
Motivation
I found myself using a similar pattern to compile scripts on all my projects, and I wanted a quicker way to get up and running while getting as many boilerplate dependencies as possible out of the individual project's package.json
. I like the idea of small, UNIX-like tools and am experimenting with how I might be able to create specific and simple utilities that can be easily combined together.
Usage
Step 0: Install
npm install -g scriptr
Step 1: Prepare Your Scripts
scriptr
expects to receive a .coffee
manifest file. If desired, you can use browserify
in this manifest.
Step 2: Combine!
From the command line, run scriptr [source] [destination]
, where [source]
is the path to your manifest file and [destination]
is the path to your desired JS file. Paths can be absolute or relative.
Example: scriptr ui/ui.coffee build/js/ui.js