📝 Changelog | 📚 Documentation | 🐛 Report Issues
- Syntax Highlighting — Rich syntax support for platformOS Liquid templates
- Code Formatting — Automatic code formatting with Prettier integration
- Linting & Diagnostics — Real-time code analysis and error detection
- IntelliSense — Intelligent code completion and suggestions
- Language Server — Full LSP implementation for IDE integration
- Parser — Fast and accurate LiquidHTML parser
- Graph Analysis — Dependency tracking and code navigation
- Multi-Environment — Support for Node.js, Browser, and VS Code environments
Install the platformOS CLI (pos-cli) which includes all the necessary tools:
npm install -g @platformos/pos-cliThe pos-cli automatically includes the linter, formatter, and all other platformOS developer tools from this repository.
Install the platformOS Liquid extension from the VS Code marketplace:
code --install-extension platformOS.platformos-check-vscodeIf you want to integrate individual tools into your own projects or build pipeline:
# Install prettier plugin for code formatting
npm install --save-dev @platformos/prettier-plugin-liquid
# Install platformOS check for linting
npm install --save-dev @platformos/platformos-check-nodeThis monorepo contains a comprehensive suite of tools for platformOS development:
Common utilities, types, and shared functionality used across all packages.
A fast and accurate parser for LiquidHTML templates. Powers all syntax analysis and tooling.
Prettier plugin for automatic code formatting of LiquidHTML templates.
Core linting engine and rule definitions shared across environments.
Node.js implementation of platformOS linter for CLI and build tools.
Browser-compatible version of the linter for web-based editors.
Language Server Protocol (LSP) implementation providing IDE features.
Node.js runtime for the language server.
Browser-compatible language server for web IDEs.
Official VS Code extension for platformOS Liquid development with full IDE support.
Language Server Protocol client for CodeMirror editors.
Dependency graph analysis for platformOS projects, tracking relationships between templates and components.
JSONC (JSON with Comments) language support utilities.
Tool for maintaining and updating documentation.
- Node.js 16.x or higher
- Yarn 1.22.x or higher
Clone the repository and install dependencies:
git clone https://github.com/Platform-OS/platformos-tools.git
cd platformos-tools
yarn installBuild all packages:
yarn buildRun tests:
yarn testplatformos-tools/
├── packages/ # All packages live here
│ ├── platformos-common/
│ ├── liquid-html-parser/
│ ├── prettier-plugin-liquid/
│ └── ...
├── docs/ # Documentation
└── scripts/ # Build and development scripts
yarn build— Build all packagesyarn test— Run all testsyarn format— Format code with Prettieryarn type-check— Type check all packagesyarn playground— Start CodeMirror playgroundyarn dev:web— Start VS Code web extension development
For VS Code extension development:
- Open the repository in VS Code
- Press
F5to launch the extension development host - Set breakpoints and debug as needed
For other packages:
yarn workspace @platformos/package-name testSee CONTRIBUTING.md for detailed development guidelines.
These tools are designed to work together and are integrated into:
- platformOS CLI (pos-cli) — Official CLI tool for platformOS development
- VS Code — Through the official extension
- Prettier — As a formatting plugin
- CodeMirror — Through the language client package
- Custom Build Tools — Individual packages can be integrated into any JavaScript build pipeline
Contributions to the platformOS Tools repository are highly encouraged.
See CONTRIBUTING.md for more details.
This project was originally forked from Shopify's Theme Tools. We are grateful to Shopify and the open-source community for creating and maintaining these excellent developer tools. The original project is licensed under MIT, and we continue to maintain this fork under the same license.
MIT.
