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

kickoff

v0.7.1

Published

A Command-Line tool, which can be used to easily create boilerplate code for new projects and other things based on archetypes stored in GitHub repos.

Downloads

22

Readme

About

'kickoff' is a Command-Line tool, which can be used to easily create boilerplate code for new projects and other things based on archetypes stored in GitHub repos or in local directories.

  1. Install kickoff in global mode.
  2. Create the source files in a local folder or in a repository on github for the project template, including mustache templates.
  3. Place the .kickoff.yml file, to define the questionnaire for collecting parameter values for template files.

Installation

Run the install command:

npm install -g kickoff

Check if kickoff is properly installed:

$ kickoff -h

  Usage: kickoff [options]

  Options:

    -h, --help                       output usage information
    -V, --version                    output the version number
    -v, --verbose                    Verbose mode
    -a, --data-file <path>           Path to the yaml format datafile
    -f, --folder <path>              Path to the source directory
    -s, --src <username/repository>  Git repository
    -d, --dest <dst>                 Destination folder

Create the repository on GitHub for the project template

This is a normal repository, which can contain anything, including mustache templates. These files will be copied to the destination folder without modification. During this transfer, each file is processed by the mustache template engine, so you can place parameters into these files, which will be replaced by actual values, that you can define through the command line interface of the tool.

The enquiry for these parameters can be described in the .kickoff.yml file, that you have to place into the root of the repository.

See ncli-archetype repository on GitHub, that is a Project archetype for Command Line tools using Node.js.

Create your first project from an existing template repository

The following command will create a new command line tool project with all the required boilerplace code, using the ncli-archetype repository:

$ kickoff -s tombenke/ncli-archetype -d new_app
? The name of the application: new_app
? The full name of the author of the application: Tamás Benke
? The email address of the author: [email protected]
? The github account (username) of the author: tombenke

Check how the parameters requested through the console will substitute the mustache parameters in README.md and package.json files.

The .kickoff.yml configuration file

This is a sample configuration file for the kickoff utility:

description: |
    This is a project archetype for node.js based, cli applications.
    New projects can be generated from this archetype by the
    [kickoff](https://github.com/tombenke/kickoff) utility.

welcome: >

    You are generating a JavaScript project, which is 
    using node.js, and running as a command-line application. 

postscript: >

    Next steps:

     - Install the npm modules required by the newly generated application:

        cd <dest-folder>
        npm install


questions:
    - 
        type: input
        name: appname
        message: The name of the application
        default: anonymous
    -
        type: input
        name: author_full_name
        message: The full name of the author of the application
        default: Anonymous

    -
        type: input
        name: author_email
        message: The email address of the author
        default: [email protected]

    -
        type: input
        name: author_github_account
        message: The github account (username) of the author
        default: anonymous

You can add as many parameters as you need, using the same names you put into the mustache templates.

To learn more about the tool visit the homepage.