Coder Social home page Coder Social logo

grunt-init-seeli's Introduction

Grunt-Init-Seeli - A skeleton for node CLI apps based on seeli and best practices

Introduction

This template for grunt-init will provide you with a basic setup made for CLI apps on Node based on these wonderful frameworks:

Also, the .eslintrc from https://github.com/felixge/node-style-guide is taken to validate your source code.

Structure

The template is based on a single, executableentry point, that binds one or more commands together into a CLI application. All commands are supposed to rely on API classes - for clearer separation of concerns and testing purposes.

Output for the applications is provided by Handlebars templates, that are compiled into javascript modules using Grunt.

Additionally, Winston is used to provide logging throughout the application. Default Arguments for specifying the log level and a reasonable log formatter come with the package.

Usage

First, install grunt-init using npm:

npm install -g grunt-init

Afterwards, download the release of grunt-init-seeli and put it in ~/ .grunt-init. Now you can simply run

mkdir my-cli-app
grunt-init grunt-init-seeli

A small wizard will ask you several questions and create your application.

Afterwards, install the needed dependencies, let Grunt compile the templates and you're done:

npm install
node_modules/.bin/grunt

Also, you may make your script executable, because it already contains a shebang and can thus run directly without "node" prefixed to it:

chmod +x *.js

Where to go from here

Have a look at the example command provided in lib/commands/example.js. This is a basic setup for each command you like to include.

Note, how the Example API and the Handlebars-templates are used to actually do and output something.

Check out Seeli and how flags are used to create new commands.

Have fun.

grunt-init-seeli's People

Contributors

dploeger avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.