Skip to content

Commit

Permalink
Merge 98d6dd5 into 4bd64e1
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Feb 22, 2021
2 parents 4bd64e1 + 98d6dd5 commit b7f59db
Show file tree
Hide file tree
Showing 14 changed files with 171 additions and 135 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/codeql.yml
@@ -0,0 +1,28 @@
name: "CodeQL"

on:
push:
pull_request:
schedule:
- cron: "0 0 * * 0"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: "javascript"

- name: Autobuild
uses: github/codeql-action/autobuild@v1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
58 changes: 58 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,58 @@
name: Tests

on: [push, pull_request]

env:
FORCE_COLOR: 2
NODE_COV: 10 # The Node.js version to run coveralls on

jobs:
run:
name: Node ${{ matrix.node }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node: [8, 10, 12, 14]

steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Set up npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
- name: Install npm dependencies
run: npm ci

- name: Run tests
run: npm test
if: matrix.node != env.NODE_COV

- name: Run tests with coverage
run: npm run coverage
if: matrix.node == env.NODE_COV

- name: Upload screenshots
uses: actions/upload-artifact@v2
if: failure()
with:
name: svg-sprite-ci-${{ matrix.node }}-${{ github.sha }}
path: tmp/

- name: Run Coveralls
uses: coverallsapp/github-action@master
if: github.repository == 'jkphl/svg-sprite' && matrix.node == env.NODE_COV
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

20 changes: 10 additions & 10 deletions README.md
@@ -1,4 +1,4 @@
svg-sprite [![NPM version][npm-image]][npm-url] [![NPM downloads][npm-downloads]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url] [![Development Dependency Status][devdepstat-image]][devdepstat-url]
svg-sprite [![NPM version][npm-image]][npm-url] [![NPM downloads][npm-downloads]][npm-url] [![Build Status][ci-image]][ci-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url] [![Development Dependency Status][devdepstat-image]][devdepstat-url]
====================================================================================================================================================================================================================================================================================================================================================================================================

is a low-level [Node.js](http://nodejs.org/) module that **takes a bunch of [SVG](http://www.w3.org/TR/SVG/) files**, optimizes them and bakes them into **SVG sprites** of several types:
Expand Down Expand Up @@ -389,16 +389,16 @@ Copyright © 2018 Joschi Kuphal <joschi@kuphal.net> / [@jkphl](https://twitter.c


[npm-url]: https://npmjs.org/package/svg-sprite
[npm-image]: https://badge.fury.io/js/svg-sprite.svg
[npm-image]: https://img.shields.io/npm/v/svg-sprite
[npm-downloads]: https://img.shields.io/npm/dm/svg-sprite.svg

[travis-url]: http://travis-ci.org/jkphl/svg-sprite
[travis-image]: https://secure.travis-ci.org/jkphl/svg-sprite.svg
[ci-url]: https://github.com/jkphl/svg-sprite/actions?query=workflow%3ATests+branch%3Amaster
[ci-image]: https://github.com/jkphl/svg-sprite/workflows/Tests/badge.svg?branch=master

[coveralls-url]: https://coveralls.io/r/jkphl/svg-sprite
[coveralls-image]: https://img.shields.io/coveralls/jkphl/svg-sprite.svg
[coveralls-url]: https://coveralls.io/github/jkphl/svg-sprite?branch=master
[coveralls-image]: https://img.shields.io/coveralls/github/jkphl/svg-sprite/master

[depstat-url]: https://david-dm.org/jkphl/svg-sprite#info=dependencies
[depstat-image]: https://david-dm.org/jkphl/svg-sprite.svg
[devdepstat-url]: https://david-dm.org/jkphl/svg-sprite#info=devDependencies
[devdepstat-image]: https://david-dm.org/jkphl/svg-sprite/dev-status.svg
[depstat-url]: https://david-dm.org/jkphl/svg-sprite
[depstat-image]: https://img.shields.io/david/jkphl/svg-sprite
[devdepstat-url]: https://david-dm.org/jkphl/svg-sprite?type=dev
[devdepstat-image]: https://img.shields.io/david/dev/jkphl/svg-sprite
20 changes: 10 additions & 10 deletions docs/api.md
@@ -1,4 +1,4 @@
svg-sprite [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url] [![Development Dependency Status][devdepstat-image]][devdepstat-url]
svg-sprite [![NPM version][npm-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url] [![Development Dependency Status][devdepstat-image]][devdepstat-url]
==========

This file is part of the documentation of *svg-sprite* — a free low-level Node.js module that **takes a bunch of SVG files**, optimizes them and creates **SVG sprites** of several types. The package is [hosted on GitHub](https://github.com/jkphl/svg-sprite).
Expand Down Expand Up @@ -211,15 +211,15 @@ spriter.getShapes(path.resolve('tmp/svg'), function (error, result) {


[npm-url]: https://npmjs.org/package/svg-sprite
[npm-image]: https://badge.fury.io/js/svg-sprite.png
[npm-image]: https://img.shields.io/npm/v/svg-sprite

[travis-url]: http://travis-ci.org/jkphl/svg-sprite
[travis-image]: https://secure.travis-ci.org/jkphl/svg-sprite.png
[ci-url]: https://github.com/jkphl/svg-sprite/actions?query=workflow%3ATests+branch%3Amaster
[ci-image]: https://github.com/jkphl/svg-sprite/workflows/Tests/badge.svg?branch=master

[coveralls-url]: https://coveralls.io/r/jkphl/svg-sprite
[coveralls-image]: https://img.shields.io/coveralls/jkphl/svg-sprite.svg
[coveralls-url]: https://coveralls.io/github/jkphl/svg-sprite?branch=master
[coveralls-image]: https://img.shields.io/coveralls/github/jkphl/svg-sprite/master

[depstat-url]: https://david-dm.org/jkphl/svg-sprite#info=dependencies
[depstat-image]: https://david-dm.org/jkphl/svg-sprite.svg
[devdepstat-url]: https://david-dm.org/jkphl/svg-sprite#info=devDependencies
[devdepstat-image]: https://david-dm.org/jkphl/svg-sprite/dev-status.svg
[depstat-url]: https://david-dm.org/jkphl/svg-sprite
[depstat-image]: https://img.shields.io/david/jkphl/svg-sprite
[devdepstat-url]: https://david-dm.org/jkphl/svg-sprite?type=dev
[devdepstat-image]: https://img.shields.io/david/dev/jkphl/svg-sprite
20 changes: 10 additions & 10 deletions docs/command-line.md
@@ -1,4 +1,4 @@
svg-sprite [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url] [![Development Dependency Status][devdepstat-image]][devdepstat-url]
svg-sprite [![NPM version][npm-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url] [![Development Dependency Status][devdepstat-image]][devdepstat-url]
==========

This file is part of the documentation of *svg-sprite* — a free low-level Node.js module that **takes a bunch of SVG files**, optimizes them and creates **SVG sprites** of several types. The package is [hosted on GitHub](https://github.com/jkphl/svg-sprite).
Expand Down Expand Up @@ -225,15 +225,15 @@ $ svg-sprite -cD out --css-dimensions= --ccss assets/*.svg


[npm-url]: https://npmjs.org/package/svg-sprite
[npm-image]: https://badge.fury.io/js/svg-sprite.png
[npm-image]: https://img.shields.io/npm/v/svg-sprite

[travis-url]: http://travis-ci.org/jkphl/svg-sprite
[travis-image]: https://secure.travis-ci.org/jkphl/svg-sprite.png
[ci-url]: https://github.com/jkphl/svg-sprite/actions?query=workflow%3ATests+branch%3Amaster
[ci-image]: https://github.com/jkphl/svg-sprite/workflows/Tests/badge.svg?branch=master

[coveralls-url]: https://coveralls.io/r/jkphl/svg-sprite
[coveralls-image]: https://img.shields.io/coveralls/jkphl/svg-sprite.svg
[coveralls-url]: https://coveralls.io/github/jkphl/svg-sprite?branch=master
[coveralls-image]: https://img.shields.io/coveralls/github/jkphl/svg-sprite/master

[depstat-url]: https://david-dm.org/jkphl/svg-sprite#info=dependencies
[depstat-image]: https://david-dm.org/jkphl/svg-sprite.svg
[devdepstat-url]: https://david-dm.org/jkphl/svg-sprite#info=devDependencies
[devdepstat-image]: https://david-dm.org/jkphl/svg-sprite/dev-status.svg
[depstat-url]: https://david-dm.org/jkphl/svg-sprite
[depstat-image]: https://img.shields.io/david/jkphl/svg-sprite
[devdepstat-url]: https://david-dm.org/jkphl/svg-sprite?type=dev
[devdepstat-image]: https://img.shields.io/david/dev/jkphl/svg-sprite
20 changes: 10 additions & 10 deletions docs/configuration.md
@@ -1,4 +1,4 @@
svg-sprite [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url] [![Development Dependency Status][devdepstat-image]][devdepstat-url]
svg-sprite [![NPM version][npm-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url] [![Development Dependency Status][devdepstat-image]][devdepstat-url]
==========

This file is part of the documentation of *svg-sprite* — a free low-level Node.js module that **takes a bunch of SVG files**, optimizes them and creates **SVG sprites** of several types. The package is [hosted on GitHub](https://github.com/jkphl/svg-sprite).
Expand Down Expand Up @@ -464,15 +464,15 @@ To **disable the rendering** without removing the whole structure, simply set th


[npm-url]: https://npmjs.org/package/svg-sprite
[npm-image]: https://badge.fury.io/js/svg-sprite.png
[npm-image]: https://img.shields.io/npm/v/svg-sprite

[travis-url]: http://travis-ci.org/jkphl/svg-sprite
[travis-image]: https://secure.travis-ci.org/jkphl/svg-sprite.png
[ci-url]: https://github.com/jkphl/svg-sprite/actions?query=workflow%3ATests+branch%3Amaster
[ci-image]: https://github.com/jkphl/svg-sprite/workflows/Tests/badge.svg?branch=master

[coveralls-url]: https://coveralls.io/r/jkphl/svg-sprite
[coveralls-image]: https://img.shields.io/coveralls/jkphl/svg-sprite.svg
[coveralls-url]: https://coveralls.io/github/jkphl/svg-sprite?branch=master
[coveralls-image]: https://img.shields.io/coveralls/github/jkphl/svg-sprite/master

[depstat-url]: https://david-dm.org/jkphl/svg-sprite#info=dependencies
[depstat-image]: https://david-dm.org/jkphl/svg-sprite.svg
[devdepstat-url]: https://david-dm.org/jkphl/svg-sprite#info=devDependencies
[devdepstat-image]: https://david-dm.org/jkphl/svg-sprite/dev-status.svg
[depstat-url]: https://david-dm.org/jkphl/svg-sprite
[depstat-image]: https://img.shields.io/david/jkphl/svg-sprite
[devdepstat-url]: https://david-dm.org/jkphl/svg-sprite?type=dev
[devdepstat-image]: https://img.shields.io/david/dev/jkphl/svg-sprite
20 changes: 10 additions & 10 deletions docs/grunt-gulp.md
@@ -1,4 +1,4 @@
svg-sprite [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url] [![Development Dependency Status][devdepstat-image]][devdepstat-url]
svg-sprite [![NPM version][npm-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url] [![Development Dependency Status][devdepstat-image]][devdepstat-url]
==========

This file is part of the documentation of *svg-sprite* — a free low-level Node.js module that **takes a bunch of SVG files**, optimizes them and creates **SVG sprites** of several types. The package is [hosted on GitHub](https://github.com/jkphl/svg-sprite).
Expand Down Expand Up @@ -53,15 +53,15 @@ gulp.src('assets/*.svg')


[npm-url]: https://npmjs.org/package/svg-sprite
[npm-image]: https://badge.fury.io/js/svg-sprite.png
[npm-image]: https://img.shields.io/npm/v/svg-sprite

[travis-url]: http://travis-ci.org/jkphl/svg-sprite
[travis-image]: https://secure.travis-ci.org/jkphl/svg-sprite.png
[ci-url]: https://github.com/jkphl/svg-sprite/actions?query=workflow%3ATests+branch%3Amaster
[ci-image]: https://github.com/jkphl/svg-sprite/workflows/Tests/badge.svg?branch=master

[coveralls-url]: https://coveralls.io/r/jkphl/svg-sprite
[coveralls-image]: https://img.shields.io/coveralls/jkphl/svg-sprite.svg
[coveralls-url]: https://coveralls.io/github/jkphl/svg-sprite?branch=master
[coveralls-image]: https://img.shields.io/coveralls/github/jkphl/svg-sprite/master

[depstat-url]: https://david-dm.org/jkphl/svg-sprite#info=dependencies
[depstat-image]: https://david-dm.org/jkphl/svg-sprite.svg
[devdepstat-url]: https://david-dm.org/jkphl/svg-sprite#info=devDependencies
[devdepstat-image]: https://david-dm.org/jkphl/svg-sprite/dev-status.svg
[depstat-url]: https://david-dm.org/jkphl/svg-sprite
[depstat-image]: https://img.shields.io/david/jkphl/svg-sprite
[devdepstat-url]: https://david-dm.org/jkphl/svg-sprite?type=dev
[devdepstat-image]: https://img.shields.io/david/dev/jkphl/svg-sprite
20 changes: 10 additions & 10 deletions docs/meta-data.md
@@ -1,4 +1,4 @@
svg-sprite [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url] [![Development Dependency Status][devdepstat-image]][devdepstat-url]
svg-sprite [![NPM version][npm-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url] [![Development Dependency Status][devdepstat-image]][devdepstat-url]
==========

This file is part of the documentation of *svg-sprite* — a free low-level Node.js module that **takes a bunch of SVG files**, optimizes them and creates **SVG sprites** of several types. The package is [hosted on GitHub](https://github.com/jkphl/svg-sprite).
Expand Down Expand Up @@ -44,15 +44,15 @@ Please be aware that existing `<title>` and `<description>` elements in the SVG


[npm-url]: https://npmjs.org/package/svg-sprite
[npm-image]: https://badge.fury.io/js/svg-sprite.png
[npm-image]: https://img.shields.io/npm/v/svg-sprite

[travis-url]: http://travis-ci.org/jkphl/svg-sprite
[travis-image]: https://secure.travis-ci.org/jkphl/svg-sprite.png
[ci-url]: https://github.com/jkphl/svg-sprite/actions?query=workflow%3ATests+branch%3Amaster
[ci-image]: https://github.com/jkphl/svg-sprite/workflows/Tests/badge.svg?branch=master

[coveralls-url]: https://coveralls.io/r/jkphl/svg-sprite
[coveralls-image]: https://img.shields.io/coveralls/jkphl/svg-sprite.svg
[coveralls-url]: https://coveralls.io/github/jkphl/svg-sprite?branch=master
[coveralls-image]: https://img.shields.io/coveralls/github/jkphl/svg-sprite/master

[depstat-url]: https://david-dm.org/jkphl/svg-sprite#info=dependencies
[depstat-image]: https://david-dm.org/jkphl/svg-sprite.svg
[devdepstat-url]: https://david-dm.org/jkphl/svg-sprite#info=devDependencies
[devdepstat-image]: https://david-dm.org/jkphl/svg-sprite/dev-status.svg
[depstat-url]: https://david-dm.org/jkphl/svg-sprite
[depstat-image]: https://img.shields.io/david/jkphl/svg-sprite
[devdepstat-url]: https://david-dm.org/jkphl/svg-sprite?type=dev
[devdepstat-image]: https://img.shields.io/david/dev/jkphl/svg-sprite
20 changes: 10 additions & 10 deletions docs/shape-alignment.md
@@ -1,4 +1,4 @@
svg-sprite [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url] [![Development Dependency Status][devdepstat-image]][devdepstat-url]
svg-sprite [![NPM version][npm-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependency Status][depstat-image]][depstat-url] [![Development Dependency Status][devdepstat-image]][devdepstat-url]
==========

This file is part of the documentation of *svg-sprite* — a free low-level Node.js module that **takes a bunch of SVG files**, optimizes them and creates **SVG sprites** of several types. The package is [hosted on GitHub](https://github.com/jkphl/svg-sprite).
Expand Down Expand Up @@ -66,15 +66,15 @@ As the displaced copies are created with the `<use>` element, your sprite doesn'


[npm-url]: https://npmjs.org/package/svg-sprite
[npm-image]: https://badge.fury.io/js/svg-sprite.png
[npm-image]: https://img.shields.io/npm/v/svg-sprite

[travis-url]: http://travis-ci.org/jkphl/svg-sprite
[travis-image]: https://secure.travis-ci.org/jkphl/svg-sprite.png
[ci-url]: https://github.com/jkphl/svg-sprite/actions?query=workflow%3ATests+branch%3Amaster
[ci-image]: https://github.com/jkphl/svg-sprite/workflows/Tests/badge.svg?branch=master

[coveralls-url]: https://coveralls.io/r/jkphl/svg-sprite
[coveralls-image]: https://img.shields.io/coveralls/jkphl/svg-sprite.svg
[coveralls-url]: https://coveralls.io/github/jkphl/svg-sprite?branch=master
[coveralls-image]: https://img.shields.io/coveralls/github/jkphl/svg-sprite/master

[depstat-url]: https://david-dm.org/jkphl/svg-sprite#info=dependencies
[depstat-image]: https://david-dm.org/jkphl/svg-sprite.svg
[devdepstat-url]: https://david-dm.org/jkphl/svg-sprite#info=devDependencies
[devdepstat-image]: https://david-dm.org/jkphl/svg-sprite/dev-status.svg
[depstat-url]: https://david-dm.org/jkphl/svg-sprite
[depstat-image]: https://img.shields.io/david/jkphl/svg-sprite
[devdepstat-url]: https://david-dm.org/jkphl/svg-sprite?type=dev
[devdepstat-image]: https://img.shields.io/david/dev/jkphl/svg-sprite

0 comments on commit b7f59db

Please sign in to comment.