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

@nebula.js/cli

v5.0.1

Published

Command-line interface for nebula.js

Downloads

1,721

Readme

@nebula.js/cli

Command-line interface for nebula.js

Install

npm install -g @nebula.js/cli

Usage

nebula <command> [options]

Commands:
  nebula create <name>    Create a visualization
  / create mashup <name>  / Create a mashup
  nebula build            Build visualization
  nebula serve            Start a development server
  nebula sense            Build a nebula visualization as a Qlik Sense extension

Options:
  --version   Show version number                                      [boolean]
  -h, --help  Show help                                                [boolean]

How to use nebula CLI in your visualization

You can use the package.json script variant of these commands, which are exposed for you withnebula create

When you want to make the nebula serve, nebula build, and nebula sense commands available in your visualization by yourself, run the following command.

npm install @nebula.js/cli @nebula.js/cli-build @nebula.js/cli-sense @nebula.js/cli-serve

or

yarn add @nebula.js/cli @nebula.js/cli-build @nebula.js/cli-sense @nebula.js/cli-serve

Open up your package.json, those dependencies are added.

{
  "devDependencies": {
    "@nebula.js/cli": "latest",
    "@nebula.js/cli-build": "latest",
    "@nebula.js/cli-sense": "latest",
    "@nebula.js/cli-serve": "latest"
  }
}

and add a script like so:

"scripts": {
    "build": "nebula build",
    "start": "nebula serve",
    "sense": "nebula sense"
  },

You can also run nebula cli commands with Node.js. Create a js file called build.js and add the following:

const build = require('@nebula.js/cli-build');
const sense = require('@nebula.js/cli-sense');

await build({
  config: '../nebula.config.js',
  sourcemap: false,
  core: 'core',
  mode: 'production',
  watch: false,
});
await sense({ output: 'sn-table-ext', sourcemap: true });

and run the following command:

node build.js

How to test your modified nebula CLI locally and globally

Requirements:

  • Node.js
  • yarn

Clone the repository:

git clone https://github.com/qlik-oss/nebula.js

From the root directory, run the following command to install all the necessary dependencies of nebula CLI:

yarn

You can modify code in commands directory and do the following to test modified nebula CLI locally and globally:

Test nebula CLI locally

Run nebula CLI locally to see help info using node.js:

cd commands/cli
node lib/index.js -h

Test nebula CLI globally

From the commands/cli directory, run the following command to create a global symlik to the binary:

yarn link

Run nebula CLI globally to see help info to check whether it works:

nebula -h

Tips:

If 'There's already a package called "@nebula.js/cli" registered.' or 'command not found: nebula' is displayed.

Run the following command to remove the symlinked nebula and run 'yarn link' again:

yarn unlink