Giter Site home page Giter Site logo

metamemoryt / generator-sublime Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mcfly-io/generator-sublime

0.0 2.0 0.0 432 KB

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

JavaScript 95.25% Shell 4.75%

generator-sublime's Introduction

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

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:

  • .jshintrc
  • .jscsrc
  • .eslintrc
  • .tern-project
  • .jsbeautifyrc
  • .gitignore
  • readme.md (comes with badges!)
  • startup.sh (codio startup file)
  • bin/git-config.sh (configure git with common aliases and options)
  • .travis.yml (travis-ci config file)
  • shippable.yml (shippable.com config file)
  • .settings (codio settings file)

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

  • clientFolder : the name of the client folder (usually client or www)
  • ionic : true to include ionic framework
  • famous : true to include angular-famous framework
  • fontawesome : true to include font-awesome
  • bootstrap : true to include the bootstrap library

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

Results

This will scaffold some common gulp tasks:

  • browserify (create a browserify bundle)
  • changelog (create a CHANGELOG.md file when your commit messages adhere to angular commit guidelines)
  • lint (linting through jshint, jscs, and eslint)
  • release (bump the version, create tag and publish to github)
  • serve (start a server using livereload)
  • browsersync (start a server using browserSync)
  • test (run unit tests - support karma and mocha)
  • style (create a bundle css file)

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

generator-sublime's People

Contributors

ijmir avatar jskrzypek avatar thaiat 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.