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

cgkineo-cli

v0.0.40

Published

Command line tools for Adapt

Downloads

46

Readme

Adapt Command Line Interface

Build Status

Installation

To install the CGKineo CLI, first be sure to install NodeJS and git, then from the command line run:-

    npm install -g cgkineo-cli
    

Usage

Creating an Adapt course
cgkineo create course {path}

cgkineo create course  

-or-  

cgkineo create course "dev"  

type - What to create. course
path - The directory of the new course.
branch - Optional - The branch of the framework to be downloaded.

For example...

This will download the Adapt framework and create an new course in the directory "dev", in your current directory.

Troubleshooting

Sublime Text vs NPM

Occasionally npm will throw errors about not being able to access certain directories. It is therefore recommended to close the text editor before running this create course instruction.

No components installed as default - No npm install or cgkineo install was ran

Occasionally only the framework is installed and no node_modules, src/extensions, src/menu or src/components folder is created. If this is the case, please:

cgkineo create course "dev"
cd dev/
npm install
cgkineo install

This issue is due to be fixed.

Others

Please see issues section or come talk to Ollie @ [email protected]

Usage Continued

Searching for an Adapt plugin.
cgkineo search {name or partial name of plugin to search for}
Installing a plugin into your current directory
cgkineo install {name of plugin}

Additionally you can install a specific version of a plugin.

cgkineo install {name of plugin}#{version}

The default version is {name of plugin}#master

Anywhere that you are required to provide a name of a plugin it can be either fully qualified with 'adapt-' or optionally you can omit the prefix an just use the plugin name.

Therefore these commands are equivalent:

cgkineo install adapt-my-plugin
cgkineo install my-plugin

Installed plugins are saved to adapt.json.

Installing plugins previously saved in adapt.json
cgkineo install
Uninstalling a plugin from your current directory
cgkineo uninstall {name of plugin}
Creating a plugin
cgkineo create {type} 

type - What to create. component/extension/menu/theme

For example...

cgkineo create component

This will download the component template into your src/components/ folder.

The Plugin Registry

The plugin system is powered by Bower. Each plugin should be a valid bower package and they should be registered in the registry.json file contained in the adapt_framework root folder.

registry.json

[
  {
    "name": "plugin-name",
    "url": "https://url"
  }
]

See Developing plugins for more information on defining your plugins package.
See Component Template
See Extension Template

Note: 2014-10-08 Ollie - menu and theme templates need to be created and integrated