Skip to content

Commit

Permalink
extract unrelated config
Browse files Browse the repository at this point in the history
  • Loading branch information
jleedev committed Jun 12, 2022
1 parent 40bd8f6 commit 9126f41
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ In addition, the following style guidelines are recommended:

In general, this style is not trying to exactly replicate highway shields as seen on signage. Instead, we are trying to extract the key stylistic elements so that the graphics are recognizable as simplifications of their real-world counterparts. Here are some examples of Americana's simplified shields for small-size readability:

| Network | Real-world Shield | Americana Representation |
| ---------------------- | ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| Network | Real-world Shield | Americana Representation |
| ---------------------- | ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| NJ Turnpike | <img src="https://upload.wikimedia.org/wikipedia/commons/a/af/New_Jersey_Turnpike_Shield.svg" width="40"/> | <img src="https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/shield40_us_nj_njtp_noref.svg" width="40"/> |
| Washington State Route | <img src="https://upload.wikimedia.org/wikipedia/commons/5/52/WA-blank.svg" width="40"/> | <img src="https://raw.githubusercontent.com/ZeLonewolf/openstreetmap-americana/main/icons/shield40_us_wa.svg" width="40"/> |

Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
},
"scripts": {
"config": "cp src/configs/config.maptiler.js src/config.js",
"code_format": "npx prettier --write . && npx svgo -f icons/ --config src/configs/config.svgo.cjs",
"code_format": "run-s code_format:prettier code_format:svgo",
"code_format:prettier": "prettier --write .",
"code_format:svgo": "svgo -f icons/",
"clean": "rm -rf dist .parcel-cache",
"presprites": "rm -rf dist/sprites",
"sprites": "node scripts/sprites.js",
Expand Down
4 changes: 1 addition & 3 deletions src/configs/config.svgo.cjs → svgo.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
"use strict";

module.exports = {
export default {
multipass: true,
js2svg: {
indent: 1,
Expand Down

0 comments on commit 9126f41

Please sign in to comment.