Skip to content
This repository was archived by the owner on Jan 26, 2023. It is now read-only.

avlan/lazyfiles-angular1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published