Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

banner

tsParticles CLI

Installation

NPM

npm install -g @tsparticles/cli-build

Yarn

yarn global add @tsparticles/cli-build

PNPM

pnpm global add @tsparticles/cli-build

Usage

Help

npx @tsparticles/cli-build --help

or

tsparticles-build --help

Build

npx @tsparticles/cli-build

or

tsparticles-build

Build options

tsparticles-build
tsparticles-build --clean --lint --tsc
tsparticles-build --bundle-webpack
tsparticles-build --bundle-rollup

Inside this repository, the local plugin @tsparticles/cli-nx-plugin augments package projects under cli/commands/*, cli/packages/*, and cli/utils/* with canonical aliases like clean, prettify, prettify:ci, tsc, bundle, and distfiles.

Workspace commands (development)

From the cli root:

pnpm run show:projects
pnpm run build
pnpm run build:affected
pnpm run build:ci
pnpm run lint
pnpm run lint:ci
pnpm run test
pnpm run test:ci

Focused Nx commands

pnpm nx show project @tsparticles/cli-command-build --json
pnpm nx run @tsparticles/cli-command-build:build
pnpm nx run @tsparticles/cli-nx-plugin:build

Create

Bundle

npx @tsparticles/cli-create bundle <folder>

or

tsparticles-create bundle <folder>

Effect

npx @tsparticles/cli-create effect <folder>

or

tsparticles-create effect <folder>

Interaction

npx @tsparticles/cli-create interaction <folder>

or

tsparticles-create interaction <folder>

Palette

npx @tsparticles/cli-create palette <folder>

or

tsparticles-create palette <folder>

Path

npx @tsparticles/cli-create path <folder>

or

tsparticles-create path <folder>

Plugin

npx @tsparticles/cli-create plugin <folder>

or

tsparticles-create plugin <folder>

Preset

npx @tsparticles/cli-create preset <folder>

or

tsparticles-create preset <folder>

Shape

npx @tsparticles/cli-create shape <folder>

or

tsparticles-create shape <folder>

Updater

npx @tsparticles/cli-create updater <folder>

or

tsparticles-create updater <folder>