1.7.0 • Published 3 years ago

superlogs-loader v1.7.0

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

🦄 superlogs-loader

All Contributors

SuperLogs webpack loader for webpack

Superlogs is a super logical logging solution.

This package will find and replace doccomments with superlogs at build time.

Install:

$ npm install --save-dev superlogs-loader

or using yarn

$ yarn add superlogs-loader --dev

Configuration:

In your webpack.config.js:

module.exports = {
  // ...
  module: {
    rules: [
      {
        test: /\.ts?$/,
        loader: 'superlogs-loader',
        options: {
          
        }
      }
    ]
  }
}

or for razzle

module.exports = {
  // ...
  modify: (config, { target, dev }, webpack) => {
    config.module.rules.push(
      {
        test: /\.ts?$/,
        loader: 'superlogs-loader',
        options: {
          
        }
      }
    );
  }
}  

Usage

method

In your target file

/**
 * @method method description
 */

This will be replaced after build with superlogs

logs.addMethod('method description');

step

In your target file

/**
 * @step step description
 */

This will be replaced after build with superlogs

logs.addStep('step description');

data

In your target file

/**
 * @data debugVar
 */

This will be replaced after build with superlogs

logs.addData('debugVar', debugVar);

mongo

In your target file

/**
 * @mongo mongo description
 */

This will be replaced after build with superlogs

logs.addMongo('mongo description');

dispatch

In your target file

/**
 * @dispatch dispatch type
 * @payload setPayload(true)
 */

This will be replaced after build with superlogs

logs.addDispatch('dispatch description', setPayload(true));

Contributing:

Feel free to open issues to propose stuff and participate.

Pull requests are also welcome.

Licence:

MIT

Contributors ✨

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

1.7.0

3 years ago

1.6.0

3 years ago

1.5.34

3 years ago

1.5.33

3 years ago

1.5.32

3 years ago

1.5.31

3 years ago

1.5.30

3 years ago

1.5.29

3 years ago

1.5.28

3 years ago

1.5.27

3 years ago

1.5.26

3 years ago

1.5.25

3 years ago

1.5.24

3 years ago

1.5.23

3 years ago

1.5.22

3 years ago

1.5.21

3 years ago

1.5.20

3 years ago

1.5.19

3 years ago

1.5.18

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.13

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

1.5.3

3 years ago

1.5.2

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.2.0

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago