Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@originjs/cli-service

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@originjs/cli-service

CLI for creating server and provides commands to control it.

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
5
Weekly downloads
 
Created
Source

cli-service

CLI for creating server and provides commands to control it.

Usage

const cliService = require('cli-service');
cliService.run('dev', 'yourProjectPath');
cliService.run('build', 'yourProjectPath');

APIs

run

async function run(name: 'dev' | 'build', execPath?: string)

Execute the commands. It receives name and optional execPath as parameters with no returns. The name of command can be dev or build.

dev

async function (execPath?: string): Promise<ViteDevServer | null>

Read your configuration to create a dev server and listen to that port. It receives optional execPath as parameter and returns ViteDevServer asynchronously. If it failed to create a vite dev server, this function returns null.

build

async function (execPath?: string): Promise<void>

Read your configuration to build the project. It receives optional execPath as parameter with no returns.

FAQs

Package last updated on 09 Oct 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc