Skip to content
forked from FreeIess/TOMATOX

基于Electron、React开发的全网在线免费VIP视频解析播放器,美剧、韩剧、日剧全资源,全平台(Windows、Linux、MacOS)可用

License

Notifications You must be signed in to change notification settings

hijiaosir/TOMATOX

Repository files navigation

TOMATOX

TOMATOX

A Online video player with TypeScript, React, and Electron.

React Webpack TypeScript Electron

Electron application boilerplate based on React and Webpack for rapid application development using TypeScript.

Screenshot

image

Install

Clone the repository with Git:

git clone --depth=1 [email protected]:yanjiaxuan/TOMATOX.git <your-project-name>

And then install the dependencies:

cd <your-project-name>
npm install

Usage

Both processes have to be started simultaneously in different console tabs:

npm run start-renderer-dev
npm run start-main-dev

This will start the application with hot-reload so you can instantly start developing your application.

You can also run do the following to start both in a single process:

npm run start-dev

Packaging

We use Electron builder to build and package the application. By default you can run the following to package for your current platform:

npm run dist

This will create a installer for your platform in the releases folder.

You can make builds for specific platforms (or multiple platforms) by using the options found here. E.g. building for all platforms (Windows, Mac, Linux):

npm run dist -- -mwl

Husky and Prettier

This project comes with both Husky and Prettier setup to ensure a consistent code style.

To change the code style, you can change the configuration in .prettierrc.

In case you want to get rid of this, you can removing the following from package.json:

  1. Remove precommit from the scripts section
  2. Remove the lint-staged section
  3. Remove lint-staged, prettier, eslint-config-prettier, and husky from the devDependencies

Also remove all mentions of Prettier from the extends section in .eslintrc.json.

License

MIT © yanjiaxuan

About

基于Electron、React开发的全网在线免费VIP视频解析播放器,美剧、韩剧、日剧全资源,全平台(Windows、Linux、MacOS)可用

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 74.6%
  • SCSS 11.2%
  • JavaScript 9.2%
  • CSS 3.6%
  • HTML 1.4%