scarlet-init

Scarlet-init is a scaffolding tool used to automate Scarlet plugin creation.

npm install scarlet-init
8 downloads in the last week
32 downloads in the last month

scarlet-init

Scarlet-init is a scaffolding tool used to automate Scarlet plugin creation.

Build Status

Installation

Install globally so you can run from the command line

npm install scarlet-init -g

Purpose/Description

Provides a way to create a project scaffolding for Scarlet using a cli.

Simply type scarlet-init in the directory you want to create the new plugin, answer the questions...and boom project setup with mocha, grunt, and ready for you to start building.

Inspired by grunt-init and npm init

Example

Create a new plugin

$ cd ~/newPluginDir
$ scarlet-init
//--> answer all questions for your project; project name, license, description, keywords
//--> now your directory is setup and good to go

$ npm test
//--> tests are setup to work with mocha and run out of the box

List help

$ scarlet-init -h
//--> lists the help for scarlet-init cli

Templates

Currently supports the following templates:

  • gulp-mocha|default - Gives you a scarlet plugin project with: gulp, gulp-jshint, gulp-mocha ,scarlet, lib and test directories, and package.json
  • grunt-mocha - Gives you a scarlet plugin project with: grunt, grunt-contrib-jshint, mocha ,scarlet, lib and test directories, and package.json
  • full - Gives you a scarlet plugin project with: grunt, grunt-contrib-jshint, grunt-release, grunt-contrib-watch, mocha, scarlet, lib and test directories, and package.json
  • lite - Gives you a scarlet plugin project with: index.js, package.json

To use a non-default template use the -t paramater

Credits/Other Frameworks

npm loves you