├── .babelrc ├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .gitignore ├── .prettierignore ├── .prettierrc ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── bin └── kodemod ├── docs └── images │ └── kodemod-cli-screenshot.png ├── package.json ├── renovate.json ├── src ├── commands.js ├── index.js └── run-transform.js └── transforms ├── __testfixtures__ ├── block-scope-to-iife.input.js ├── block-scope-to-iife.output.js ├── lit-element-to-lit-imports.input.js ├── lit-element-to-lit-imports.output.js ├── rename-tag.input.js ├── rename-tag.output.js ├── replace-attrs.input.js └── replace-attrs.output.js ├── __tests__ ├── block-scope-to-iife.test.js ├── lit-element-to-lit-imports.test.js ├── rename-tag.test.js └── replace-attrs-test.js ├── block-scope-to-iife.js ├── lit-element-to-lit-imports.js ├── rename-tag.js └── replace-attrs.js /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/.babelrc -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | coverage/ 3 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | CHANGELOG.md 2 | transforms/__testfixtures__/* 3 | coverage/ 4 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/.prettierrc -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/README.md -------------------------------------------------------------------------------- /bin/kodemod: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | require('..'); 4 | -------------------------------------------------------------------------------- /docs/images/kodemod-cli-screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/docs/images/kodemod-cli-screenshot.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/package.json -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/renovate.json -------------------------------------------------------------------------------- /src/commands.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/src/commands.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/src/index.js -------------------------------------------------------------------------------- /src/run-transform.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/src/run-transform.js -------------------------------------------------------------------------------- /transforms/__testfixtures__/block-scope-to-iife.input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/transforms/__testfixtures__/block-scope-to-iife.input.js -------------------------------------------------------------------------------- /transforms/__testfixtures__/block-scope-to-iife.output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/transforms/__testfixtures__/block-scope-to-iife.output.js -------------------------------------------------------------------------------- /transforms/__testfixtures__/lit-element-to-lit-imports.input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/transforms/__testfixtures__/lit-element-to-lit-imports.input.js -------------------------------------------------------------------------------- /transforms/__testfixtures__/lit-element-to-lit-imports.output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/transforms/__testfixtures__/lit-element-to-lit-imports.output.js -------------------------------------------------------------------------------- /transforms/__testfixtures__/rename-tag.input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/transforms/__testfixtures__/rename-tag.input.js -------------------------------------------------------------------------------- /transforms/__testfixtures__/rename-tag.output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/transforms/__testfixtures__/rename-tag.output.js -------------------------------------------------------------------------------- /transforms/__testfixtures__/replace-attrs.input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/transforms/__testfixtures__/replace-attrs.input.js -------------------------------------------------------------------------------- /transforms/__testfixtures__/replace-attrs.output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/transforms/__testfixtures__/replace-attrs.output.js -------------------------------------------------------------------------------- /transforms/__tests__/block-scope-to-iife.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/transforms/__tests__/block-scope-to-iife.test.js -------------------------------------------------------------------------------- /transforms/__tests__/lit-element-to-lit-imports.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/transforms/__tests__/lit-element-to-lit-imports.test.js -------------------------------------------------------------------------------- /transforms/__tests__/rename-tag.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/transforms/__tests__/rename-tag.test.js -------------------------------------------------------------------------------- /transforms/__tests__/replace-attrs-test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/transforms/__tests__/replace-attrs-test.js -------------------------------------------------------------------------------- /transforms/block-scope-to-iife.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/transforms/block-scope-to-iife.js -------------------------------------------------------------------------------- /transforms/lit-element-to-lit-imports.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/transforms/lit-element-to-lit-imports.js -------------------------------------------------------------------------------- /transforms/rename-tag.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/transforms/rename-tag.js -------------------------------------------------------------------------------- /transforms/replace-attrs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kcmr/web-components-codemods/HEAD/transforms/replace-attrs.js --------------------------------------------------------------------------------