Skip to content

Commit

Permalink
fix: broken subgroups in emoji packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ifiokjr committed Jan 16, 2021
1 parent 3c676ef commit ff19a3c
Show file tree
Hide file tree
Showing 13,792 changed files with 14,293 additions and 454,598 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
10 changes: 10 additions & 0 deletions .changeset/eighty-parents-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'svgmoji': minor
'@svgmoji/blob': minor
'@svgmoji/core': minor
'@svgmoji/noto': minor
'@svgmoji/openmoji': minor
'@svgmoji/twemoji': minor
---

Improve `npm` package documentation and fix broken subgroup build.
20 changes: 19 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
# Don't use the workspace protocol.
save-workspace-protocol=false
publish-branch="next"

# This makes installations on branches that aren't up to date less stressful by
# preserving the latest version in the current workspace.
prefer-workspace-packages=true

# Set the publish branch to prevent unintentional publishing.
publish-branch="main"

# Version 5.2.0 introduces automatic hoisting of `@types/*`. I'm turning it off
# for now.
shamefully-hoist=false

# Support cross platform shell commands.
shell-emulator=true

# Added since the shell-emulator seems to remove colors from output. There is a
# warning against using this setting in the docs.
# https://pnpm.js.org/en/npmrc#color
color=always

# Don't check the workspace root when installing workspace dependencies
ignore-workspace-root-check=true
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"docs:redirects": "cpy ./support/website/_redirects ./support/website/build/_redirects",
"emoji:download": "pnpm ts support/scripts/emoji/download.ts",
"emoji:sprites": "pnpm ts support/scripts/emoji/sprites.ts",
"fix": "run-s -c fix:*",
"fix": "run-s -c fix:\\*",
"fix:build": "preconstruct fix",
"fix:config": "pnpm ts -- support/scripts/generate-configs.ts",
"fix:es": "pnpm lint:es -- --fix",
Expand All @@ -39,7 +39,7 @@
"preinstall": "pnpm symlink:root && pnpm check:pnpm",
"postinstall": "run-s build:dev",
"is-logged-in": "npm whoami",
"lint": "run-s lint:*",
"lint": "run-s lint:\\*",
"lint:build": "preconstruct validate",
"lint:es": "cross-env FULL_ESLINT_CHECK=true eslint -f codeframe --ext=.tsx,.ts,.js .",
"lint:exports": "pnpm run fix:exports -- --check",
Expand Down
2 changes: 1 addition & 1 deletion packages/svgmoji/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "svgmoji",
"version": "0.1.0",
"description": "A sample package from `svgmoji/svgmoji`",
"description": "Consume svg sprites from popular open source emoji libraries.",
"keywords": [],
"homepage": "https://github.com/svgmoji/svgmoji/tree/HEAD/packages/svgmoji",
"repository": "https://github.com/svgmoji/svgmoji/tree/HEAD/packages/svgmoji",
Expand Down
6 changes: 5 additions & 1 deletion packages/svgmoji/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# svgmoji

> A sample package from `svgmoji/svgmoji`
> Consume svg sprites from popular open source emoji libraries.
<br />

Expand Down Expand Up @@ -30,3 +30,7 @@ npm install svgmoji
```

<br />

## Getting Started

More docs to come.
11 changes: 9 additions & 2 deletions packages/svgmoji__blob/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
{
"name": "@svgmoji/blob",
"version": "0.1.0",
"description": "A sample package from `svgmoji/svgmoji`",
"keywords": [],
"description": "The svgmoji sprites for the [`blobmoji`](https://github.com/c1710/blobmoji) library.",
"keywords": [
"emoji",
"svg",
"icons",
"google",
"blobmoji",
"gmail"
],
"homepage": "https://github.com/svgmoji/svgmoji/tree/HEAD/packages/@svgmoji/blob",
"repository": "https://github.com/svgmoji/svgmoji/tree/HEAD/packages/svgmoji__blob",
"license": "MIT",
Expand Down
43 changes: 41 additions & 2 deletions packages/svgmoji__blob/readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# @svgmoji/blob

> The svgmoji sprites for the [`blob-emoji`](https://github.com/googlefonts/blob-emoji) library provided by Google.
> The svgmoji sprites for the [`blobmoji`](https://github.com/c1710/blobmoji) library.
<br />

Expand Down Expand Up @@ -36,7 +36,7 @@ npm install @svgmoji/blob
The following code creates an image with a src applied from the cdn. The first it is used it loads the sprite of all the emojis.

```ts
import { Blobmoji } from '@svgmoji/blobmoji';
import { Blobmoji } from '@svgmoji/blob';
import data from 'svgmoji/emoji.json';

