Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/netbek/grunt-rappar
Grunt plugin to convert SVG to Raphaël instructions
https://github.com/netbek/grunt-rappar
Last synced: about 2 months ago
JSON representation
Grunt plugin to convert SVG to Raphaël instructions
- Host: GitHub
- URL: https://github.com/netbek/grunt-rappar
- Owner: netbek
- License: mit
- Created: 2015-04-29T04:03:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-21T06:15:34.000Z (almost 9 years ago)
- Last Synced: 2024-04-29T18:23:08.933Z (8 months ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# grunt-rappar [![Build Status](https://secure.travis-ci.org/netbek/grunt-rappar.png?branch=master)](http://travis-ci.org/netbek/grunt-rappar)
Grunt plugin to convert SVG to Raphaël instructions.
## Getting Started
This plugin requires [Grunt](http://gruntjs.com/) `~0.4.5````javascript
// Gruntfile.js configuration
grunt.loadNpmTasks('grunt-rappar');grunt.initConfig({
rappar: {
all: {
options: {
// String to prepend to JS output. Supports text pattern replacement (see below).
prepend: "window.App.library.shape['@@filename'] = ",
// String to append to JS output. Supports text pattern replacement (see below).
append: ";"
},
// Specify files in array format with multiple src-dest mapping
files: [{cwd: 'test/files/src/', src: ['*.svg'], dest: 'test/files/dest/'}]
}
}
});
```### Text pattern replacements
* filename: basename without extension
## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).## Release History
* 0.1.1 Rename `prefix` and `suffix` options to `prepend` and `append` respectively
* 0.1.0 First release## Credits
* Test icons by [IcoMoon](https://icomoon.io) (CC BY 4.0 or GPL)## License
Copyright (c) 2015 Hein Bekker. Licensed under the MIT license.