Skip to content

Commit

Permalink
Version 2.2.0
Browse files Browse the repository at this point in the history
Added 14 new icons
  • Loading branch information
simonnilsson committed Aug 27, 2021
1 parent c6eab05 commit 8dd5af8
Show file tree
Hide file tree
Showing 7 changed files with 353 additions and 296 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

## [2.2.0] - 2021-08-27
- 14 new icons
- Dependency updates

## [2.1.0] - 2021-06-28
- 5 new icons
- Dependency updates
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ Source of icons is the [Material Icon Theme](https://github.com/PKief/vscode-mat
## Features

- Zero dependencies.
- Contains **325** unique icons.
- Contains **339** unique icons.
- Can automatically select icon based on file name.
- Uses **SVG** images that can scale to any dimensions.
- All icons a bundled in a single file of about **426 kB** minified.
- All icons a bundled in a single file of about **438 kB** minified.
- Although primarily focused on file types used in software development, other common file types are also included.

## Install
Expand Down
608 changes: 327 additions & 281 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "material-file-icons",
"version": "2.1.0",
"version": "2.2.0",
"description": "Beautiful material style file type icons in a simple react component.",
"module": "dist/index.es.js",
"main": "dist/index.js",
Expand Down Expand Up @@ -29,18 +29,18 @@
"url": "https://github.com/simonnilsson/material-file-icons.git"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.28.1",
"@typescript-eslint/parser": "^4.28.1",
"eslint": "^7.29.0",
"@typescript-eslint/eslint-plugin": "^4.29.3",
"@typescript-eslint/parser": "^4.29.3",
"eslint": "^7.32.0",
"fs-extra": "^10.0.0",
"language-map": "^1.4.0",
"material-icon-theme": "github:PKief/vscode-material-icon-theme",
"puppeteer": "^10.0.0",
"rollup": "^2.52.3",
"puppeteer": "^10.2.0",
"rollup": "^2.56.3",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0",
"svgo": "^2.3.1",
"typescript": "^4.3.4"
"svgo": "^2.4.0",
"typescript": "^4.4.2"
}
}
Binary file modified preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 11 additions & 4 deletions scripts/icon-definitions-resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import rollup from 'rollup'
import typescript from 'rollup-plugin-typescript2'
import { readFile } from 'fs-extra'
import util from 'util';
import { optimize, extendDefaultPlugins } from 'svgo';
import { optimize } from 'svgo';
import languageMap from 'language-map';

const SRC_BASE = 'node_modules/material-icon-theme/';
Expand All @@ -15,19 +15,26 @@ async function inlineSvg(fileName, prefix) {
const image = await readFile(fileName);
const result = optimize(image.toString(), {
path: fileName,
plugins: extendDefaultPlugins([
plugins: [
{
name: 'preset-default',
params: {
overrides: {
removeViewBox: false
}
}
},
{
name: 'addAttributesToSVGElement',
params: {
attributes: [{ style: 'width: 100%; height: 100%'}]
}
},
{ name: 'prefixIds', active: true, params: { prefix } },
{ name: 'removeViewBox', active: false },
'convertStyleToAttrs',
'removeDimensions',
'removeStyleElement',
])
]
});
return result.data;
}
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"moduleResolution": "node",
"module": "esnext",
"target": "es5",
"target": "es6",
"outDir": "./dist",
"alwaysStrict": true,
"declaration": true,
Expand Down

0 comments on commit 8dd5af8

Please sign in to comment.