2017 © Pedro Peláez
 

library generators

Angular generators for Artisan

image

laravelangular/generators

Angular generators for Artisan

  • Sunday, December 31, 2017
  • by jadjoubran
  • Repository
  • 13 Watchers
  • 94 Stars
  • 55,202 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 28 Forks
  • 6 Open issues
  • 37 Versions
  • 2 % Grown

The README.md

Laravel AngularJS Artisan Generators

AngularJS generators for Artisan. Originally created at laravel5-angular-material-starter., (*1)

Installation

If you're using the starter project, then it's already pre-installed., (*2)

composer require laravelangular/generators

//and then add the provider in config/app.php
LaravelAngular\Generators\LaravelServiceProvider::class,

php artisan vendor:publish

Usage

php artisan ng:page name       #New page inside angular/app/pages/
php artisan ng:component name  #New component inside angular/app/components/
php artisan ng:directive name  #New directive inside angular/directives/
php artisan ng:config name     #New config inside angular/config/
php artisan ng:dialog name     #New custom dialog inside angular/dialogs/
php artisan ng:filter name     #New filter inside angular/filters/
php artisan ng:service name    #New service inside angular/services/

These commands will create new directories and files for AngularJS front-end in new ES6 syntax. If not present, commands will create index files (i.e.: index.components.js) and, if enabled, new created classes will be imported., (*3)

Configurations are editable in config\generators.php. See below for details., (*4)

Configuration

  • source: name of directories. They make a path to new created files
    • root: name of the directory on where all created files and folders will be put.
    • Other entries indicate directories where files will be put. I.e running php artisan ng:component name will be created three new files for component name with root/components/name/ path. Default is angular/app/components/name/
  • suffix: name and extension appended to file name. I.e.: running php artisan ng:directive name will be created a file named name.directive.js.
    • stylesheet: extension for stylesheets. NOTE: Stylesheets are created for both pages and components
  • tests
    • enable: whether to enable or disable creation of test files
    • source: same as source, but for test files
  • misc.auto_import: enable or disable automatic import in index files.
  • angular_modules: configuration for angular root module and submodules. If index files are created before or manually, these settings will help recognize angular modules for automatic import. If index file is created on first command run, these settings will create angular module for you.
    • root: angular root module.
    • standalone: if a module is defined as standalone (i.e.: angular.module('mymodule', [])) or is part of a root module (angular.module('mymodule')). If set to false, use_prefix, prefix and suffix will be ignored and root module name will be used.
    • prefix and suffix: name of module of the type prefix.suffix; i.e.: app.components.
    • use_prefix: whether to use prefix for module name

Documentation

View Angular Generators documentation, (*5)

Contributors

Originally created at laravel5-angular-material-starter then moved to a separate package by @m33ch, (*6)

Notes

  • Do not append the word service, it will be automatically added for you.

The Versions

31/12 2017

dev-master

9999999-dev

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

31/12 2017

2.7.5

2.7.5.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

03/03 2017

2.7.4

2.7.4.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

10/10 2016

2.7.3

2.7.3.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

03/09 2016

2.7.2

2.7.2.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

02/09 2016

2.7.1

2.7.1.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

07/07 2016

2.7.0

2.7.0.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

28/06 2016

2.6.2

2.6.2.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

28/06 2016

2.6.1

2.6.1.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

28/06 2016

dev-analysis-q16Yyj

dev-analysis-q16Yyj

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

16/06 2016

2.6.0

2.6.0.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

08/06 2016

2.5.0

2.5.0.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

29/04 2016

2.4.2

2.4.2.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

22/04 2016

2.4.1

2.4.1.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

20/04 2016

2.4.0

2.4.0.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

16/04 2016

2.3.3

2.3.3.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

16/04 2016

2.3.2

2.3.2.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

16/04 2016

2.3.1

2.3.1.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

09/04 2016

2.3.0

2.3.0.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

27/03 2016

2.2.0

2.2.0.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

06/03 2016

2.1.3

2.1.3.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

25/02 2016

2.1.2

2.1.2.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

24/02 2016

2.1.1

2.1.1.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

22/02 2016

2.1.0

2.1.0.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

23/01 2016

2.0.0

2.0.0.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

23/01 2016

1.6.1

1.6.1.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

23/01 2016

1.6.0

1.6.0.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

21/01 2016

1.5.2

1.5.2.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

18/01 2016

1.5.1

1.5.1.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

18/01 2016

1.5.0

1.5.0.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

05/01 2016

1.4.0

1.4.0.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

30/12 2015

0.13.2

0.13.2.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

28/12 2015

0.13.1

0.13.1.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

21/12 2015

1.3.0

1.3.0.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

16/12 2015

1.2.0

1.2.0.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

by Jad Joubran

29/11 2015

1.1.0

1.1.0.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires

 

11/11 2015

1.0.0

1.0.0.0

Angular generators for Artisan

  Sources   Download

MIT

The Requires