tlemon-migration-tool

0.0.22 • Public • Published

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.

Package Sidebar

Install

npm i tlemon-migration-tool

Weekly Downloads

0

Version

0.0.22

License

MIT

Unpacked Size

77.5 kB

Total Files

7

Last publish

Collaborators

  • dineshnk