Socket
Socket
Sign inDemoInstall

generator-cl

Package Overview
Dependencies
170
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    generator-cl

generates a typescript angular 1 componet with a view template and sass styles file


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
2
Install size
12.8 MB
Created
Weekly downloads
 

Readme

Source

generator-cl npm version

To install:

yarn add generator-cl --dev

Contributing a new generator

To add a new generator (like cl:controller), just add a folder with the same name to the src directory (so, src/controller), and have an index.ts file export a generator class. See src/comp/index.ts for an example.

Generators

The following can be used via...

yo cl:<component> <...params>

comp (angularjs component)

Lets say we want to make a component called task-list, and attach it to the clPlatform.app module. After changing to your desired directory, run the following...

yo cl:comp task-list app

This will generate the following folder:

task-list
├── task-list.component.ts
├── task-list.styles.scss
└── task-list.view.html

Now, just add an import ./task-list/task-list.component.ts'; to clPlatform.app.

FAQs

Last updated on 11 Jan 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc