Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add options to cover project files by transforming #100

Merged
merged 14 commits into from
Jul 2, 2022

Conversation

konpeki622
Copy link
Contributor

@konpeki622 konpeki622 commented Jun 15, 2022

closes #97 .

Usage: webpack-to-vite -d projectPath -c or webpack-to-vite -d projectPath --cover to cover raw files. By default it create a new directory named projectName-toVite and transform files in the new directory.

Usage: webpack-to-vite [options] [root]

Options:
  -v, --version            display version number
  -d --rootDir <path>      the directory of project to be converted
  -t --projectType <type>  the type of the project, use vue-cli or webpack (default: vue-cli)
  -e --entry <type>        entrance of the entire build process, webpack or vite will start from those entry files to       
                           build, if no entry file is specified, src/main.ts or src/main.js will be used as default
  -c --cover               transformed project files will cover the raw files
  -h, --help               display help for command

@konpeki622 konpeki622 force-pushed the feat/back-up branch 2 times, most recently from 7504ec3 to 97f31d1 Compare June 16, 2022 02:18
@konpeki622 konpeki622 force-pushed the feat/back-up branch 2 times, most recently from 3c015f0 to b146d8a Compare June 18, 2022 07:56
@konpeki622
Copy link
Contributor Author

konpeki622 commented Jun 21, 2022

When executing webpack-to-vite without option -c:

  1. copy files to outputDir expect node_modules directory
  2. generate vue.temp.config.js in outputDir and delete it when transformation completed
  3. transform files in sourceDir and write the results to outputDir

@Chieffo2021 Chieffo2021 merged commit 7fff316 into originjs:main Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants