Numerous Philanthropic Misanthropes
Wondering what’s next for npm?Check out our public roadmap! »

@combuilder/combuilder
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

combuilder

A CLI utility for generating Joomla components

oclif Version License Build Status

Basic Usage

# Install via NPM
$ npm install -g @combuilder/combuilder
# Basic component creation. This component provides to the ablility to
# auto-fill component metadata and file level block comments
$ combuilder create COMPONENTNAME VIEWNAME -g -u http://yoursite.com
> com_COMPONENTNAME successfully created
$ combuilder --help [COMMAND]
> USAGE
  $ combuilder COMMAND

Commands

There is currently only a create command, for generating a basic Joomla component. More will be added in the future.

combuilder create [name] [view]

The create command builds a Joomla component with the name provided and a list and item view based on the view name provided. Most options are used to manipulate component metadata, such as component author, email, URL, etc. The -g option pulls author name and email from your global git configuration. If any of these options aren't provided they are simply left blank.

The -t option is used to specify a template to use. If no template option is provided, the default template is used.

creates a Joomla component based on options provided

USAGE
  $ combuilder create NAME VIEW

ARGUMENTS
  NAME  name of the component you wish to create
  VIEW  name of first view (item and list) to create

OPTIONS
  -a, --author=author          author name for component metadata
  -c, --copyright              the copyright to use in the docblock and xml, defaults to current year and author if not specified
  -d, --createDate=createDate  created date for component metadata, current date is used if this option isn't present
  -e, --email=email            email address for component metadata
  -g, --useGit                 pull meta information from git configuration
  -h, --help                   show CLI help
  -u, --url=url                url for component metadata
  -t, --template=default       the template to use, default is used if none specified

EXAMPLE
  $ combuilder create NAME VIEW

combuilder help [COMMAND]

Displays a basic overview of the command requested.

Keywords

Install

npm i @combuilder/combuilder

DownloadsWeekly Downloads

13

Version

0.2.3

License

LGPL-3.0

Unpacked Size

170 kB

Total Files

135

Last publish

Collaborators

  • avatar
  • avatar