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

warp-tools

v2.1.0

Published

Warp CLI Tools

Downloads

9

Readme

Warp Tools

Warp Tools is a command line tool for the Warp Framework. It is designed to work with projects built on-top of the WarpServer.

Installation

To install Warp Tools via npm, simply use the install command to save it globally:

npm install -g warp-tools

Getting Started

Creating a New Project

To create a new Warp project, simply execute the following command:

warp new <name> [destination]

For example:

warp new sample-project
[Warp Tools 2016-07-01 08:41:27] Creating `sample-project`...
Enter Desired API Key [auto-generated key]: r13f8hn189r93f
Enter Desired Master Key [auto-generated key]: 31r80feu1384gh9
Enter DB Host [localhost]: localhost
Enter DB Port [3306]: 3306
Enter DB User [root]: root
Enter DB Password: password
Enter Default DB: default_db

[Warp Tools 2016-07-01 08:45:58] Create : warp-config.json
[Warp Tools 2016-07-01 08:45:58] Create : sample-project
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/package.json
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app.js
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/.gitignore
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/public
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/bin
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/bin/www
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/public/javascripts
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/public/storage
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/public/images
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/public/stylesheets
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app/server
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app/server/api.js
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app/client
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app/client/main.js
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app/server/models
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app/server/models/user.js
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app/server/models/session.js
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app/server/functions
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app/server/functions/.gitkeep
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app/server/migrations
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app/server/migrations/.gitkeep
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app/server/migrations/201607010845-initial-migration.json
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app/server/queues
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app/server/queues/.gitkeep
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app/client/subclasses
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app/client/subclasses/.gitkeep
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app/server/views
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app/server/views/index.htm
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app/server/routes
[Warp Tools 2016-07-01 08:45:58] Create : sample-project/app/server/routes/index.js

Initializing Warp Tools in an Existing Project

To initialize Warp Tools in an existing Warp project, simply execute the following command:

warp init

Migrations

Creating a new Migration

To create a new Migration, simply execute the following command:

warp migration:new <id> [destination]

For example:

warp migration:new create-alien-table
[Warp Tools 2016-07-01 09:00:55] Creating migration `201607010900-create-alien-table`...
[Warp Tools 2016-07-01 09:00:55] Create : 201607010900-create-alien-table.json

Saving a Migration

To save a Migration to the backend, simply execute the following command:

warp migration:save <id> [destination]

For example:

warp migration:save create-alien-table
[Warp Tools 2016-07-01 09:00:55] Saving migration `201607010900-create-alien-table`...
[Warp Tools 2016-07-01 09:00:55] `201607010900-create-alien-table.json` saved!

Updating a Migration

To update a Migration in the backend, simply execute the following command:

warp migration:update <id> [destination]

For example:

warp migration:update create-alien-table
[Warp Tools 2016-07-01 09:00:55] Updating migration `201607010900-create-alien-table`...
[Warp Tools 2016-07-01 09:00:55] `201607010900-create-alien-table.json` saved!

Commiting Migrations

To commit pending Migrations in the backend, simply execute the following command:

warp migration:commit

For example:

warp migration:commit
[Warp Tools 2016-07-01 09:00:55] Committing migrations...
[Warp Tools 2016-07-01 09:00:55] { status: 200, message: 'Success', result: ['201607010900-create-alien-table'] }

Reverting Latest Migration

To revert the latest Migration in the backend, simply execute the following command:

warp migration:revert

For example:

warp migration:revert
[Warp Tools 2016-07-01 09:00:55] Reverting latest migration...
[Warp Tools 2016-07-01 09:00:55] { status: 200, message: 'Success', result: { id: '201607010900-create-alien-table' } }

Resetting Migrations

To reset Migrations in the backend, simply execute the following command:

warp migration:reset

For example:

warp migration:reset
[Warp Tools 2016-07-01 09:00:55] Resetting migrations...
[Warp Tools 2016-07-01 09:00:55] { status: 200, message: 'Success', result: ['201607010900-create-alien-table'] }