├── .editorconfig ├── .eslintignore ├── .eslintrc.json ├── .fatherrc.ts ├── .github └── workflows │ └── node.js.yml ├── .gitignore ├── .npmignore ├── .prettierignore ├── .prettierrc ├── README.md ├── package.json ├── src ├── constants.ts ├── directives │ ├── else-if.ts │ ├── else.ts │ ├── for.ts │ ├── html.ts │ ├── if.ts │ ├── index.ts │ ├── model.ts │ ├── pre.ts │ ├── show.ts │ └── text.ts ├── helpers.ts ├── index.ts ├── types.ts └── utils.ts ├── test ├── fixtures │ ├── complex │ │ ├── actual.js │ │ └── expected.js │ ├── else-if │ │ ├── actual.js │ │ ├── error.js │ │ └── expected.js │ ├── else │ │ ├── actual.js │ │ ├── error.js │ │ └── expected.js │ ├── for │ │ ├── actual.js │ │ ├── error.js │ │ └── expected.js │ ├── html │ │ ├── actual.js │ │ ├── error.js │ │ └── expected.js │ ├── if │ │ ├── actual.js │ │ ├── error.js │ │ └── expected.js │ ├── model-checkbox │ │ ├── actual.js │ │ └── expected.js │ ├── model-others │ │ ├── actual.js │ │ └── expected.js │ ├── model-radio │ │ ├── actual.js │ │ └── expected.js │ ├── model-select │ │ ├── actual.js │ │ └── expected.js │ ├── model-text │ │ ├── actual.js │ │ ├── error.js │ │ └── expected.js │ ├── pre │ │ ├── actual.js │ │ ├── error.js │ │ └── expected.js │ ├── show │ │ ├── actual.js │ │ ├── error.js │ │ └── expected.js │ └── text │ │ ├── actual.js │ │ ├── error.js │ │ └── expected.js └── index.test.ts └── tsconfig.json /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.fatherrc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/.fatherrc.ts -------------------------------------------------------------------------------- /.github/workflows/node.js.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/.github/workflows/node.js.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | tmp 3 | node_modules 4 | coverage 5 | __tests__ 6 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/.prettierrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/package.json -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/src/constants.ts -------------------------------------------------------------------------------- /src/directives/else-if.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/src/directives/else-if.ts -------------------------------------------------------------------------------- /src/directives/else.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/src/directives/else.ts -------------------------------------------------------------------------------- /src/directives/for.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/src/directives/for.ts -------------------------------------------------------------------------------- /src/directives/html.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/src/directives/html.ts -------------------------------------------------------------------------------- /src/directives/if.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/src/directives/if.ts -------------------------------------------------------------------------------- /src/directives/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/src/directives/index.ts -------------------------------------------------------------------------------- /src/directives/model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/src/directives/model.ts -------------------------------------------------------------------------------- /src/directives/pre.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/src/directives/pre.ts -------------------------------------------------------------------------------- /src/directives/show.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/src/directives/show.ts -------------------------------------------------------------------------------- /src/directives/text.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/src/directives/text.ts -------------------------------------------------------------------------------- /src/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/src/helpers.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/src/utils.ts -------------------------------------------------------------------------------- /test/fixtures/complex/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/complex/actual.js -------------------------------------------------------------------------------- /test/fixtures/complex/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/complex/expected.js -------------------------------------------------------------------------------- /test/fixtures/else-if/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/else-if/actual.js -------------------------------------------------------------------------------- /test/fixtures/else-if/error.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/else-if/error.js -------------------------------------------------------------------------------- /test/fixtures/else-if/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/else-if/expected.js -------------------------------------------------------------------------------- /test/fixtures/else/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/else/actual.js -------------------------------------------------------------------------------- /test/fixtures/else/error.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/else/error.js -------------------------------------------------------------------------------- /test/fixtures/else/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/else/expected.js -------------------------------------------------------------------------------- /test/fixtures/for/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/for/actual.js -------------------------------------------------------------------------------- /test/fixtures/for/error.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/for/error.js -------------------------------------------------------------------------------- /test/fixtures/for/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/for/expected.js -------------------------------------------------------------------------------- /test/fixtures/html/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/html/actual.js -------------------------------------------------------------------------------- /test/fixtures/html/error.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/html/error.js -------------------------------------------------------------------------------- /test/fixtures/html/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/html/expected.js -------------------------------------------------------------------------------- /test/fixtures/if/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/if/actual.js -------------------------------------------------------------------------------- /test/fixtures/if/error.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/if/error.js -------------------------------------------------------------------------------- /test/fixtures/if/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/if/expected.js -------------------------------------------------------------------------------- /test/fixtures/model-checkbox/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/model-checkbox/actual.js -------------------------------------------------------------------------------- /test/fixtures/model-checkbox/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/model-checkbox/expected.js -------------------------------------------------------------------------------- /test/fixtures/model-others/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/model-others/actual.js -------------------------------------------------------------------------------- /test/fixtures/model-others/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/model-others/expected.js -------------------------------------------------------------------------------- /test/fixtures/model-radio/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/model-radio/actual.js -------------------------------------------------------------------------------- /test/fixtures/model-radio/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/model-radio/expected.js -------------------------------------------------------------------------------- /test/fixtures/model-select/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/model-select/actual.js -------------------------------------------------------------------------------- /test/fixtures/model-select/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/model-select/expected.js -------------------------------------------------------------------------------- /test/fixtures/model-text/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/model-text/actual.js -------------------------------------------------------------------------------- /test/fixtures/model-text/error.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/model-text/error.js -------------------------------------------------------------------------------- /test/fixtures/model-text/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/model-text/expected.js -------------------------------------------------------------------------------- /test/fixtures/pre/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/pre/actual.js -------------------------------------------------------------------------------- /test/fixtures/pre/error.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/pre/error.js -------------------------------------------------------------------------------- /test/fixtures/pre/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/pre/expected.js -------------------------------------------------------------------------------- /test/fixtures/show/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/show/actual.js -------------------------------------------------------------------------------- /test/fixtures/show/error.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/show/error.js -------------------------------------------------------------------------------- /test/fixtures/show/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/show/expected.js -------------------------------------------------------------------------------- /test/fixtures/text/actual.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/text/actual.js -------------------------------------------------------------------------------- /test/fixtures/text/error.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/text/error.js -------------------------------------------------------------------------------- /test/fixtures/text/expected.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/fixtures/text/expected.js -------------------------------------------------------------------------------- /test/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/test/index.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hou-pu/babel-plugin-direactive/HEAD/tsconfig.json --------------------------------------------------------------------------------