TheArcadiaGroup / gosuto-wallet-desktop-svelte

Gosuto Desktop App, private repo for development, eventually publishes to "GosutoWallet" public repo.
Other
1 stars 0 forks source link
casper-network cryptocurrency-wallet svelte wallet

Gosuto Wallet

DO NOT UPDATE TO ELECTRON v21 WITHOUT THIS ISSUE BEING FIXED

Electron 21 Issue

Warning

This version is incompatible with the previous version

Technologies

Sveltekit + Electron + Tailwindcss

Getting Started

*Feel free to substitute npm with pnpm or yarn.

Install · npm install
Develop · npm run dev
Build · npm run build:all => Builds Mac (dmg), Windows, and Linux Packages
Build · npm run build:mac => Builds Mac (dmg) package
Build · npm run build:win => Builds Windows Package
Build · npm run build:linux => Builds Linux Package

Recommended IDE Setup

VSCode + Svelte for VSCode

Recommended File Structure

There are several directories one needs to keep in mind when working with the app during development. Al the directories listed below are in the src directory and have aliases linked to them allowing for imports done in this manner; $stores/{FileName}. Specifically;

Automatic Formating on Github

The repository currently uses Husky pre-commit hooks to format the code based on the .prettierrc file. This automatically kicks in before the files are added to the commit. If successful, a message similar to the one shown in the screenshot below will be shown. image

Suggested Component Development Approach

Owing to the fact that there is no theme initialized in the tailwind files, these will have to be added as development proceeds. In this case, one would confirm that the color of the component they want to add does not yet exist and if it doesn't, it should be added to either the dark or light theme sections in the tailwind.config.cjs file in the sections indicated below.

    theme: {
        extend: {
            colors: {
                ...require('tailwindcss/defaultTheme').colors,
                // Add other colors (theme here)
                dark: {
                    // Light Theme Colors
                },
                light: {
                    // Dark Theme Colors
                },
            },
        },
    },