Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Files

Latest commit

 

History

History
48 lines (35 loc) · 929 Bytes

CONTRIBUTING.md

File metadata and controls

48 lines (35 loc) · 929 Bytes

Contributing

Below introduces & instructs you how to contribute to the project.

Installing dependencies

    npm install
    composer install

Initializing the project

You should config database connection in .env file.

    php -r "file_exists('.env') || copy('.env.example', '.env');"
    php artisan key:generate
    php artisan migrate

Generating helper files for php IDE & typescript files

    php artisan ide-helper:generate
    php artisan ide-helper:meta
    php artisan ide-helper:models --nowrite
    php artisan typescript:transform

To register a php type to generate typescript files

Firstly you Secondly you should add @typescript phpdoc to php type

    /** @typescript */
    class FetchedCardType
    {
        //
    }

Secondly you should run special command to generate it to typescript

    php artisan typescript:transform