@ikota/example
v1.0.3
Published
An example plugin providing a way to implement stylus preprocessor
Downloads
3
Readme
Overview
Ikota (Russian word for "hiccups", pronounced /ikóta/
) is a CLI
automation tool for working with React. This plugin offers a
stylus preprocessor implementation for ikota.
Install
$ npm i ikota @ikota/example
$ ikota config # or
$ npx ikota config
Follow prompt steps given by the ikota. After that you have to add the following import to plugins array:
const ikotaExample = require("@ikota/example");
module.exports = {
componentPath: "src/components",
useTypescript: false,
addConfigFile: true,
addIndexFile: true,
preprocessor: "example-styl", // The stylus preprocessor
useLambdaSimplifier: true,
trailingSpace: true,
plugins: [ikotaExample]
}
Usage
To generate the component you can use the configuration given
above or override the preprocessor set by the config using -P
flag:
$ ikota component -P example-styl
Note: Make sure to add plugin in the plugins array of the config, otherwise it would throw an error.
Example
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
This project is under MIT license. You can freely use it for your own purposes.