@thi.ng/shader-ast
Version:
DSL to define shader code in TypeScript and cross-compile to GLSL, JS and other targets
186 lines • 4.23 kB
JSON
{
"name": "@thi.ng/shader-ast",
"version": "1.0.17",
"description": "DSL to define shader code in TypeScript and cross-compile to GLSL, JS and other targets",
"type": "module",
"module": "./index.js",
"typings": "./index.d.ts",
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/thi-ng/umbrella.git"
},
"homepage": "https://thi.ng/shader-ast",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/postspectacular"
},
{
"type": "patreon",
"url": "https://patreon.com/thing_umbrella"
},
{
"type": "liberapay",
"url": "https://liberapay.com/thi.ng"
}
],
"author": "Karsten Schmidt (https://thi.ng)",
"contributors": [
"Jamie Owen (https://github.com/jamieowen)"
],
"license": "Apache-2.0",
"scripts": {
"build": "yarn build:esbuild && yarn build:decl",
"build:decl": "tsc --declaration --emitDeclarationOnly",
"build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
"clean": "bun ../../tools/src/clean-package.ts ast builtin",
"doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
"pub": "yarn npm publish --access public",
"test": "bun test",
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
},
"dependencies": {
"@thi.ng/api": "^8.11.26",
"@thi.ng/checks": "^3.7.6",
"@thi.ng/defmulti": "^3.0.66",
"@thi.ng/dgraph": "^2.1.156",
"@thi.ng/errors": "^2.5.32",
"@thi.ng/logger": "^3.1.7"
},
"devDependencies": {
"esbuild": "^0.25.2",
"typedoc": "^0.28.2",
"typescript": "^5.8.3"
},
"keywords": [
"ast",
"canvas",
"codegen",
"compiler",
"dag",
"datastructure",
"dce",
"dsl",
"glsl",
"gpgpu",
"interval",
"optimization",
"shader",
"shader-ast",
"tree",
"tree-shaking",
"typecheck",
"typescript",
"webgl"
],
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=18"
},
"files": [
"./*.js",
"./*.d.ts",
"api",
"ast",
"builtin"
],
"exports": {
".": {
"default": "./index.js"
},
"./api/function": {
"default": "./api/function.js"
},
"./api/nodes": {
"default": "./api/nodes.js"
},
"./api/ops": {
"default": "./api/ops.js"
},
"./api/precision": {
"default": "./api/precision.js"
},
"./api/swizzles": {
"default": "./api/swizzles.js"
},
"./api/syms": {
"default": "./api/syms.js"
},
"./api/tags": {
"default": "./api/tags.js"
},
"./api/target": {
"default": "./api/target.js"
},
"./api/terms": {
"default": "./api/terms.js"
},
"./api/types": {
"default": "./api/types.js"
},
"./ast/assign": {
"default": "./ast/assign.js"
},
"./ast/checks": {
"default": "./ast/checks.js"
},
"./ast/controlflow": {
"default": "./ast/controlflow.js"
},
"./ast/function": {
"default": "./ast/function.js"
},
"./ast/idgen": {
"default": "./ast/idgen.js"
},
"./ast/indexed": {
"default": "./ast/indexed.js"
},
"./ast/item": {
"default": "./ast/item.js"
},
"./ast/lit": {
"default": "./ast/lit.js"
},
"./ast/ops": {
"default": "./ast/ops.js"
},
"./ast/scope": {
"default": "./ast/scope.js"
},
"./ast/swizzle": {
"default": "./ast/swizzle.js"
},
"./ast/sym": {
"default": "./ast/sym.js"
},
"./builtin/bvec": {
"default": "./builtin/bvec.js"
},
"./builtin/math": {
"default": "./builtin/math.js"
},
"./builtin/texture": {
"default": "./builtin/texture.js"
},
"./logger": {
"default": "./logger.js"
},
"./target": {
"default": "./target.js"
}
},
"thi.ng": {
"alias": "ast",
"related": [
"webgl",
"webgl-shadertoy"
],
"year": 2019
},
"gitHead": "c464b6948f92cba90c2ea75b59203dad894fb450\n"
}