Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@nebula.js/cli
Advanced tools
Command-line interface for nebula.js
npm install -g @nebula.js/cli
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]
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
Requirements:
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:
Run nebula CLI locally to see help info using node.js:
cd commands/cli
node lib/index.js -h
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
FAQs
Unknown package
The npm package @nebula.js/cli receives a total of 329 weekly downloads. As such, @nebula.js/cli popularity was classified as not popular.
We found that @nebula.js/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.