speckl/compiler/node_modules/vite-node/dist/constants.cjs
Scott Scoble f19a43fd5f Add SpeckDL compiler scaffold
- CLI entry point with yargs parsing for speckl-compile <file> --output-dir --bom-format
- TypeScript parser with AST types for all SpeckDL primitives
- Generator for PROV-O JSON-LD provenance graphs
- Generator for CycloneDX v1.6 BOMs
- Generator for SPDX 3.0.1 BOMs
- E2E test verifying RetryHandler.speck parsing and all output formats

All tests pass.
2026-04-29 15:12:08 -07:00

42 lines
634 B
JavaScript

'use strict';
const KNOWN_ASSET_TYPES = [
// images
"apng",
"bmp",
"png",
"jpe?g",
"jfif",
"pjpeg",
"pjp",
"gif",
"svg",
"ico",
"webp",
"avif",
// media
"mp4",
"webm",
"ogg",
"mp3",
"wav",
"flac",
"aac",
// fonts
"woff2?",
"eot",
"ttf",
"otf",
// other
"webmanifest",
"pdf",
"txt"
];
const KNOWN_ASSET_RE = new RegExp(
`\\.(${KNOWN_ASSET_TYPES.join("|")})$`
);
const CSS_LANGS_RE = /\.(css|less|sass|scss|styl|stylus|pcss|postcss|sss)(?:$|\?)/;
exports.CSS_LANGS_RE = CSS_LANGS_RE;
exports.KNOWN_ASSET_RE = KNOWN_ASSET_RE;
exports.KNOWN_ASSET_TYPES = KNOWN_ASSET_TYPES;