@devtea2025/tenetur-at-optio-voluptatem
v1.0.0
Published
Downloads
2
Maintainers
Keywords
Readme
@devtea2025/tenetur-at-optio-voluptatem
CLI tool to download source of a rule
and fixtures
from 🐊Putout Editor and generate tests from it.
Install
npm i @devtea2025/tenetur-at-optio-voluptatem -g
Usage
GITHUB_TOKEN=github-token @devtea2025/tenetur-at-optio-voluptatem [putout-editor-url]
@devtea2025/tenetur-at-optio-voluptatem
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
andfixture
;
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