Giter Club home page Giter Club logo

generator-tok's Introduction

generator-tok

This is a Yeoman generator for apps that follow the Tokbox style guidelines and best practises.

Prerequisites

This generator is built using Yeoman, you'll need to install that first.

npm install -g yo

Installation

Eventually I will push this to npm. But for you can install it using:

git clone https://github.com/luma/generator-tok.git
cd generator-tok
npm link

After that the yo tok generator should be available.

Usage

mkdir appName
cd appName
yo tok appName

This will generate a private module by default. Use yo tok appName --private=false to generate a public project.

By default it will also initialise a local Git repo for you. If you don't want one, or you wish to set it up yourself, then use the git flag (e.g. yo tok appName --git=false).

To see what tasks your new app has you can run gulp help.

What does it do for me?

It will generate apps with the following:

  • es6 support via Babel
  • create a new (local) git repo in the cwd
  • linting and code style checking via ESLint
  • a task to generate TODO.md and todo.json files
  • tasks via Gulp
  • testing via Jasmine
  • code coverage via Istanbul
  • code doc generation via JSDoc
  • Browser dependency management via Browserify
  • Browser test running via Karma
  • a default empty LICENSE file
  • a default .editorconfig and .gitignore
  • a mostly empty index.js that uses Bunyan for logging
  • a package.json file containing all the common essentials

What it doesn't do (yet)

  • it doesn't have strong guidelines for how you build your final package, except that you should use Gulp as your task system

TODOs

  • there should be a yeoman option for generating a library that targets browser, node, or both
  • adding the ability to generate a browser app (Browserify and karma support)
  • tests!

generator-tok's People

Contributors

ggarber avatar luma avatar

Watchers

 avatar  avatar

Forkers

ggarber

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.