2.2.0 • Published 5 years ago

npvp v2.2.0

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

Getting Started

newpagevp is outdated! This is the updated version of the package.

A small scaffolding tool to create new page in boilerplate - ViPlate

Goal: Focus more on add features to page and spend less time on creating and setting up one page.

In case you're wondering :P :

npvp: New page for ViPlate

Installation

npm i npvp --save

Usage

npm run generate npvp:np PageName

Allowed options:

Enable routing: Generates the routing file and add that into module of the component to set default routing same as page name (lowercase)

Add (page) to header: Adds the code snippet to add the new menu to header of the website with the menu name as page title and links the menu item to page url (only works if routing is enabled)

Add services: Generates the service file with container for http calls and interface, which can then be used to make API calls.

Files generated

PageName-routing.module.ts

PageName.component.html

PageName.component.scss

PageName.component.spec.ts

PageName.component.ts

PageName.module.ts

PageName.service.ts

Files updated

/app.module.ts

/shell/header/header.component.html