mirror of
https://github.com/ForkAwesome/Fork-Awesome
synced 2024-06-06 07:42:32 +02:00
Compare commits
5 commits
39f3ed6275
...
4fef70f727
Author | SHA1 | Date | |
---|---|---|---|
4fef70f727 | |||
f39a437375 | |||
afaa5d4f7b | |||
250c4349bb | |||
80cb75824f |
|
@ -14,4 +14,7 @@ WORKDIR /workspace
|
||||||
COPY Gemfile /workspace
|
COPY Gemfile /workspace
|
||||||
COPY Gemfile.lock /workspace
|
COPY Gemfile.lock /workspace
|
||||||
RUN bundle install
|
RUN bundle install
|
||||||
|
COPY package.json /workspace
|
||||||
|
COPY package-lock.json /workspace
|
||||||
|
RUN npm ci
|
||||||
CMD bash
|
CMD bash
|
||||||
|
|
1907
package-lock.json
generated
1907
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -26,7 +26,7 @@
|
||||||
"all-contributors-cli": "^6.16.0",
|
"all-contributors-cli": "^6.16.0",
|
||||||
"less": "^3.11.3",
|
"less": "^3.11.3",
|
||||||
"less-plugin-clean-css": "less/less-plugin-clean-css#master",
|
"less-plugin-clean-css": "less/less-plugin-clean-css#master",
|
||||||
"svgo": "^1.3.2"
|
"svgo": "^3.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.10.3"
|
"node": ">=0.10.3"
|
||||||
|
|
|
@ -3,7 +3,7 @@ FA_FONTCUSTOM_OUTPUT_DIR = ./forkawesome
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@echo "Cleaning up SVG files..."
|
@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..."
|
@echo "Compiling Icons into a ForkAwesome fonts..."
|
||||||
bundle exec fontcustom compile
|
bundle exec fontcustom compile
|
||||||
|
|
12
src/icons/svgo_config.js
Normal file
12
src/icons/svgo_config.js
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
module.exports = {
|
||||||
|
plugins: [
|
||||||
|
{
|
||||||
|
name: "removeAttrs",
|
||||||
|
params: {
|
||||||
|
attrs: "(glyph-name|unicode)",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"removeScriptElement",
|
||||||
|
"removeRasterImages"
|
||||||
|
]
|
||||||
|
};
|
Loading…
Reference in a new issue