1.0.0 • Published 3 years ago
@nissix/public-plugins v1.0.0
Nissix Plugins
Nissix is a system that runs code on your repository and creates PRs for you.
This repository contains Nissix's public plugins.
What is a Nissix plugin?
A plugin is an executeable that runs after the repository has been cloned.
It changes the files as it see fits:
- Reading the relevant files from the filesystem.
- Changing the files either by using regexes and string replaces or AST parses such as babel or recast.
- Then (once the plugin finishes it's work) saves the files.
And Nissix creates a PR for it.
How to create your own plugin?
Run
yarn create
Or
npm run create
Which basically the next steps for you:
- Create a directory with the plugin name in
plugins
directory. - Create
package.json
file in the plugin directory that you created.- The
package.json
should have aname
property (usuallynissix-
then the name of the directory you just created). - The
package.json
should have abin
property which states the file to run to execute the plugin. - (optional) you can have
build
andtest
property if you want\ need.
- The
A plugin doesn't have to be in javascript or typescript.
They just have to have a package.json
file which is the manifest of the plugin.
Please see prettier plugin as an example
1.0.0
3 years ago