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

workplus-cli

v0.10.2

Published

A simple CLI for scaffolding workplus projects.

Downloads

12

Readme

workplus cli

npm

A simple CLI for scaffolding starter projects.

Installation

Prerequisites: Node.js (>=6.x preferred) and Git.

[sudo] npm install -g workplus-cli

Usage

1. Create a new project

$ workplus start <template-name> <project-name>

Example:

$ workplus start webpack-framework7 my-project

The above command pulls the template from workplus-templates/webpack-framework7, prompts for some information, and generates the project at ./my-project/.

2. Templates list

$ workplus list

All official project templates are repos in the workplus-templates organization. When a new template is added to the organization, you will be able to run workplus start to use that template. You can also run workplus list to see all available official templates.

Current available templates include:

  • demo7 A framework7 project use for creating prototype demo rapidly.
  • webpack-framework7 A starter project for using Framework7 with Webpack via Babel!
  • webpack-vue Webpack VueJs template.
  • gulp-angular Angular starter project using gulp.

3. Start a 'http-server' local static server

$ workplus server

workplus server base on 'http-server', http-server is a simple, zero-configuration command-line http server. It is powerful enough for production usage, but it's simple and hackable enough to be used for testing, local development, and learning.

Available Options:

  • -p Port to use (defaults to 8080)
  • -a Address to use (defaults to 0.0.0.0)
  • -P or --proxy Proxies all requests which can't be resolved locally to the given url. e.g.: -P http://someurl.com

Writing Custom Template

A template repo must have a template directory that holds the template files, and may have a metadata file for the template which can be a template.json file.

{
    "name": "webpack-framework7",
    "description": "A starter project for using Framework7 with Webpack via Babel!",
    "bash": ["npm install", "npm run dev"],
    "readme": "https://github.com/workplus-template/webpack-framework7#readme"
}
  • name: default value of the project name. It use for prompt process.
  • description: default value of the project description. It use for prompt process.
  • bash: log starter message after project generated.
  • readme: log documentation link after project generated.

All files inside template will be rendered using underscore, with the prompt results as the data.

Example:

<title><%= name %></title>

Development

npm install
bin/workplus start <template-name> [project-name]
bin/workplus list
bin/workplus server

License

MIT