1.0.0-alpha2.10 • Published 7 years ago

justo.plugin.npm v1.0.0-alpha2.10

Weekly downloads
49
License
-
Repository
bitbucket
Last release
7 years ago

justo.plugin.npm

Justo plugin for running NPM commands. It is local and SSH-compatible.

Developed in Dogma, compiled to JavaScript.

Made in Valencia, Spain, EU by Justo Labs.

npm.install task

This task installs a package:

npm.install({pkg, global, force, loglevel})
  • pkg (string, required). The package name or folder.
  • global (bool). Would you like to install it globally? Default: false.
  • force (bool). Would you like to force the installation? Default: false.
  • loglevel (string). Log level: silent, error, warn, notice, info...

npm.uninstall task

This task uninstalls a package:

npm.uninstall({pkg, global})
  • pkg (string, required). The package name.
  • global (bool). Would you like to uninstall it globally? Default: false.

npm.publish task

This task publishes a package in NPM:

npm.publish({path, who})
  • path (string, required). Folder path.
  • who (string). The user name to use. If npm who returns another, the task fails.

npm.who task

This task returns the npm who command:

npm.who() : string

npm.bin task

This task runs a command from the ./node_modules/.bin folder:

exec({cmd, args})
  • cmd (string, required). Command to run.
  • args (string). Arguments.
  • detach (bool). Would you like to detach process? Default: false.

Example:

npm.bin({
  cmd: "http-server",
  args: "dist -p 8080 -c-1",
  detach: true
});

npm.run

This task runs a script:

run({script})
  • script (string, required). Script to run.

Example:

npm.run({
  script: "test"
});
1.0.0-alpha2.10

7 years ago

1.0.0-alpha2.9

7 years ago

1.0.0-alpha2.8

8 years ago

1.0.0-alpha2.7

8 years ago

1.0.0-alpha2.6

8 years ago

1.0.0-alpha2.5

8 years ago

1.0.0-alpha2.4

8 years ago

1.0.0-alpha2.3

8 years ago

1.0.0-alpha2.2

8 years ago

1.0.0-alpha2.1

8 years ago

1.0.0-alpha2.0

8 years ago

1.0.0-alpha1.3

8 years ago

1.0.0-alpha1.2

8 years ago

1.0.0-alpha1.1

8 years ago

1.0.0-alpha1.0

8 years ago

1.0.0-alpha.0

8 years ago