0.0.41 ā€¢ Published 5 years ago

@mark-npm/schema v0.0.41

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

AgSchematics

npm (scoped)

Custom schematics implementation.

How to use

šŸ“ļø Add to project

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

šŸ“ Generate component

ng generate @mark-npm/schema:{SCHEMA_NAME}
ng g @mark-npm/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 (enter npmjs.org credentials)
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": []
}