Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

tlemon-migration-tool

dineshnk64MIT0.0.22

T.Lemon Migration Tool

tlemon, migration, migration tool

readme

code style: prettier

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

  1. input with types
    • text
    • password
    • checkbox
    • radio
  2. option
  3. select
  4. textarea
  5. button
  6. img
  7. label
  8. dialog
  9. anchor

And also it migrates the T.Lemon classic library to the T.Lemon component library.