npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

platypi-cli

v0.14.2

Published

A command line interface for working with PlatypusTS projects.

Downloads

70

Readme

npm version Downloads Dependency Status devDependency Status

Platypi CLI

The Platypi CLI is the primary way to create and manage Platypi apps. It can be used to create new projects as well as add different components (models, repositories, services, injectables, and controls) to the app.

Installation

Use npm to install this package.

Globally (preferred)

npm install platypi-cli -g

or, Locally

npm install platypi-cli --save-dev

Usage

All commands are run with plat <command>. You can run plat <command> -h for further help. The help menus cascade.

So plat create app -h will show you a different help menu than plat create -h or plat create viewcontrol -h.

create

Creates a new project or component in the specified directory. Walks you through a series of prompts to determine the project specifications.

NOTE: You can use plat c as an alias for plat create

Examples

Create a new project in the current directory:

plat create

Create a new project MyProject in its own directory

plat create -n MyProject --dir myproject

Create a ViewControl component in the project-specified default location for viewcontrols (e.g. ./app/viewcontrols/home)

plat create viewcontrol -n Home

Create a ViewControl component in ./app/viewcontrols/posts/list

plat create viewcontrol -n List --dir posts/

Create a ViewControl component that extends another ViewControl

plat create viewcontrol -n PostsByTag --extends ../list/list.vc

NOTE: When extending components, the exact path you specify will be used as the import path. The path specified must have the component listed as its default export.

Component aliases

When specifying components you can choose to use their full name or an alias:

viewcontrol      | vc
templatecontrol  | tc
attributecontrol | ac
model            | mdl
repository       | repo
service          | svc
injectable       | inj

Useful Options

-n, --name <name> Specifies the name of the file
-d, --dir <directory> Used to specify the directory in which to create the project or component

cordova

You can run plat cordova from anywhere in your project, and it will run cordova commands from within the scope of the /cordova folder of your project.

Examples

Run your cordova project on an Android device from the /cordova folder of your project.

cordova run android --device

Run your cordova project on an Android device from the / folder of your project.

plat cordova run android --device

This will work with any cordova command. You can type plat cordova -h for more information.