Skip to content

Alioth1017/sdk-scaffold

Repository files navigation

sdk-scaffold

A sdk scaffold with vite & typescript.

Start

git clone --depth=1 https://github.com/Alioth1017/sdk-scaffold my-sdk
cd my-sdk
pnpm i

config change

//  sdk.config.ts
···
    lib: {
        entry: path.resolve(__dirname, "src/main.tsx"),
        /**
         * The name of the exposed global variable. Required when the `formats` option includes
         * `umd` or `iife`
         */
        name: "[SDK]",
        fileName: (format) => `[your sdk file name].${format}.js`,
    },
···
//  package.json
{
    "name": "[your sdk project name]",
    ···
    "main": "./dist/[your sdk file name].umd.js",
    "module": "./dist/[your sdk file name].es.js",
}

dev

pnpm dev

build

pnpm build

About

A sdk scaffold with typescript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published