@agnpm/schema

0.0.39 • Public • Published

AgSchematics

npm (scoped)

Custom schematics implementation.

How to use

📁️ Add to project

npm install @agnpm/schema --save-dev
yarn add @agnpm/schema --dev

📁 Generate component

ng generate @agnpm/schema:{SCHEMA_NAME}
ng g @agnpm/schema:{SCHEMA_NAME}

👍 Currenty supported {SCHEMA_NAME}

  • ✔️ ag-page
  • ✔️ ag-sifrant
  • ag-modal

When generating schemas, all standard flags are available. To see all flags use following command

ng g c --help

Development

Basics

📁 Clone repository

git clone https://github.com/arupnik/ag-schematics.git

📁 Install dependencies

npm install
yarn install

📁 Create new schema

schematics blank {name}

New entry will be added to collection.json file.

📁 Build

npm run build

🌐 Publish package

npm login
np

Schematics debugging

In VSCode, open launch.json file and add next entry

{
	"type": "node",
	"request": "launch",
	"name": "Debug schematic",
	"program": "${workspaceFolder}/node_modules/@angular-devkit/schematics-cli/bin/schematics.js",
	"args": [
		".:ag-page",
		"--name=test",
		"--module=common.module.ts",
		"--customPath=src/app/blabl"
	],
	"outFiles": []
}

Readme

Keywords

Package Sidebar

Install

npm i @agnpm/schema

Weekly Downloads

2

Version

0.0.39

License

MIT

Unpacked Size

66.9 kB

Total Files

56

Last publish

Collaborators

  • andrej.r