4.0.0 • Published 9 months ago

ts-migration-helper v4.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

ts-migration-helper

NPM version build status npm download

Migrate simple Cheminfo JS projects to TS.

  1. Fork the js project to a Codespace (rather than locally, where you could ruin your system.)
  2. Install and run the helper (details below.)

Installation

From the Codespace terminal, run:

npm i -g ts-migration-helper

Execution

npx migration-questions
npx migration-jsrename

Contribute

The code is built with the following idea:

  • Each function is a task: Install Software, Remove Software, Update Files etc.
  • Tasks are executed in order.

ToDos

  • add script to switch to vitest and clean up package.json.
  • script to replace @jest/globals with vitest or add the line (as a default at least.) import { describe, it, expect } from 'vitest';

Test

Simplest is to use npm link that creates a symlink globally, so that now the scripts in bin can be executed with npx.

For example you'd do (in ts-migration-helper folder):

npm link
# now switch to any folder of a project that needs migration (preferably a test project.)
# then you could run
npx migration-questions && npx migration-jsrename

License

MIT

4.0.0

9 months ago

3.2.2

9 months ago

3.2.0

9 months ago

3.1.0

9 months ago

3.0.1

9 months ago

3.0.0

9 months ago

2.0.1

9 months ago

2.0.0

9 months ago

1.1.0

9 months ago

1.0.1

9 months ago

1.0.0

10 months ago