1.0.0 • Published 5 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 createOr
npm run createWhich basically the next steps for you:
- Create a directory with the plugin name in
pluginsdirectory. - Create
package.jsonfile in the plugin directory that you created.- The
package.jsonshould have anameproperty (usuallynissix-then the name of the directory you just created). - The
package.jsonshould have abinproperty which states the file to run to execute the plugin. - (optional) you can have
buildandtestproperty 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
5 years ago