This project is an example of how to use the plugin-preloader package to load Babel and ESLint plugins.
- Clone the project -
git clone [email protected]:upgradejs/plugin-preloader.git - Navigate to the example folder -
cd plugin-preloader/example - Run -
npm install - You are ready to try it out, there are two testing sub-projects under inside external-projects folder. You can run the following commands to test them:
- To test plugin-preloader on the typescript-based project, run -
node index.js analyze ./external-projects/typescript/src/index.ts -b ./external-projects/typescript/babel.config.js -e ./external-projects/typescript/.eslintrc.js - To test plugin-preloader on the flow-based project, run -
node index.js analyze ./external-projects/flow/src/index.js -b ./external-projects/javascript/babel.config.js -e ./external-projects/javascript/.eslintrc.js
- To test plugin-preloader on the typescript-based project, run -
- As a result, in the root of the example folder, two files will be created - babel.json and eslint.json with the analysis results.
You can play with this project and try to run it on your files. All you need is to change the paths to the desired file, Babel, and ESLint configs in the commands above.