use directories for structure

This commit is contained in:
s2
2020-05-26 10:37:57 +02:00
parent 66580d4847
commit ae4aaf2668
1287 changed files with 92093 additions and 13113 deletions

View File

@@ -2413,9 +2413,9 @@ export var domprops = [
"charCode",
"charCodeAt",
"charIndex",
"characterSet",
"characterData",
"characterDataOldValue",
"characterSet",
"charging",
"chargingTime",
"charset",
@@ -2741,9 +2741,9 @@ export var domprops = [
"declare",
"decode",
"decodeAudioData",
"decodingInfo",
"decodeURI",
"decodeURIComponent",
"decodingInfo",
"decrypt",
"default",
"defaultCharset",
@@ -4994,8 +4994,8 @@ export var domprops = [
"slice",
"slope",
"small",
"smooth",
"smil",
"smooth",
"smoothingTimeConstant",
"snapToLines",
"snapshotItem",

View File

@@ -2,7 +2,10 @@
import { RawSourceMap } from 'source-map';
export type ECMA = 5 | 6 | 7 | 8 | 9;
/** @deprecated since this versions basically do not exist */
type ECMA_UNOFFICIAL = 6 | 7 | 8 | 9 | 10 | 11;
export type ECMA = 5 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | ECMA_UNOFFICIAL;
export interface ParseOptions {
bare_returns?: boolean;
@@ -60,6 +63,7 @@ export interface CompressOptions {
unsafe_comps?: boolean;
unsafe_Function?: boolean;
unsafe_math?: boolean;
unsafe_symbols?: boolean;
unsafe_methods?: boolean;
unsafe_proto?: boolean;
unsafe_regexp?: boolean;
@@ -89,7 +93,7 @@ export interface MangleOptions {
export interface ManglePropertiesOptions {
builtins?: boolean;
debug?: boolean;
keep_quoted?: boolean;
keep_quoted?: boolean | 'strict';
regex?: RegExp | string;
reserved?: string[];
}
@@ -98,7 +102,13 @@ export interface OutputOptions {
ascii_only?: boolean;
beautify?: boolean;
braces?: boolean;
comments?: boolean | 'all' | 'some' | RegExp | Function;
comments?: boolean | 'all' | 'some' | RegExp | ( (node: AST_Node, comment: {
value: string,
type: 'comment1' | 'comment2' | 'comment3' | 'comment4',
pos: number,
line: number,
col: number,
}) => boolean );
ecma?: ECMA;
ie8?: boolean;
indent_level?: number;
@@ -107,6 +117,7 @@ export interface OutputOptions {
keep_quoted_props?: boolean;
max_line_len?: number | false;
preamble?: string;
preserve_annotations?: boolean;
quote_keys?: boolean;
quote_style?: OutputQuoteStyle;
safari10?: boolean;
@@ -117,6 +128,7 @@ export interface OutputOptions {
webkit?: boolean;
width?: number;
wrap_iife?: boolean;
wrap_func_args?: boolean;
}
export enum OutputQuoteStyle {
@@ -152,7 +164,8 @@ export interface MinifyOutput {
}
export interface SourceMapOptions {
content?: RawSourceMap;
/** Source map object, 'inline' or source map file content */
content?: RawSourceMap | string;
includeSources?: boolean;
filename?: string;
root?: string;