1.1.0 • Published 6 months ago

@atomic-state-canvas/asc-cli v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Atomic State Canvas CLI

This is a CLI tool for analyzing and visualizing atomic state relationships using JSON Canvas.

Installation

npm install @atomic-state-canvas/asc-cli -g

CLI Command Examples

# Help
atomic-state-canvas -h

# Parse file and traverse based on search variable, then print JSON Canvas
atomic-state-canvas -f ./src/storeOne/entrySelector.ts -s entrySelector

# Parse file and traverse based on search variable, then output JSON Canvas to file
atomic-state-canvas -f ./src/storeOne/entrySelector.ts -s entrySelector -o test.canvas

Local Development

Get Started

npm build:watch

Examples

# Standard
node dist/asc-cli/index.js -f examples/standard/src/store1/entrySelector.ts -s entrySelector -o test.canvas

# Circular Dependency
node dist/asc-cli/index.js -f examples/standard/src/store2/entrySelector.ts -s entrySelector -o test.canvas

# Self Referencing Circular Dependency
node dist/asc-cli/index.js -f examples/standard/src/store3/entrySelector.ts -s entrySelector -o test.canvas

# With glob exclusion
node dist/asc-cli/index.js -f examples/standard/src/store4/entrySelector.ts -s entrySelector -o test.canvas -e "*.test.*"