parax-airdrop
TypeScript icon, indicating that this package has built-in type declarations

0.1.37 • Public • Published

ParaX Airdrop Mini App

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
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-airdrop

# 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-airdrop), and install it in the main project

pnpm add parax-airdrop

and then,

import airdropApp from 'parax-airdrop';
import { AppPackage } from 'parax-sdk';

const airdropAppPKG: AppPackage = { ...airdropApp, icon: `design/logo/${airdropApp.icon}` };

/parax-airdrop/

    Package Sidebar

    Install

    npm i parax-airdrop

    Weekly Downloads

    2

    Version

    0.1.37

    License

    ISC

    Unpacked Size

    546 kB

    Total Files

    741

    Last publish

    Collaborators

    • parallel-fi