iconscript
v0.3.0
Published
iconscript, a language for generating SVG icons
Downloads
21
Readme
Installation
Install dependencies:
npm installDevelopment Setup
Generate grammar files:
npm run generate:grammarBuild all components (library, CLI, and web bundles):
npm run buildBuild individually:
npm run generate:grammar— generate grammar files,npm run build:lib— build TypeScript library,npm run build:cli— build CLI tool,npm run build:parser:min— build parser bundle for web,npm run build:ui:min— build UI bundle for web.
Usage
Command-Line Interface
npm run generate $INPUT_ICONSCRIPT_FILE $OUTPUT_DIRWeb Interface
- Build the web bundles (if not already built):
npm run build:parser:min
npm run build:ui:min- Start a local server (e.g., using
live-server):
npm install -g live-server
live-server webOr use any other static file server pointing to the web/ directory.
