0.2.0 • Published 5 years ago

mantis-toolkit v0.2.0

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

Mantis Toolkit

A small set of useful mixins and functions

npm version


Installation

The installation can be done in 3 steps:

  • Step 1

    	Install via NPM:
    
    	```bash
    	$ npm i --save mantis-toolkit
    	```
  • Step 2

    	You can use this plugin in different ways, but all consist of passing the plugin to the [`.use`](http://stylus-lang.com/docs/js.html#usefn) method of Stylus.
    	For this example, I'll use it with [Gulp](http://gulpjs.com/) in a ES6 enviornment.
    
    	```javascript
    	import gulp from 'gulp';
    	import stylus from 'gulp-stylus';
    	import toolkit from 'mantis-toolkit';
    
    	gulp.task('css', () =>
    		gulp.src('path-to-source.styl')
    			.pipe(stylus({
    				use: [
    					toolkit()
    				]
    			}))
    			.pipe(gulp.dest('path-to-dest/'))
    	);
    	```
  • Step 3

    	Now just import the plugin into your `.styl` file as you already know.
    
    	```styl
    	@import 'mantis-toolkit'
    	```

License

© 2020 Acauã Montiel

MIT License

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago