Skip to content

mi-examples/create-pp-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

212 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@metricinsights/create-pp-dev

npm package

Overview

@metricinsights/create-pp-dev is a CLI tool for scaffolding new MetricInsights Portal Page projects. It provides various templates to help you start quickly with Portal Page development.

Requirements

  • Node.js version 22+
  • npm, yarn, or pnpm package manager

Usage

Basic Usage

# Using npm
npm create @metricinsights/pp-dev@latest

# Using yarn
yarn create @metricinsights/pp-dev

# Using pnpm
pnpm create @metricinsights/pp-dev

Advanced Usage

You can directly specify the project name and template via command line options:

# npm 7+, extra double-dash is needed:
npm create @metricinsights/pp-dev@latest my-pp -- --template react

# yarn
yarn create @metricinsights/pp-dev my-pp --template react

# pnpm
pnpm create @metricinsights/pp-dev my-pp --template react

To scaffold in the current directory, use . as the project name:

npm create @metricinsights/pp-dev@latest . -- --template react

Available Templates

Template Description
vanilla Basic Portal Page with vanilla JavaScript
vanilla-ts Basic Portal Page with TypeScript
react Portal Page with React
nextjs Portal Page with Next.js

Interactive Features

During project setup, the CLI will prompt you with optional features:

  • Cursor Rules - Add AI-assisted development rules for Cursor IDE. These rules help the AI understand MetricInsights Portal Page conventions.

  • @metricinsights/pp-components - Optionally include the @metricinsights/pp-components library with pre-built UI components for Portal Pages.

  • Auto-install packages - Choose to automatically run package installation after scaffolding.

Next Steps

After creating your project:

cd my-pp
npm install
npm run dev

Follow the instructions in the generated project's README for more details.

For more information about developing Portal Pages, see the @metricinsights/pp-dev documentation.

License

ISC

About

Init repos for pp-dev helper

Resources

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors