docs: update command docs (#447)

This commit is contained in:
Miralem Drek
2020-06-09 10:38:39 +02:00
committed by GitHub
parent c02a7ab17f
commit b5abd12fb0
8 changed files with 51 additions and 22 deletions

View File

@@ -1,9 +1,11 @@
# @nebula.js/cli-build
Build nebula.js visualization.
## Install
```sh
npm install @nebula.js/cli
npm install @nebula.js/cli @nebula.js/cli-build -g
```
## Usage
@@ -11,11 +13,12 @@ npm install @nebula.js/cli
```sh
nebula build
Build supernova
Build nebula.js visualization
Options:
--version Show version number [boolean]
--watch, -w [boolean] [default: false]
--sourcemap, -m [boolean] [default: true]
-h, --help Show help [boolean]
--version Show version number [boolean]
--config, -c Path to JSON config file
[string] [default: "nebula.config.js"]
--watch, -w Watch source files [boolean] [default: false]
--sourcemap, -m Generate source map [boolean] [default: true]
```

View File

@@ -4,7 +4,7 @@ const init = require('./lib/init-config');
module.exports = {
command: 'build',
desc: 'Build supernova',
desc: 'Build visualization',
builder(yargs) {
init(yargs).argv;
},

View File

@@ -1,5 +1,7 @@
# @nebula.js/cli
Command line interface for nebula.js
## Install
```sh
@@ -12,9 +14,10 @@ npm install -g @nebula.js/cli
nebula <command> [options]
Commands:
nebula build Build supernova
nebula create <name> Create a supernova
nebula build Build visualization
nebula create <name> Create a visualization
nebula serve Dev server
nebula sense Build a nebula visualization as a Qlik Sense extension
Options:
--version Show version number [boolean]

View File

@@ -1,5 +1,7 @@
# @nebula.js/cli-create
Scaffold a nebula visualization or mashup.
## Install
```sh
@@ -13,7 +15,10 @@ npm install -g @nebula.js/cli
```sh
nebula create <name>
Create a supernova
Create a visualization
Commands:
nebula create mashup <name> Create a mashup
Positionals:
name name of the project [string] [required]
@@ -22,11 +27,21 @@ Options:
--version Show version number [boolean]
--install Run package installation step [boolean] [default: true]
--pkgm Package manager [string] [choices: "npm", "yarn"]
--picasso Picasso template [string] [choices: "none", "minimal", "barchart"]
--author Package author [string]
-h, --help Show help [boolean]
```
#### Example
**Create a visualization**
```sh
nebula create hello-sunshine
```
**Create a mashup**
```sh
nebula create mashup hello-mashie
```

View File

@@ -16,7 +16,7 @@ const mashup = {
module.exports = {
command: 'create <name>',
desc: 'Create a supernova',
desc: 'Create a visualization',
builder(yargs) {
yargs.command(mashup);

View File

@@ -22,7 +22,6 @@ Options:
--output Destination directory [string] [default: "<name>-ext"]
--minify Minify and uglify code [boolean] [default: true]
--sourcemap Generate sourcemaps [boolean] [default: false]
--partial Generate partial extension [boolean] [default: false]
-h, --help Show help [boolean]
```

View File

@@ -38,6 +38,7 @@ module.exports = {
required: false,
default: false,
desc: 'Generate partial extension',
hidden: true,
});
},
handler(argv) {

View File

@@ -1,11 +1,11 @@
# @nebula.js/cli-serve
Basic web development server for supernovas.
Basic web development server for nebula.js visualizations.
## Install
```sh
npm install @nebula.js/cli -g
npm install @nebula.js/cli @nebula.js/cli-serve -g
```
## Usage
@@ -18,16 +18,24 @@ nebula serve -h
Dev server
Options:
--version Show version number [boolean]
--entry File entrypoint [string]
--type Generic object type [string]
--version Show version number [boolean]
--config, -c Path to JSON config file
[string] [default: "nebula.config.js"]
--entry File entrypoint [string]
--type Generic object type [string]
--build [boolean] [default: true]
--host [string]
--host [string] [default: "localhost"]
--port [number]
--enigma.host [string]
--enigma.port [default: 9076]
--ACCEPT_EULA, -a [boolean] [default: false]
-h, --help Show help [boolean]
--disableHostCheck [boolean] [default: false]
--resources Path to a folder that will be served as static files under
/resources [string]
--scripts Array of scripts to inject [array]
--stylesheets Array of stylesheets to inject [array]
--enigma.host [string] [default: "localhost"]
--enigma.port [number] [default: 9076]
--webIntegrationId [string]
--ACCEPT_EULA [boolean] [default: false]
-h, --help Show help [boolean]
```
#### Example