T.Lemon Migration Tool
A tool to migrate html components and T.Lemon classic library to T.Lemon Component Library.
Prerequisites
Make sure you have installed T.Lemon Component Library before using this tool.
Click on this link and follow the directions to set up T. Lemon Component Library.
Installation
To install and set up the library, run:
$ npm i tlemon-migration-tool
Configuration
Step 1:
Create the tlemon-migration-config.json file in the root of the Angular project and specify the root directory path in which you want to migrate all files.
{"root": ""}
Leave empty for default root path "...\src"
Step 2:
Add script in package.json file
"scripts": {
"ng": "...",
.....
"migrate": "node ./node_modules/tlemon-migration-tool/dist/index.js"
}
Usage
To start migration
npm run migrate
The migration will result in the replacement of HTML tags are listed below
- input with types
- text
- password
- checkbox
- radio
- option
- select
- textarea
- button
- img
- label
- dialog
- anchor
And also it migrates the T.Lemon classic library to the T.Lemon component library.