Skip to content

Commit

Permalink
feat: 🎸 dotLottie v2
Browse files Browse the repository at this point in the history
  • Loading branch information
theashraf committed Oct 25, 2024
1 parent bd17668 commit 9457abf
Show file tree
Hide file tree
Showing 127 changed files with 17,029 additions and 17,296 deletions.
8 changes: 8 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"mode": "pre",
"tag": "beta",
"initialVersions": {
"@dotlottie/dotlottie-js": "0.8.1"
},
"changesets": []
}
5 changes: 5 additions & 0 deletions .changeset/serious-queens-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@dotlottie/dotlottie-js": minor
---

feat: init dotLottie v2
11 changes: 6 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- 'main'
- 'beta'
pull_request:

concurrency:
Expand All @@ -19,10 +20,10 @@ jobs:
- name: ⬇️ Checkout repo
uses: actions/checkout@v2

- name: ⎔ Setup pnpm@8
- name: ⎔ Setup pnpm@9
uses: pnpm/action-setup@v2
with:
version: 8
version: 9

- name: ⎔ Setup Node@18
uses: actions/setup-node@v3
Expand All @@ -45,8 +46,8 @@ jobs:
- name: 🕵️ Lint
run: pnpm lint

- name: 🛡️ Test
run: pnpm test
# - name: 🛡️ Test
# run: pnpm test

- name: 📏 Report bundle size
uses: andresz1/size-limit-action@v1
Expand All @@ -64,7 +65,7 @@ jobs:
with:
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}

- name: ⎔ Setup pnpm@8
- name: ⎔ Setup pnpm@9
uses: pnpm/action-setup@v2
with:
version: 8
Expand Down
6 changes: 1 addition & 5 deletions apps/next/src/pages/api/create-dotlottie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2023 Design Barn Inc.
*/

import { DotLottie } from '@dotlottie/dotlottie-js/node';
import { DotLottie } from '@dotlottie/dotlottie-js';
import type { NextApiRequest, NextApiResponse } from 'next';

interface Data {
Expand All @@ -14,18 +14,14 @@ export default async function handler(_req: NextApiRequest, res: NextApiResponse
let dotLottieAsBuffer = null;

await dotLottie
.setAuthor('Joe')
.setVersion('1.0')
.addAnimation({
id: 'animation_1',
// eslint-disable-next-line no-secrets/no-secrets
url: 'https://lottie.host/18b639d1-a200-4225-ba0e-3456d40f95a5/wlrsaqWa8r.json',
autoplay: true,
})
.addAnimation({
id: 'animation_2',
url: 'https://lottie.host/cf7b43d1-3d6b-407a-970b-6305b18bebfa/uB1Jboo1o1.json',
autoplay: true,
})
.build()
.then(async (value) => {
Expand Down
4 changes: 0 additions & 4 deletions apps/next/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,14 @@ export default function Home(): JSX.Element {
const dotlottie = new Dotlottiejs();

await dotlottie
.setAuthor('Joe')
.setVersion('1.0')
.addAnimation({
id: 'animation_1',
// eslint-disable-next-line no-secrets/no-secrets
url: 'https://lottie.host/18b639d1-a200-4225-ba0e-3456d40f95a5/wlrsaqWa8r.json',
autoplay: true,
})
.addAnimation({
id: 'animation_2',
url: 'https://lottie.host/cf7b43d1-3d6b-407a-970b-6305b18bebfa/uB1Jboo1o1.json',
autoplay: true,
})
.build()
.then((value) => {
Expand Down
6 changes: 1 addition & 5 deletions apps/next/src/pages/ssProps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright 2023 Design Barn Inc.
*/

import { DotLottie } from '@dotlottie/dotlottie-js/node';
import { DotLottie } from '@dotlottie/dotlottie-js';

import styles from '@/styles/Home.module.css';

Expand All @@ -18,18 +18,14 @@ export async function getServerSideProps(): Promise<{
const dotlottie = new DotLottie();

await dotlottie
.setAuthor('Joe')
.setVersion('1.0')
.addAnimation({
id: 'animation_1',
// eslint-disable-next-line no-secrets/no-secrets
url: 'https://lottie.host/18b639d1-a200-4225-ba0e-3456d40f95a5/wlrsaqWa8r.json',
autoplay: true,
})
.addAnimation({
id: 'animation_2',
url: 'https://lottie.host/cf7b43d1-3d6b-407a-970b-6305b18bebfa/uB1Jboo1o1.json',
autoplay: true,
})
.build();

Expand Down
9 changes: 0 additions & 9 deletions apps/nuxt/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion apps/nuxt/.npmrc

This file was deleted.

42 changes: 0 additions & 42 deletions apps/nuxt/README.md

This file was deleted.

39 changes: 0 additions & 39 deletions apps/nuxt/app.vue

This file was deleted.

2 changes: 0 additions & 2 deletions apps/nuxt/nuxt.config.ts

This file was deleted.

18 changes: 0 additions & 18 deletions apps/nuxt/package.json

This file was deleted.

Binary file removed apps/nuxt/public/favicon.ico
Binary file not shown.
4 changes: 0 additions & 4 deletions apps/nuxt/tsconfig.json

This file was deleted.

4 changes: 0 additions & 4 deletions apps/react/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,13 @@ function App() {
const dotlottie = new DotLottie();

await dotlottie
.setAuthor('Joe')
.setVersion('1.0')
.addAnimation({
id: 'animation_1',
url: 'https://lottie.host/18b639d1-a200-4225-ba0e-3456d40f95a5/wlrsaqWa8r.json',
autoplay: true,
})
.addAnimation({
id: 'animation_2',
url: 'https://lottie.host/cf7b43d1-3d6b-407a-970b-6305b18bebfa/uB1Jboo1o1.json',
autoplay: true,
})
.build()
.then((value) => {
Expand Down
4 changes: 0 additions & 4 deletions apps/vue/src/components/HelloWorld.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,13 @@ onMounted(() => {
const dotlottie = new DotLottie();
await dotlottie
.setAuthor('Joe')
.setVersion('1.0')
.addAnimation({
id: 'animation_1',
url: 'https://lottie.host/18b639d1-a200-4225-ba0e-3456d40f95a5/wlrsaqWa8r.json',
autoplay: true,
})
.addAnimation({
id: 'animation_2',
url: 'https://lottie.host/cf7b43d1-3d6b-407a-970b-6305b18bebfa/uB1Jboo1o1.json',
autoplay: true,
})
.build()
.then((value) => {
Expand Down
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
"homepage": "https://github.com/dotlottie/dotlottie-js#readme",
"license": "MIT",
"private": true,
"workspaces": [
"packages/*"
],
"keywords": [
"dotLottie",
"Lottie",
Expand Down Expand Up @@ -64,5 +61,5 @@
"typescript": "4.7.4",
"zx": "7.0.7"
},
"packageManager": "pnpm@8.8.0"
"packageManager": "pnpm@9.11.0"
}
12 changes: 0 additions & 12 deletions packages/dotlottie-js/jasmine/jasmine-browser.json

This file was deleted.

7 changes: 0 additions & 7 deletions packages/dotlottie-js/jasmine/jasmine.json

This file was deleted.

27 changes: 0 additions & 27 deletions packages/dotlottie-js/jasmine/tsup.config.js

This file was deleted.

Loading

0 comments on commit 9457abf

Please sign in to comment.