@compgen/angular-min
TypeScript icon, indicating that this package has built-in type declarations

0.3.7 • Public • Published

@compgen/angular-min

Unless you are building custom Angular generator then you probably want to use: @compgen/angular

This is a micro generator for minimal Angular application.

CLI

I highly recommend using npx so that you don't have to install anything globally, and you can always get the latest version from npm.

  • optional --path=target_folder
npx @compgen/angular-min

Programmatically

You have to generate JSON schema and use execute function from @compgen/core:

// src/index.ts
import { execute, askProjectName } from '@compgen/core'
import { createSchema } from '@compgen/angular-min'

const generate = async () => {
  const { projectFolder } = await askProjectName()

  const schema = createSchema({ projectFolder })

  await execute(schema, projectFolder)
}

generate()

Now all you have to do is run:

ts-node src/index.ts

/@compgen/angular-min/

    Package Sidebar

    Install

    npm i @compgen/angular-min

    Weekly Downloads

    3

    Version

    0.3.7

    License

    MIT

    Unpacked Size

    17.1 kB

    Total Files

    11

    Last publish

    Collaborators

    • michal.jarnot