Installation
INFO
This installation guide is specific to TypeScript/JavaScript. Support for other languages is planned through community-contributed plugins.
Prerequisites
- Node.js 16 or higher
- npm, pnpm, yarn, or bun package manager
Install Atscript
To use Atscript in your project, install the core packages:
bash
npm install -D @atscript/core @atscript/typescript
bash
pnpm add -D @atscript/core @atscript/typescript
bash
yarn add -D @atscript/core @atscript/typescript
bash
bun add -D @atscript/core @atscript/typescript
Package Overview
Core Packages
- @atscript/core - Core parser, AST, and plugin system
- @atscript/typescript - TypeScript/JavaScript code generation and CLI (
asc
command)
Optional Packages
- @atscript/mongo - MongoDB integration with index syncing
- @atscript/moost-mongo - Moost framework MongoDB integration
- @atscript/moost-validator - Moost framework validation integration
- @atscript/unplugin - Build tool integrations (Vite, Webpack, Rollup, etc.)
Verify Installation
After installation, verify that the asc
compiler is available:
bash
npx asc --help
bash
pnpm exec asc --help
bash
yarn asc --help
bash
bunx asc --help
You should see the available command options:
Options:
-c, --config <path> Path to config file
-f, --format <format> Output format (dts or js)
--help Show help
VSCode Extension (Recommended)
For the best development experience, install the Atscript VSCode extension:
- Open VSCode
- Go to Extensions (Cmd/Ctrl + Shift + X)
- Search for "Atscript"
- Install the extension by Moost
Or install directly from the Visual Studio Marketplace.
The extension provides:
- Syntax highlighting for
.as
files - IntelliSense support
- Error checking
- Auto-formatting
Next Steps
- Quick Start - Create your first .as file
- Why Atscript? - Understand the motivation