1.0.0 • Published 9 years ago

lazyfiles-angular1 v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
9 years ago

lazyfiles-angular1

Generates Angular 1 files following Jhon Papa styleguide. Group by prefix if it is repeated more than 3 times.

Install

npm install -g angular1-gen

Usage:

a1gen <option1> <value1> ... <optionN> <valueN>

Options

New app: -n, --new

Module name: -m, --module [name] (default name is 'app')

New module: -M, --new-module

New Service: -s, --service

New Factory: -F, --factory

New Filter: -f, --filter

New Controller: -c, --controller

New Directive: -d, --directive

New Route file: -R, --route-file

New Component: -C, --component

New Provider: -p, --provider

STRUCTURE

[EXTRA SMALL APP]

  • index.html
  • scripts
  • app
    • app.module.js
    • app.config.js
    • data.service.js
    • content
      • css
      • fonts
      • images

[OTHER APPS - more than 7 files]

  • index.html
  • app
    • app.module.js
    • app.config.js
    • services
      • data.service.js
      • another.service.js
    • drawer1
      • drawer1.routes.js
      • drawer1.controller.js
      • drawer1.whatever.js
    • .
    • .
    • .
    • drawern
      • drawern.routes.js
      • drawern.controller.js
      • drawern.whatever.js
    • content
      • css
      • fonts
      • images

CONVENTIONS

  • 1 feature per file
  • every file has its feature in its extention, i.e. posts.controller.js
1.0.0

9 years ago

0.0.1

9 years ago