├── .czrc ├── .editorconfig ├── .github ├── actions │ └── publish │ │ ├── Dockerfile │ │ └── entrypoint.sh └── main.workflow ├── .gitignore ├── .prettierignore ├── .prettierrc.json ├── .vscode └── settings.json ├── README.md ├── docs ├── .gitignore ├── .umirc.js ├── README.md ├── package.json └── src │ ├── author.mdx │ ├── index.mdx │ └── user.mdx ├── examples ├── README.md ├── console-scope.tsmacro │ ├── README.md │ ├── package.json │ ├── rollup.config.js │ ├── src │ │ └── index.ts │ └── tsconfig.json ├── console-scope.usage │ ├── package.json │ ├── rollup.config.js │ ├── src │ │ └── main.ts │ └── tsconfig.json ├── hooks.tsmacro │ ├── README.md │ ├── package.json │ ├── rollup.config.js │ ├── src │ │ └── index.ts │ └── tsconfig.json ├── hooks.usage │ ├── package.json │ ├── rollup.config.js │ ├── src │ │ └── main.tsx │ └── tsconfig.json ├── lowercase.macro │ ├── package.json │ ├── rollup.config.js │ ├── src │ │ ├── babel-lowercase.d.ts │ │ ├── babel-lowercase.js │ │ ├── index.ts │ │ └── typescript-lowercase.ts │ └── tsconfig.json ├── lowercase.usage.js │ ├── .babelrc │ ├── package.json │ ├── rollup.config.js │ └── src │ │ └── main.js ├── lowercase.usage.ts │ ├── package.json │ ├── rollup.config.js │ └── src │ │ └── main.ts ├── transformer-keys.tsmacro │ ├── README.md │ ├── package.json │ ├── rollup.config.js │ ├── src │ │ └── index.ts │ └── tsconfig.json ├── transformer-keys.usage │ ├── package.json │ ├── rollup.config.js │ └── src │ │ └── main.ts ├── uppercase.tsmacro │ ├── README.md │ ├── package.json │ ├── rollup.config.js │ ├── src │ │ └── index.ts │ └── tsconfig.json └── uppercase.usage │ ├── package.json │ ├── rollup.config.js │ └── src │ └── main.ts ├── lerna.json ├── package.json ├── packages ├── interop-export-macros.tsmacro │ ├── package.json │ ├── src │ │ └── index.ts │ └── tsconfig.json └── typescript-macros │ ├── .npmignore │ ├── README.md │ ├── package.json │ ├── src │ ├── index.ts │ ├── transformerFactoryCreator.ts │ ├── types.ts │ └── utils │ │ ├── getBindingIdentifiers.ts │ │ ├── getMacroImportDeclarations.ts │ │ ├── getUses.ts │ │ └── isMacroImportDeclaration.ts │ └── tsconfig.json ├── tslint.json ├── tsserver-plugin.tsconfig.json └── yarn.lock /.czrc: -------------------------------------------------------------------------------- 1 | { "path": "cz-moe" } 2 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/actions/publish/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/.github/actions/publish/Dockerfile -------------------------------------------------------------------------------- /.github/actions/publish/entrypoint.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/.github/actions/publish/entrypoint.sh -------------------------------------------------------------------------------- /.github/main.workflow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/.github/main.workflow -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | dist 2 | coverage 3 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/README.md -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- 1 | /.docz 2 | -------------------------------------------------------------------------------- /docs/.umirc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/docs/.umirc.js -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- 1 | # Documents for TypeScript Macros 2 | -------------------------------------------------------------------------------- /docs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/docs/package.json -------------------------------------------------------------------------------- /docs/src/author.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/docs/src/author.mdx -------------------------------------------------------------------------------- /docs/src/index.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/docs/src/index.mdx -------------------------------------------------------------------------------- /docs/src/user.mdx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/docs/src/user.mdx -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/README.md -------------------------------------------------------------------------------- /examples/console-scope.tsmacro/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/console-scope.tsmacro/README.md -------------------------------------------------------------------------------- /examples/console-scope.tsmacro/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/console-scope.tsmacro/package.json -------------------------------------------------------------------------------- /examples/console-scope.tsmacro/rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/console-scope.tsmacro/rollup.config.js -------------------------------------------------------------------------------- /examples/console-scope.tsmacro/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/console-scope.tsmacro/src/index.ts -------------------------------------------------------------------------------- /examples/console-scope.tsmacro/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/console-scope.tsmacro/tsconfig.json -------------------------------------------------------------------------------- /examples/console-scope.usage/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/console-scope.usage/package.json -------------------------------------------------------------------------------- /examples/console-scope.usage/rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/console-scope.usage/rollup.config.js -------------------------------------------------------------------------------- /examples/console-scope.usage/src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/console-scope.usage/src/main.ts -------------------------------------------------------------------------------- /examples/console-scope.usage/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/console-scope.usage/tsconfig.json -------------------------------------------------------------------------------- /examples/hooks.tsmacro/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/hooks.tsmacro/README.md -------------------------------------------------------------------------------- /examples/hooks.tsmacro/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/hooks.tsmacro/package.json -------------------------------------------------------------------------------- /examples/hooks.tsmacro/rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/hooks.tsmacro/rollup.config.js -------------------------------------------------------------------------------- /examples/hooks.tsmacro/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/hooks.tsmacro/src/index.ts -------------------------------------------------------------------------------- /examples/hooks.tsmacro/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/hooks.tsmacro/tsconfig.json -------------------------------------------------------------------------------- /examples/hooks.usage/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/hooks.usage/package.json -------------------------------------------------------------------------------- /examples/hooks.usage/rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/hooks.usage/rollup.config.js -------------------------------------------------------------------------------- /examples/hooks.usage/src/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/hooks.usage/src/main.tsx -------------------------------------------------------------------------------- /examples/hooks.usage/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/hooks.usage/tsconfig.json -------------------------------------------------------------------------------- /examples/lowercase.macro/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/lowercase.macro/package.json -------------------------------------------------------------------------------- /examples/lowercase.macro/rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/lowercase.macro/rollup.config.js -------------------------------------------------------------------------------- /examples/lowercase.macro/src/babel-lowercase.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/lowercase.macro/src/babel-lowercase.d.ts -------------------------------------------------------------------------------- /examples/lowercase.macro/src/babel-lowercase.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/lowercase.macro/src/babel-lowercase.js -------------------------------------------------------------------------------- /examples/lowercase.macro/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/lowercase.macro/src/index.ts -------------------------------------------------------------------------------- /examples/lowercase.macro/src/typescript-lowercase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/lowercase.macro/src/typescript-lowercase.ts -------------------------------------------------------------------------------- /examples/lowercase.macro/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/lowercase.macro/tsconfig.json -------------------------------------------------------------------------------- /examples/lowercase.usage.js/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": ["macros"] 3 | } 4 | -------------------------------------------------------------------------------- /examples/lowercase.usage.js/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/lowercase.usage.js/package.json -------------------------------------------------------------------------------- /examples/lowercase.usage.js/rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/lowercase.usage.js/rollup.config.js -------------------------------------------------------------------------------- /examples/lowercase.usage.js/src/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/lowercase.usage.js/src/main.js -------------------------------------------------------------------------------- /examples/lowercase.usage.ts/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/lowercase.usage.ts/package.json -------------------------------------------------------------------------------- /examples/lowercase.usage.ts/rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/lowercase.usage.ts/rollup.config.js -------------------------------------------------------------------------------- /examples/lowercase.usage.ts/src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/lowercase.usage.ts/src/main.ts -------------------------------------------------------------------------------- /examples/transformer-keys.tsmacro/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/transformer-keys.tsmacro/README.md -------------------------------------------------------------------------------- /examples/transformer-keys.tsmacro/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/transformer-keys.tsmacro/package.json -------------------------------------------------------------------------------- /examples/transformer-keys.tsmacro/rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/transformer-keys.tsmacro/rollup.config.js -------------------------------------------------------------------------------- /examples/transformer-keys.tsmacro/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/transformer-keys.tsmacro/src/index.ts -------------------------------------------------------------------------------- /examples/transformer-keys.tsmacro/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/transformer-keys.tsmacro/tsconfig.json -------------------------------------------------------------------------------- /examples/transformer-keys.usage/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/transformer-keys.usage/package.json -------------------------------------------------------------------------------- /examples/transformer-keys.usage/rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/transformer-keys.usage/rollup.config.js -------------------------------------------------------------------------------- /examples/transformer-keys.usage/src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/transformer-keys.usage/src/main.ts -------------------------------------------------------------------------------- /examples/uppercase.tsmacro/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/uppercase.tsmacro/README.md -------------------------------------------------------------------------------- /examples/uppercase.tsmacro/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/uppercase.tsmacro/package.json -------------------------------------------------------------------------------- /examples/uppercase.tsmacro/rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/uppercase.tsmacro/rollup.config.js -------------------------------------------------------------------------------- /examples/uppercase.tsmacro/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/uppercase.tsmacro/src/index.ts -------------------------------------------------------------------------------- /examples/uppercase.tsmacro/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/uppercase.tsmacro/tsconfig.json -------------------------------------------------------------------------------- /examples/uppercase.usage/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/uppercase.usage/package.json -------------------------------------------------------------------------------- /examples/uppercase.usage/rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/uppercase.usage/rollup.config.js -------------------------------------------------------------------------------- /examples/uppercase.usage/src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/examples/uppercase.usage/src/main.ts -------------------------------------------------------------------------------- /lerna.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/lerna.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/package.json -------------------------------------------------------------------------------- /packages/interop-export-macros.tsmacro/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/packages/interop-export-macros.tsmacro/package.json -------------------------------------------------------------------------------- /packages/interop-export-macros.tsmacro/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/packages/interop-export-macros.tsmacro/src/index.ts -------------------------------------------------------------------------------- /packages/interop-export-macros.tsmacro/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/packages/interop-export-macros.tsmacro/tsconfig.json -------------------------------------------------------------------------------- /packages/typescript-macros/.npmignore: -------------------------------------------------------------------------------- 1 | 2 | .rts2_cache_* 3 | -------------------------------------------------------------------------------- /packages/typescript-macros/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/packages/typescript-macros/README.md -------------------------------------------------------------------------------- /packages/typescript-macros/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/packages/typescript-macros/package.json -------------------------------------------------------------------------------- /packages/typescript-macros/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/packages/typescript-macros/src/index.ts -------------------------------------------------------------------------------- /packages/typescript-macros/src/transformerFactoryCreator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/packages/typescript-macros/src/transformerFactoryCreator.ts -------------------------------------------------------------------------------- /packages/typescript-macros/src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/packages/typescript-macros/src/types.ts -------------------------------------------------------------------------------- /packages/typescript-macros/src/utils/getBindingIdentifiers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/packages/typescript-macros/src/utils/getBindingIdentifiers.ts -------------------------------------------------------------------------------- /packages/typescript-macros/src/utils/getMacroImportDeclarations.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/packages/typescript-macros/src/utils/getMacroImportDeclarations.ts -------------------------------------------------------------------------------- /packages/typescript-macros/src/utils/getUses.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/packages/typescript-macros/src/utils/getUses.ts -------------------------------------------------------------------------------- /packages/typescript-macros/src/utils/isMacroImportDeclaration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/packages/typescript-macros/src/utils/isMacroImportDeclaration.ts -------------------------------------------------------------------------------- /packages/typescript-macros/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/packages/typescript-macros/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/tslint.json -------------------------------------------------------------------------------- /tsserver-plugin.tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/tsserver-plugin.tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xiaoxiangmoe/typescript-macros/HEAD/yarn.lock --------------------------------------------------------------------------------