1.0.16 • Published 6 months ago

@himanoa/dependencies-based-clone v1.0.16

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

dependencies-based-clone

A tool to clone TypeScript source files into a separate directory based on dependency relationships and rules.

How to use

  1. Initialize the configuration:
npx @himanoa/dependencies-based-clone init-config
  1. Open dbc.config.json with your editor.
  2. Define your copy rules:
  • from: A regular expression that matches the source files you want to clone.
  • to: The destination file name. You can use placeholders like $1 which will expand groups defined in the from regex.

Example:

{
  "rules": [{
    "from": "path/to/source/(.*)\.ts",
    "to": "path/to/destination/$1.js"
  }]
}
  1. Execute the clone:
npx @himanoa/dependencies-based-clone clone src/index.ts

This will start from src/index.ts, resolve its imports, and recursively clone files based on your rules.

1.0.16

6 months ago

1.0.15

7 months ago

1.0.14

8 months ago

1.0.13

8 months ago

1.0.12

8 months ago

1.0.11

8 months ago

1.0.10

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago