mcfly-io / generator-sublime

Yeoman generator for scaffolfding the standard configuration root files like .gitignore, .jshintrc, .jscsrc etc...
8 stars 10 forks source link

Sublime Generator

NPM version Downloads
Build Status Test Coverage Code Climate
Dependency Status devDependency Status peerDependency Status

Yeoman generator for scaffolding the standard configuration root files like .gitignore, .jshintrc, .jscsrc etc...

NPM

Usage

This generator-sublime is mainly used as a sub generator of generator-mcfly

sublime:app

Install generator-sublime:

npm install -g generator-sublime

Make a new directory, and cd into it:

mkdir my-new-project && cd $_

Run yo sublime:

yo sublime

Options

You can use the --skip-welcome-message option to hide the welcome message. This is usefull when you compose this generator with your own so you don't get twice welcome messages.

You can use the --nodeVersion option to set the version of node.js for continuous delivery.

You can use the --githubUser option to pass your github username. It is usefull when scaffolding .travis.yml so that travis knows how to publish your npm package

yo sublime --githubUser=toto

You can use the --checkTravis option to by pass checking if travis cli is installed.

Results

This generator will scaffold the following files:

In addition generator-sublime will configure .travis.yml file for npm publishing your package if the build succeeds.

sublime:bash

yo sublime:bash ./path/to/your/bashfile.sh

Results

This will scaffold a basic bash file with correct header and chmod options. You should then be able to run it

./path/to/your/bashfile.sh

sublime:gulps

yo sublime:gulps

Options

To better understand the gulp task system have a look at the docs of gulp-mux.

Results

This will scaffold some common gulp tasks:

Testing

Running npm test will run the unit tests with mocha.

Changelog

Recent changes can be viewed on Github on the Releases Page

License

BSD