1.5.31 • Published 3 years ago

babel-plugin-transform-test v1.5.31

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Babel-plugin-transform-test

Transform log syntax, extract templates from source code matching patterns

  • Source map: mapping source path(posix) to its id

        {
            <source_map_ID>: <file_path>
        }
  • Symbol map: mapping source map info to its symbol id

        {
            <symbol_map_ID>: <source_map_id>:<row>:<column>
        }
  • Template map: mapping an actual raw template string to its template id

        {
            <template_ID>: <string>
        }

*** NOTE: All IDs are auto indexing

Usage

    plugins: [
        "babel-plugin-transform-test",
        {
            "replaceSymbFunc":{
                "info":[
                    "logSymbol",
                    {
                        "variants":["self", "R", "F"]
                    }
                ],
                "debug":[
                    "logSymbol",
                    {
                        "variants":["self", "R", "F"]
                    }
                ],
                "warn":[
                    "logSymbol",
                    {
                        "variants":["self", "R", "F"]
                    }
                ],
                "error":[
                    "logSymbol",
                    {
                        "variants":["self", "R", "F"]
                    }
                ]
            },
            "replaceCreateFeatFunc":["createFeatLogs","createOneFeatLog"],
            "replaceCreateTemplFunc":["l"],
            "loggerPathRegex":"(\\w+\\/)*some\\/path\\/(\\w+\\/)*(logger)$",
            "logDataPathRegex":"(\\w+\\/)*more\\/path\\/(\\w+\\/)*(templates(-\\w+)+|templates)$",
            "excludePathRegex":"",
            "outDir":"out/path",
        }
    ]
1.5.30

3 years ago

1.5.31

3 years ago

1.5.21

3 years ago

1.5.23

3 years ago

1.5.22

3 years ago

1.5.25

3 years ago

1.5.24

3 years ago

1.5.27

3 years ago

1.5.26

3 years ago

1.5.29

3 years ago

1.5.28

3 years ago

1.5.20

3 years ago

1.5.19

3 years ago

1.5.17

3 years ago

1.5.16

3 years ago

1.5.15

3 years ago

1.5.14

3 years ago

1.5.12

3 years ago

1.5.11

3 years ago

1.5.10

3 years ago

1.5.9

3 years ago

1.5.8

3 years ago

1.5.7

3 years ago

1.5.6

3 years ago

1.5.5

3 years ago

1.5.4

3 years ago