Skip to content

Commit

Permalink
assets: add sticker
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbr committed Jan 4, 2024
1 parent babb548 commit 28e8ffb
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ _This is still very much work in progress_\

---

The ISC License _does not apply_ to any of the files in the `/assets/stickers` directory

The copperflame logo is based on the [Fire Emoji](https://github.com/microsoft/fluentui-emoji/blob/main/assets/Fire/Flat/fire_flat.svg) from the [Microsoft Fluent Emoji Set](https://github.com/microsoft/fluentui-emoji) which is licensed under the [MIT License](https://github.com/microsoft/fluentui-emoji/blob/main/LICENSE)
Binary file added assets/stickers/Arson/Arson.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/stickers/Arson/Arson.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A dragon named Arson with black fur and neon green eyes and hair. They're wearing a cyberpunk-inspired jacket with green illuminated elements on the shoulders and neck.
1 change: 1 addition & 0 deletions assets/stickers/Arson/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Character belongs to @nzbr. Artwork by [Sir Lorart](https://twitter.com/Sir_Lorart)
5 changes: 5 additions & 0 deletions assets/stickers/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The files in this directory are not covered by the ISC License!

All rights reserved.

Credit to the authors is given in the README file in each subdirectory.
4 changes: 3 additions & 1 deletion web/html-postprocessors/speechbubbles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ import { toPosixPath } from '@nzbr/parcel-transformer-postprocess-html';

export const name = 'speechbubbles';

export function fn({ $, asset, options, config }: StepInputs): void {
export function fn({ $, asset, options, config, logger }: StepInputs): void {
const projectRoot = toPosixPath(options.projectRoot);
const possibleCopperflameRoot = path.posix.join(projectRoot, 'node_modules', '@nzbr', 'copperflame');
const root = fs.existsSync(possibleCopperflameRoot) ? possibleCopperflameRoot : projectRoot;
const stickers = config.stickerPath ?? path.posix.join(root, 'assets', 'stickers');

logger.info({message: `Using stickers from ${stickers}`});

asset.invalidateOnFileCreate({
glob: path.posix.join(stickers, '*'),
});
Expand Down

0 comments on commit 28e8ffb

Please sign in to comment.