ALERT: GLASS IS IN ALPHA AND IS SUBJECT TO CHANGE.
Getting started? Head to docs.glass for all of our documentation.
Want some examples? Check out the examples.
Download the VSCode extension to quickly run and iterate on Glass files.
If you are using Glass, have questions, or want to stay up to date, feel free to join our Discord.
This project uses npm workspaces and Turborepo.
vscode-glass
: VS Code extension for Glassplatform.glass
: a Next.js app serving platform.glassdocs.glass
: a Next.js/Nextra app serving docs.glassdemo
: examples of using Glass, some of these are in active development and may not currently work
glassc
: the Glass compiler (generates.ts
,.js
,.py
output from Glass files)glasslib
: Glass client library (runtime for executing Glass compiler generated code)language-server
: LSP server providing Glass intellisenserig
: a React app for the VS Code Glass playground webviewui
: a React component library shared by web applicationsutil
: random utilities shared by packages/appseslint-config-custom
:eslint
configurations (includeseslint-config-next
andeslint-config-prettier
)tsconfig
:tsconfig.json
s used throughout the monorepo
npm ci
npm run build
Usually you'll want to launch the VSCode extension in development mode. Use the Run Extension
launch configuration (F5
keybinding). This will automatically run the build step if necessary.
To run all tests:
npm run test
Several packages contain tests that can be run in watch mode: packages/glasslib
, packages/glassc
, packages/util
cd $package
npm run test:watch
For packages/glasslib
only, the test:watch
mode requires you also build in watch mode:
cd packages/glasslib
npm run dev
MIT © Glass Platform