0.0.14 • Published 10 months ago
tlemon-migration-tool v0.0.14
T.Lemon Migration Tool
A tool to migrate html components 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 tlemon-migration-config.json file in the root of angular project, specify the root directory path.
{"root": ""}
Leave empty for default root path "...\src\app"
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
- input
- Types
- text
- password
- checkbox
- radio
- Types
- option
- select
- textarea
- button
- img
- label
- dialog
- a