0.1.40 • Published 5 months ago

parax-perp v0.1.40

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

ParaX Mini App Template

Usage

This is a sub-project and it can't run on its own. It needs to be integrated into the main project.

1. Dev

1.1 Link

Make the main project link to this sub-project

# cd <this project>
cd <your-sub-project-dir>
pnpm install
pnpm build # or pnpm dev
pnpm link --dir <your-main-project-dir>
# example: pnpm link --dir ../parax

Once the sub-project is linked, you can run the main project to see the changes.

Note: You need to run pnpm build every time you make changes to the sub-project

1.2 Unlink

cd <your-main-project-dir>
pnpm unlink <your-sub-project-dir>
# example: pnpm unlink ../parax-mini-app

# or
cd <your-sub-project-dir>
pnpm unlink --dir <your-main-project-dir>
# example: pnpm unlink --dir ../parax

2. Prod

Publish as a npm package (e.g. parax-mini-app), and install it in the main project

pnpm add parax-mini-app

3. Integration

import miniApp from 'parax-mini-app';
import { AppPackage } from 'parax-sdk';

const miniAppPKG: AppPackage = { ...miniApp, icon: `design/logo/${miniApp.icon}` }
0.1.40

5 months ago

0.1.39

5 months ago

0.1.38

5 months ago

0.1.37

5 months ago

0.1.36

5 months ago

0.1.35

5 months ago

0.1.34

5 months ago

0.1.33

5 months ago

0.1.32

5 months ago

0.1.31

6 months ago

0.1.30

6 months ago

0.1.29

6 months ago

0.1.28

6 months ago

0.1.27

6 months ago

0.1.26

6 months ago

0.1.25

6 months ago

0.1.24

6 months ago

0.1.23

6 months ago

0.1.22

6 months ago

0.1.21

6 months ago

0.1.20

6 months ago

0.1.18

6 months ago

0.1.17

6 months ago

0.1.16

6 months ago

0.1.15

6 months ago

0.1.14

6 months ago

0.1.13

6 months ago

0.1.12

6 months ago

0.1.11

6 months ago

0.1.9

6 months ago

0.1.8

6 months ago

0.1.7

6 months ago

0.1.6

6 months ago

0.1.5

6 months ago

0.1.4

7 months ago

0.1.3

7 months ago

0.1.2

7 months ago

0.1.1

7 months ago

0.1.0

7 months ago