Giter Site home page Giter Site logo

react-typescript-electron-template's Introduction

動作環境

node.js 12.21.0
npm 6.14.11
yarn 1.22.4

install

nodebrew での方法を記載

nodebrew install-binary 12.21.0
nodebrew use 12.21.0

(CSS ModuleのDefinitly Typedファイル生成のためのコマンドをグローバルインストールする)
yarn global add typed-css-modules

Quramy/typed-css-modules: Creates .d.ts files from CSS Modules .css files

プロジェクトにインストールされているライブラリ

(ElectronとTypeSciprt関連)
yarn -D add electron typescript ts-node @types/node

(React)
yarn add react react-dom
(React型定義)
yarn -D add @types/react @types/react-dom

(ESLint と Prettier)
yarn -D add eslint prettier eslint-config-prettier
(TypeScript用ESLint)
yarn -D add @typescript-eslint/parser @typescript-eslint/eslint-plugin
(React関連プラグイン)
yarn -D add eslint-plugin-react eslint-plugin-react-hooks

(Webpack)
yarn -D add webpack webpack-cli webpack-dev-server @types/webpack-dev-server
(Webpackローダー)
yarn -D add ts-loader css-loader
(プラグインとその型定義ファイル)
yarn -D add mini-css-extract-plugin copy-webpack-plugin @types/mini-css-extract-plugin @types/copy-webpack-plugin
(バンドルされたJavaScriptファイルをHTMLの<script>タグに差し込むためのプラグイン)
yarn -D add html-webpack-plugin @types/html-webpack-plugin

(CSSリセッター)
yarn add reseter.css

(Electron devtools関連)
yarn -D add electron-devtools-installer

(ユーティリティ)
yarn -D add rimraf cross-env npm-run-all

プロジェクトの構造

.
├── README.md
├── package.json
├── src
│   ├── @types
│   │   └── global.d.ts
│   ├── images
│   │   ├── img.d.ts
│   │   └── template16x16.png
│   ├── main
│   │   ├── ipc
│   │   │   └── ipcActions.ts
│   │   ├── lib
│   │   │   ├── Const.ts
│   │   │   ├── ReactDevtools.ts
│   │   │   ├── Tray.ts
│   │   │   └── Windows.ts
│   │   ├── main.ts
│   │   └── preload.ts
│   └── renderer
│       └── mainView
│           ├── components
│           │   └── mainView.tsx
│           ├── index.html
│           ├── renderer.tsx
│           └── styles
│               ├── app.module.css
│               ├── app.module.css.d.ts
│               ├── mainView.module.css
│               └── mainView.module.css.d.ts
├── tsconfig.json
├── webpack.config.ts
└── yarn.lock

react-typescript-electron-template's People

Contributors

leeddhh avatar

Watchers

James Cloos avatar  avatar

Forkers

liubailing

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.