UNPKG

siphon-cli

Version:

Simple bundler for web applications. 📦🔧🧡

147 lines (146 loc) • 4.81 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Stylesheet = exports.NamespaceRule = exports.FontFaceRule = exports.CharsetRule = exports.KeyframeRule = exports.SupportRule = exports.MediaRule = exports.ImportRule = exports.AtRule = exports.Style = exports.StyleRule = void 0; var StyleRule = (function () { function StyleRule() { this.type = "StyleRule"; this.loc = { start: 0, end: 0, }; this.selectors = []; this.notation = {}; this.content = []; } return StyleRule; }()); exports.StyleRule = StyleRule; var Style = (function () { function Style(property, value) { this.type = "Style"; this.loc = { start: 0, end: 0, }; this.property = property; this.value = value; } return Style; }()); exports.Style = Style; var AtRule = (function () { function AtRule(start, end) { this.type = "AtRule"; this.loc = { start: start, end: end, }; } return AtRule; }()); exports.AtRule = AtRule; var ImportRule = (function (_super) { __extends(ImportRule, _super); function ImportRule(start, end, resourceType) { var _this = _super.call(this, start, end) || this; _this.type = "ImportRule"; _this.href = ""; _this.resourceType = resourceType; return _this; } return ImportRule; }(AtRule)); exports.ImportRule = ImportRule; var MediaRule = (function (_super) { __extends(MediaRule, _super); function MediaRule(start, end, params) { var _this = _super.call(this, start, end) || this; _this.type = "MediaRule"; _this.rules = []; _this.params = params; return _this; } return MediaRule; }(AtRule)); exports.MediaRule = MediaRule; var SupportRule = (function (_super) { __extends(SupportRule, _super); function SupportRule(start, end, query, inverseQuery) { var _this = _super.call(this, start, end) || this; _this.type = "StyleRule"; _this.inverseQuery = true; _this.rules = []; _this.query = query; _this.inverseQuery = inverseQuery; return _this; } return SupportRule; }(AtRule)); exports.SupportRule = SupportRule; var KeyframeRule = (function (_super) { __extends(KeyframeRule, _super); function KeyframeRule() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = "KeyframesRule"; _this.identifier = ""; _this.frames = []; return _this; } return KeyframeRule; }(AtRule)); exports.KeyframeRule = KeyframeRule; var CharsetRule = (function (_super) { __extends(CharsetRule, _super); function CharsetRule() { return _super !== null && _super.apply(this, arguments) || this; } return CharsetRule; }(AtRule)); exports.CharsetRule = CharsetRule; var FontFaceRule = (function (_super) { __extends(FontFaceRule, _super); function FontFaceRule() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = "FontFaceRule"; _this.family = ""; _this.source = ""; return _this; } return FontFaceRule; }(AtRule)); exports.FontFaceRule = FontFaceRule; var NamespaceRule = (function (_super) { __extends(NamespaceRule, _super); function NamespaceRule() { return _super !== null && _super.apply(this, arguments) || this; } return NamespaceRule; }(AtRule)); exports.NamespaceRule = NamespaceRule; var Stylesheet = (function () { function Stylesheet(start, end) { this.type = "Stylesheet"; this.rules = []; this.loc = { start: start, end: end, }; } return Stylesheet; }()); exports.Stylesheet = Stylesheet;