ext-migrator
TypeScript icon, indicating that this package has built-in type declarations

1.0.1-beta.9 • Public • Published

Ext Migrator

Complete or remove files extension.

source target
import '@/example-js' import '@/example-js.js'
import '@/example-ts' import '@/example-ts.ts'
import '@/example-jsx' import '@/example-jsx.jsx'
import '@/example-tsx' import '@/example-tsx.tsx'
import '@/example-vue' import '@/example-vue.vue'
import '@/example-index' import '@/example-index/index.vue'

By default, only .vue .scss .css extensions will be added.

Install

npm i --no-save ext-migrator

Start

ext-migrator

Options

ext-migrator [args]

Options:
  -f, --files       input files                  [array] [default: ["src/**/*"]]
  -a, --alias       path alias                      [array] [default: ["@=src"]]
  -e, --extensions  extensions for imports files
                   [array] [default: ["js","ts","jsx","tsx","vue","css","scss"]]
  -c, --complete    need to complete extensions, use ! prefix will be remove,
                    like: !vue           [array] [default: ["vue","scss","css"]]
  -v, --version     Show version number                                [boolean]
  -h, --help        Show help                                          [boolean]

Readme

Keywords

none

Package Sidebar

Install

npm i ext-migrator

Weekly Downloads

0

Version

1.0.1-beta.9

License

MIT

Unpacked Size

13.6 kB

Total Files

9

Last publish

Collaborators

  • yujinpan