Skip to content

Commit

Permalink
fix: publish folders
Browse files Browse the repository at this point in the history
  • Loading branch information
shanimal08 committed Jan 31, 2025
1 parent 672accf commit ead6e4c
Show file tree
Hide file tree
Showing 14 changed files with 2,439 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ jobs:
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_PUBLISH_TOKEN }}
package: dist
access: 'public'
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pnpm-debug.log*
lerna-debug.log*

node_modules
/dist/
#/dist/
dist-ssr
*.local

Expand Down
33 changes: 33 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

/src/
/lib/
/public/
index.html
.npmrc
vite.config.ts
tsconfig*
package-lock.json
eslint.config.js
35 changes: 35 additions & 0 deletions dist/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# tari-tower

Source for the tower animation used in [_Tari Universe_](https://github.com/tari-project/universe).

### Installation

```bash
npm i @tari-project/tari-tower
```

## Usage

Initialise

```tsx
import { loadTowerAnimation } from '@tari-project/tari-tower';

loadTowerAnimation();
```

Available methods:

| name | args | description |
| ------------------------ | ------------------------------------------------------------------------------------------------ | -------------------------------------------------- |
| `loadTowerAnimation` | **canvasId**: `string` <br/> **offset?**: `number` | initialise all the animation logic + canvas |
| `removeTowerAnimation` | `none` | stop the animation and remove canvas |
| `setAnimationState` | **id**: `'start'\|'stop'\|'fail'\|'sucess'\|'sucess2'\|'sucess3'` <br/> **isReplay?:** `boolean` | set the animation state |
| `setAnimationProperties` | properties:`{property:string; value:unknown}[]` | set properties (e.g colours in dark vs light mode) |

Available values:

| name | description |
| ---------------------- | --------------------------------------------------------------------------- |
| `animationStatus` | the state of the animation |
| `animationStatusIndex` | the index of the animation state (useful as a trigger in dependencya array) |
Binary file added dist/assets/models/BASE.buf
Binary file not shown.
Binary file added dist/assets/models/BOX.buf
Binary file not shown.
Binary file added dist/assets/models/COIN.buf
Binary file not shown.
Binary file added dist/assets/models/COIN_PLACEMENT.buf
Binary file not shown.
Binary file added dist/assets/models/LOSE_ANIMATION.buf
Binary file not shown.
Binary file added dist/assets/textures/LDR_RGB1_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions dist/assets/textures/LICENSES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[LDR_RGB1_0.png]
https://momentsingraphics.de/BlueNoise.html

[gobo.jpg]
???

[matcap_gold.jpg]
Generated in Blender
Binary file added dist/assets/textures/gobo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/textures/matcap_gold.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ead6e4c

Please sign in to comment.