├── .babelrc ├── .gitignore ├── .prettierrc.json ├── README.md ├── docs ├── README.md ├── classes │ ├── LexicalMinifier.md │ └── LookupTable.md ├── functions │ ├── buildMinifier.md │ ├── fromArrayPack.md │ ├── minify.md │ ├── toArrayPack.md │ └── unminify.md └── interfaces │ ├── ArrayPackNode.md │ ├── MinifiedLexicalNode.md │ ├── Minifier.md │ └── MinifierConfig.md ├── jest.config.json ├── package.json ├── src ├── builder.ts ├── built-in-minifiers.ts ├── default-values.ts ├── globals.d.ts ├── index.ts ├── lexical-minifier.ts ├── lookups │ ├── lookup-data.ts │ └── lookup-table.ts ├── minifiers │ ├── auto-link-minifier.ts │ ├── code-minifier.ts │ ├── element-minifier.ts │ ├── heading-minifier.ts │ ├── linebreak-minifier.ts │ ├── link-minifier.ts │ ├── list-item-minifier.ts │ ├── list-node-minifier.ts │ ├── mark-minifier.ts │ ├── no-minifier.ts │ ├── overflow-minifier.ts │ ├── paragraph-minifier.ts │ ├── quote-minifier.ts │ ├── root-minifier.ts │ ├── table-cell-minifier.ts │ ├── table-minifier.ts │ ├── table-row-minifier.ts │ └── text-minifier.ts ├── types.ts └── utils.ts ├── tests ├── auto-link-minifier.test.ts ├── code-minifier.test.ts ├── heading-minifier.test.ts ├── lexical-minifier.test.ts ├── linebreak-minifier.test.ts ├── link-minifier.test.ts ├── list-item-minifier.test.ts ├── list-node-minifier.test.ts ├── mark-minifier.test.ts ├── overflow-minifier.test.ts ├── paragraph-minifier.test.ts ├── quote-minifier.test.ts ├── root-minifier.test.ts ├── table-cell-minifier.test.ts ├── table-minifier.test.ts ├── table-row-minifier.test.ts ├── text-minifier.test.ts ├── utils.test.ts └── utils.ts ├── tsconfig.json ├── typedoc.json └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/.babelrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/README.md -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/docs/README.md -------------------------------------------------------------------------------- /docs/classes/LexicalMinifier.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/docs/classes/LexicalMinifier.md -------------------------------------------------------------------------------- /docs/classes/LookupTable.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/docs/classes/LookupTable.md -------------------------------------------------------------------------------- /docs/functions/buildMinifier.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/docs/functions/buildMinifier.md -------------------------------------------------------------------------------- /docs/functions/fromArrayPack.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/docs/functions/fromArrayPack.md -------------------------------------------------------------------------------- /docs/functions/minify.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/docs/functions/minify.md -------------------------------------------------------------------------------- /docs/functions/toArrayPack.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/docs/functions/toArrayPack.md -------------------------------------------------------------------------------- /docs/functions/unminify.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/docs/functions/unminify.md -------------------------------------------------------------------------------- /docs/interfaces/ArrayPackNode.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/docs/interfaces/ArrayPackNode.md -------------------------------------------------------------------------------- /docs/interfaces/MinifiedLexicalNode.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/docs/interfaces/MinifiedLexicalNode.md -------------------------------------------------------------------------------- /docs/interfaces/Minifier.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/docs/interfaces/Minifier.md -------------------------------------------------------------------------------- /docs/interfaces/MinifierConfig.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/docs/interfaces/MinifierConfig.md -------------------------------------------------------------------------------- /jest.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/jest.config.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/package.json -------------------------------------------------------------------------------- /src/builder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/builder.ts -------------------------------------------------------------------------------- /src/built-in-minifiers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/built-in-minifiers.ts -------------------------------------------------------------------------------- /src/default-values.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/default-values.ts -------------------------------------------------------------------------------- /src/globals.d.ts: -------------------------------------------------------------------------------- 1 | declare const __DEV__: boolean; 2 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/lexical-minifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/lexical-minifier.ts -------------------------------------------------------------------------------- /src/lookups/lookup-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/lookups/lookup-data.ts -------------------------------------------------------------------------------- /src/lookups/lookup-table.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/lookups/lookup-table.ts -------------------------------------------------------------------------------- /src/minifiers/auto-link-minifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/minifiers/auto-link-minifier.ts -------------------------------------------------------------------------------- /src/minifiers/code-minifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/minifiers/code-minifier.ts -------------------------------------------------------------------------------- /src/minifiers/element-minifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/minifiers/element-minifier.ts -------------------------------------------------------------------------------- /src/minifiers/heading-minifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/minifiers/heading-minifier.ts -------------------------------------------------------------------------------- /src/minifiers/linebreak-minifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/minifiers/linebreak-minifier.ts -------------------------------------------------------------------------------- /src/minifiers/link-minifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/minifiers/link-minifier.ts -------------------------------------------------------------------------------- /src/minifiers/list-item-minifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/minifiers/list-item-minifier.ts -------------------------------------------------------------------------------- /src/minifiers/list-node-minifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/minifiers/list-node-minifier.ts -------------------------------------------------------------------------------- /src/minifiers/mark-minifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/minifiers/mark-minifier.ts -------------------------------------------------------------------------------- /src/minifiers/no-minifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/minifiers/no-minifier.ts -------------------------------------------------------------------------------- /src/minifiers/overflow-minifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/minifiers/overflow-minifier.ts -------------------------------------------------------------------------------- /src/minifiers/paragraph-minifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/minifiers/paragraph-minifier.ts -------------------------------------------------------------------------------- /src/minifiers/quote-minifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/minifiers/quote-minifier.ts -------------------------------------------------------------------------------- /src/minifiers/root-minifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/minifiers/root-minifier.ts -------------------------------------------------------------------------------- /src/minifiers/table-cell-minifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/minifiers/table-cell-minifier.ts -------------------------------------------------------------------------------- /src/minifiers/table-minifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/minifiers/table-minifier.ts -------------------------------------------------------------------------------- /src/minifiers/table-row-minifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/minifiers/table-row-minifier.ts -------------------------------------------------------------------------------- /src/minifiers/text-minifier.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/minifiers/text-minifier.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/src/utils.ts -------------------------------------------------------------------------------- /tests/auto-link-minifier.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/tests/auto-link-minifier.test.ts -------------------------------------------------------------------------------- /tests/code-minifier.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/tests/code-minifier.test.ts -------------------------------------------------------------------------------- /tests/heading-minifier.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/tests/heading-minifier.test.ts -------------------------------------------------------------------------------- /tests/lexical-minifier.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/tests/lexical-minifier.test.ts -------------------------------------------------------------------------------- /tests/linebreak-minifier.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/tests/linebreak-minifier.test.ts -------------------------------------------------------------------------------- /tests/link-minifier.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/tests/link-minifier.test.ts -------------------------------------------------------------------------------- /tests/list-item-minifier.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/tests/list-item-minifier.test.ts -------------------------------------------------------------------------------- /tests/list-node-minifier.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/tests/list-node-minifier.test.ts -------------------------------------------------------------------------------- /tests/mark-minifier.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/tests/mark-minifier.test.ts -------------------------------------------------------------------------------- /tests/overflow-minifier.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/tests/overflow-minifier.test.ts -------------------------------------------------------------------------------- /tests/paragraph-minifier.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/tests/paragraph-minifier.test.ts -------------------------------------------------------------------------------- /tests/quote-minifier.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/tests/quote-minifier.test.ts -------------------------------------------------------------------------------- /tests/root-minifier.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/tests/root-minifier.test.ts -------------------------------------------------------------------------------- /tests/table-cell-minifier.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/tests/table-cell-minifier.test.ts -------------------------------------------------------------------------------- /tests/table-minifier.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/tests/table-minifier.test.ts -------------------------------------------------------------------------------- /tests/table-row-minifier.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/tests/table-row-minifier.test.ts -------------------------------------------------------------------------------- /tests/text-minifier.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/tests/text-minifier.test.ts -------------------------------------------------------------------------------- /tests/utils.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/tests/utils.test.ts -------------------------------------------------------------------------------- /tests/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/tests/utils.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/tsconfig.json -------------------------------------------------------------------------------- /typedoc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/typedoc.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fedemartinm/lexical-minifier/HEAD/yarn.lock --------------------------------------------------------------------------------