🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

generator-m

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-m

generator-m

Source
npmnpm
Version
0.2.6
Version published
Weekly downloads
43
59.26%
Maintainers
2
Weekly downloads
 
Created
Source

generator-m

NPM version Build Status Dependency Status Coverage Status

Why you need it

Build mobile Cordova/PhoneGap apps quickly with the tools you love: Yeoman, Gulp, Bower, AngularJS, Ionic & of course Cordova all in one sexy generator.

What's in the box

Your technology stack:

Additionally we use:

Prerequisites

Install

yeoman - if you don't have it already - http://yeoman.io/

npm install -g yo

generator-m

npm install -g generator-m

Usage

create new directory - and cd into it. Note: the generator needs an empty directory when you call it

mkdir myApp && cd $_

run the generator - and follow the instructions

yo m

IMPORTANT: Cordova needs an empty directory to work. Please run any other setup (e.g. git init) after running yo m.

Commands

gulp watch - start livereload and watch for changes in files. Automatically injects deps into index.html and opens your default browsers

gulp watch

gulp build - build your assets into www, cleans before every build

  gulp build

gulp serve-build - serve version from www

  gulp serve-build

gulp --cordova - local wrapper for cordova cli (won't use global install to be compatible with generated project)

  #arbitrary cordova command
  gulp --cordova 'plugin ls'

gulp config - manage project configuration

  gulp config --setVersion=1.1.0 --setBuild=12 --setBundle=com.new.bundle

sub-generators

  yo m:controller <name>
  yo m:partial <name>
  yo m:service <name>

Continuous Integration

For now we provide a rudimentary jenkins.sh template that can be configured to build your projects with jenkins.

Options

yo m --skip-sdk # skip adding cordova platforms and plugins (sdk-specific) for travis
yo m --appName='App Name' # set appName via CLI
yo m --skip-welcome-message # skips welcome message
yo m --skip-prompts # for debugging purposes, run with predefined answers
yo m --skip-install # for debugging purposes, no npm and bower install

Contribute

Manifest

Development process & Guidelines

  • process:
    • idea -> issue -> discussion -> implementation -> pull-request
  • changelogs, roadmaps, proper versioning
  • well defined process: github, issues - discussions, pull-requests
  • team effort, dialog, discussions
  • bring the best techniques together
  • github issue categories - check out others - http://ngcordova.com/
    • topics: generator, cordova, gulp, quality assurance, documentation

Workflow

gulp watch

will run your tests while you develop

npm test

will run gulp test

License

Code licensed under MIT. Docs under Apache 2. PhoneGap is a trademark of Adobe.

Keywords

yeoman-generator

FAQs

Package last updated on 11 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts