Compare commits

...

5 commits

Author SHA1 Message Date
Thomas Clavier 4fef70f727
bump svgo version 2023-11-29 23:38:17 +01:00
Thomas Clavier f39a437375
update depedencies 2023-11-29 23:15:40 +01:00
Thomas Clavier afaa5d4f7b
install npm deps in docker 2023-11-29 23:12:16 +01:00
Thomas Clavier 250c4349bb
Merge pull request #396 from davidscotson/invalid_yaml
Fix #385, invalid .yml
2023-11-29 21:06:11 +01:00
David Scotson 80cb75824f Fix #385, invalid .yml 2022-06-30 14:29:42 +01:00
5 changed files with 742 additions and 1184 deletions

View file

@ -14,4 +14,7 @@ WORKDIR /workspace
COPY Gemfile /workspace
COPY Gemfile.lock /workspace
RUN bundle install
COPY package.json /workspace
COPY package-lock.json /workspace
RUN npm ci
CMD bash

1907
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -26,7 +26,7 @@
"all-contributors-cli": "^6.16.0",
"less": "^3.11.3",
"less-plugin-clean-css": "less/less-plugin-clean-css#master",
"svgo": "^1.3.2"
"svgo": "^3.0.0"
},
"engines": {
"node": ">=0.10.3"

View file

@ -3,7 +3,7 @@ FA_FONTCUSTOM_OUTPUT_DIR = ./forkawesome
build:
@echo "Cleaning up SVG files..."
npx svgo --quiet --pretty --config=svgo_config.json --folder=svg
npx svgo --quiet --pretty --config=svgo_config.js --folder=svg
@echo "Compiling Icons into a ForkAwesome fonts..."
bundle exec fontcustom compile

12
src/icons/svgo_config.js Normal file
View file

@ -0,0 +1,12 @@
module.exports = {
plugins: [
{
name: "removeAttrs",
params: {
attrs: "(glyph-name|unicode)",
}
},
"removeScriptElement",
"removeRasterImages"
]
};