const blobmoji = new Blobmoji({ data, type: 'all' });
Expand All @@ -45,3 +45,42 @@ image.src = blobmoji.getUrl('❤️');

document.body.append(image);
```

### html

<br />
<p align="center">
<a href="#"><img width="40px" height="40px" src="https://cdn.jsdelivr.net/npm/@svgmoji/blob/svg/1F44D.svg" alt="thumbs up" title="thumbs up" /></a>&nbsp;&nbsp;&nbsp;<a href="#"><img width="40px" height="40px" src="https://cdn.jsdelivr.net/npm/@svgmoji/blob/svg/1F600.svg" alt="grinning" title="grinning" /></a>&nbsp;&nbsp;&nbsp;<a href="#"><img width="40px" height="40px" src="https://cdn.jsdelivr.net/npm/@svgmoji/blob/svg/2764.svg" alt="red heart" title="red heart" /></a>&nbsp;&nbsp;&nbsp;<a href="#"><img width="40px" height="40px" src="https://cdn.jsdelivr.net/npm/@svgmoji/blob/svg/1F602.svg" alt="face with tears of joy" title="face with tears of joy" /></a>&nbsp;&nbsp;&nbsp;<a href="#"><img width="40px" height="40px" src="https://cdn.jsdelivr.net/npm/@svgmoji/blob/svg/1F605.svg" alt="grinning face with sweat" title="grinning face with sweat" /></a>&nbsp;&nbsp;&nbsp;<a href="#"><img width="40px" height="40px" src="https://cdn.jsdelivr.net/npm/@svgmoji/blob/svg/1F97A.svg" alt="pleading face" title="pleading face" /></a>&nbsp;&nbsp;&nbsp;<a href="#"><img width="40px" height="40px" src="https://cdn.jsdelivr.net/npm/@svgmoji/blob/svg/1F4A9.svg" alt="pile of poo" title="pile of poo" /></a>&nbsp;&nbsp;&nbsp;<a href="#"><img width="40px" height="40px" src="https://cdn.jsdelivr.net/npm/@svgmoji/blob/svg/1F62D.svg" alt="loudly crying face" title="loudly crying face" /></a>&nbsp;&nbsp;&nbsp;<a href="#"><img width="40px" height="40px" src="https://cdn.jsdelivr.net/npm/@svgmoji/blob/svg/1F60E.svg" alt="smiling face with sunglasses" title="smiling face with sunglasses" /></a>&nbsp;&nbsp;&nbsp;<a href="#"><img width="40px" height="40px" src="https://cdn.jsdelivr.net/npm/@svgmoji/blob/svg/1F631.svg" alt="face screaming in fear" title="face screaming in fear" /></a>
</p>

```html
<!-- Individual -->
<img
width="40px"
height="40px"
src="https://cdn.jsdelivr.net/npm/@svgmoji/blob/svg/1F44D.svg"
alt="thumbs up"
title="thumbs up"
/>

<!-- Subgroup Bundle 36KB -->
<img
width="40px"
height="40px"
src="https://cdn.jsdelivr.net/npm/@svgmoji/blob/sprites/subgroups/face-affection.svg#1F385"
/>

<!-- Group Bundle 421KB -->
<img
width="40px"
height="40px"
src="https://cdn.jsdelivr.net/npm/@svgmoji/blob/sprites/group/smileys-emotion.svg#1F441-FE0F-200D-1F5E8-FE0F"
/>

<!-- Full Bundle 13.2MB -->
<img
width="40px"
height="40px"
src="https://cdn.jsdelivr.net/npm/@svgmoji/blob/sprites/all.svg#1F441-FE0F-200D-1F5E8-FE0F"
/>
```
2 changes: 1 addition & 1 deletion packages/svgmoji__blob/sprites/all.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/svgmoji__blob/sprites/group/activities.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/svgmoji__blob/sprites/group/animals-nature.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/svgmoji__blob/sprites/group/component.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/svgmoji__blob/sprites/group/flags.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/svgmoji__blob/sprites/group/food-drink.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/svgmoji__blob/sprites/group/objects.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/svgmoji__blob/sprites/group/people-body.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/svgmoji__blob/sprites/group/smileys-emotion.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/svgmoji__blob/sprites/group/symbols.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/svgmoji__blob/sprites/group/travel-places.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/svgmoji__blob/sprites/subgroup/alphanum.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/svgmoji__blob/sprites/subgroup/animal-bird.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/svgmoji__blob/sprites/subgroup/animal-bug.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/svgmoji__blob/sprites/subgroup/animal-mammal.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/svgmoji__blob/sprites/subgroup/animal-marine.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/svgmoji__blob/sprites/subgroup/animal-reptile.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ff19a3c

Please sign in to comment.