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

c3-cli

v1.1.0

Published

The Construct 3 Command Line Interface (CLI) is a unified tool to manage your C3 dev environment.

Downloads

4

Readme

c3-cli

The Construct 3 Command Line Interface (CLI) is a unified tool to manage your C3 dev environment.

Prerequisites

  • Nodejs 6.1 or newer (8.1 is recommended)

Installation

npm install -g c3-cli

Usage

c3 1.0.0

USAGE
  c3 <command>

COMMANDS
  create <type> <id> <dir>      Create an addon into a given directory
  dev-server [dir]              Run a dev server for your addons
  help <command>                Display help for a specific command

OPTIONS
  --plugin-type <plugintype>      Select a plugin type single-global|drawing|editor-text, type plugin ONLY!!      optional      default: "single-global"

GLOBAL OPTIONS
  -h, --help         Display help
  -V, --version      Display version
  --no-color         Disable colors
  --quiet            Quiet mode - only displays warn and error messages
  -v, --verbose      Verbose mode - will also output debug messages

create <type> <id> <dir>

USAGE
  c3 create <type> <id> <dir>

ARGUMENTS
  <type>      Addon type must be plugin|behavior|effect|theme                  required
  <id>        Addon id, Will be replaced automatically in the addon files      required
  <dir>       The directory where to create the Addon                          required

OPTIONS
  --plugin-type <plugintype>      Select a plugin type single-global|drawing|editor-text, type plugin ONLY!!      optional      default: "single-global"

Examples

# Create an Editor-Text plugin with the id "thisIsMyPluginID" inside the directory "~/myPlugins/"
c3 create plugin thisIsMyPluginID ~/myPlugins/ --plugin-type="editor-text"

# Create a behavior addon with the id "thisIsABehavior" inside the directory "~/myBehavior/"
c3 create behavior thisIsABehavior ~/myBehavior/

# Create an effect addon with the id "thisIsAnEffect" inside the directory "~/myEffects/"
c3 create effect thisIsAnEffect ~/myEffects/

# Create a theme addon with the id "thisIsMyTheme" inside the directory "~/myThemes/"
c3 create theme thisIsMyTheme ~/myThemes/

dev-server [dir]

USAGE
  c3 dev-server [dir]

ARGUMENTS
  [dir]      The directory that contains your Addon      optional      default: "/root/.diptox/c3-dev-webserver/"

OPTIONS
  --http-port <httpPort>        Set the HTTPwebserver Port           optional      default: 8080
  --https-port <httpsPort>      Set the HTTPS webserver Port         optional      default: 4430
  --certsDir <certsDir>         Set where to save the SSL certs      optional      default: "/root/.diptox/c3-dev-webserver/certs"

Examples

~
├── ...
├── diptox
│   ├── addons          # <==== The path of this directory must be set as ```<dir>```
│      ├── behaviors
│      ├── effects
│      ├── plugins
│         ├── TransitionLayout
└── ...

I am going to develop a new plugin called TransitionLayout ~/diptox/addons/plugins is the parent directory of TransitionLayout

My command will be

c3 dev-server --http-port 8000 --https-port 4431 ~/diptox/addons/

then in C3 the Url of your plugin addon.json will be

# HTTP
http://localhost:8000/plugins/TransitionLayout/addon.json
# HTTPS
https://localhost:4431/plugins/TransitionLayout/addon.json