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/typescriptbash
pnpm add -D @atscript/core @atscript/typescriptbash
yarn add -D @atscript/core @atscript/typescriptbash
bun add -D @atscript/core @atscript/typescriptPackage Overview
Core Packages
- @atscript/core - Core parser, AST, and plugin system
- @atscript/typescript - TypeScript/JavaScript code generation and CLI (
asccommand)
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 --helpbash
pnpm exec asc --helpbash
yarn asc --helpbash
bunx asc --helpYou should see the available command options:
Options:
-c, --config <path> Path to config file
-f, --format <format> Output format (dts or js)
--help Show helpVSCode 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
.asfiles - IntelliSense support
- Error checking
- Auto-formatting
Next Steps
- Quick Start - Create your first .as file
- Why Atscript? - Understand the motivation