Installations
npm install sprite-brunch
Developer
aedryan
Developer Guide
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
No
Node Version
6.9.4
NPM Version
4.0.5
Statistics
1 Stars
34 Commits
1 Watching
1 Branches
1 Contributors
Updated on 15 Dec 2017
Bundle Size
215.79 kB
Minified
59.57 kB
Minified + Gzipped
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
3,946
Last day
0%
1
Compared to previous day
Last week
0%
2
Compared to previous week
Last month
25%
5
Compared to previous month
Last year
-4%
168
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
4
sprite-brunch
Sprite Generator for brunch.
It uses Spritesmith and spritesheet-templates to generate sprites in language agnostic styles.
Installation
npm install --save sprite-brunch
If using Less, SASS, etc., sprite-brunch should be ordered before their brunch compilers in package.json so that sprite styles compile before other styles.
To improve speed, consider an engine such as canvassmith or gmsmith. Check out the Spritesmith website for details.
Config
1sprites: { 2 path: 'app/assets/images/sprites', // Path to your sprites folder 3 destCSS: 'app/css/sprites.css', // Destination sass/less/stylus files 4 destSprites: 'app/assets' // Destination of generated sprite files 5 cssFormat: 'css', // less, sass, scss, stylus 6 algorithm: 'top-down', // algorithm: top-down, left-right, diagonal (\ format), alt-diagonal 7 engine: 'pixelsmith', // pixelsmith, canvassmith, gmsmith 8 imgOpts: { 9 format: 'auto', // auto, jpg, png (If auto is used and there is png and jpg in a folder the sprite will be jpg) 10 quality: 90 // Quality of the output image 11 } 12}
Usage
It expects the following folder structure and uses the folder name as first value and the filename as the second
app/assets/images/sprites/icons
icona.png
iconb.png
app/assets/images/sprites/backgrounds
For CSS languages/preprocessors, the plugin only generates the variables and the mixins. The mixins have to be called from another stylesheet to be included in your project.
Less Example
1.icon-name { 2 .sprite(@icon-name); 3}
If you want to use git version of plugin, add
"sprite-brunch": "git+ssh://git@github.com:aedryan/sprite-brunch.git"
.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
2.6
/10
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More