2.3.0 • Published 20 days ago

redput v2.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
20 days ago

redput License NPM version Build Status Coverage Status

CLI tool to download source of a rule and fixtures from 🐊Putout Editor and generate tests from it.

Install

npm i redput -g

Usage

GITHUB_TOKEN=github-token redput [putout-editor-url]

redput determines where it located and does one of next things:

  • if it finds index.js - creates rule inside nested plugin;
  • creates directory with a plugin name and fills directories lib, test and fixture;

example of input:

// ["off", "write-all-files"]
export const report = () => `Write all files`;

export const fix = (file) => {
    const content = readFileContent(file);
    writeFileContent(file, content);
};

export const scan = (root, {push}) => {
    findFile(root, ['*']).map(push);
};

License

MIT

2.3.0

20 days ago

2.2.2

2 months ago

2.2.1

3 months ago

2.2.0

4 months ago

2.1.0

4 months ago

2.0.1

5 months ago

2.0.0

5 months ago

1.15.0

5 months ago

1.14.0

5 months ago

1.13.0

5 months ago

1.12.0

6 months ago

1.15.1

5 months ago

1.11.0

7 months ago

1.10.1

8 months ago

1.10.0

8 months ago

1.9.0

8 months ago

1.8.0

8 months ago

1.7.0

8 months ago

1.6.0

8 months ago

1.5.1

9 months ago

1.5.0

9 months ago

1.4.0

9 months ago

1.3.0

9 months ago

1.2.1

9 months ago

1.2.0

9 months ago

1.1.0

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago