@posten/hedwig
Advanced tools
Comparing version 6.4.1 to 7.0.0
{ | ||
"name": "@posten/hedwig", | ||
"version": "6.4.1", | ||
"version": "7.0.0", | ||
"publishConfig": { | ||
@@ -34,3 +34,3 @@ "access": "public" | ||
"dev": "concurrently \"npm run watcher\" \"npm run serve\"", | ||
"build": "npm run docs:build && npm run css:build && npm run js:build", | ||
"build": "npm run docs:build && npm run css:build && npm run js:build && npm run svg", | ||
"release": "np --any-branch", | ||
@@ -45,3 +45,5 @@ "css:dev": "npm run css:dev:bring & npm run css:dev:posten", | ||
"js:dev": "rollup -m inline -c --name \"hedwig\"", | ||
"js:build": "rollup -c --name \"hedwig\" --output.file dist/main.js", | ||
"js:build": "npm run js:build:main && npm run js:build:icons", | ||
"js:build:main": "rollup -c --name \"hedwig\" --output.file dist/main.js", | ||
"js:build:icons": "rollup -c rollup.config.icons.js", | ||
"docs:build": "node ./scripts/docs-build", | ||
@@ -54,3 +56,3 @@ "watcher": "node ./scripts/watcher", | ||
"start": "npm run docs:build & npm run server", | ||
"svg:min": "svgo -f ./assets/icons -o ./assets/icons/optimized", | ||
"svg:min": "svgo -f ./assets/icons -o ./dist/icons", | ||
"svg:sprite": "node ./scripts/svg-sprite", | ||
@@ -57,0 +59,0 @@ "svg": "npm run svg:min && npm run svg:sprite", |
@@ -98,13 +98,9 @@ # Hedwig | ||
For the future it will probably be a good idea to have a own repository for icons, (i.e. `hedwig-icons`), where both source "master" files (AI, Sketch) and the SVG's can be stored. | ||
Icons works like this: | ||
- Place icons in the `assets/icons/` folder | ||
- Run `npm run svg` to generate SVG sprite. `npm run build` or `npm run dev` will both also produce the SVG sprite | ||
- Use icons like described in [the docs](https://hedwig-docs.herokuapp.com/bring.html#/Icon) | ||
It works like this: | ||
- Place icons in the `build/assets/icons/` folder (for now) | ||
- Run `npm run svg` to generate SVG sprite | ||
- Use icons like described in [the docs](https://hedwig-docs.herokuapp.com/#/Icon) | ||
- Include `https://cdn.jsdelivr.net/npm/@posten/hedwig@latest/dist/icons.min.js` in the footer of the document | ||
To update icons in production: | ||
- Run `npm run s3:upload` | ||
- Include `https://bring-hedwig.s3.amazonaws.com/hedwig/icons.js` in the footer of the document | ||
### π °οΈ Fonts | ||
@@ -111,0 +107,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
445
0
1481244
210
191