1 Star 1 Fork 0

nur/electron-react-typescript-webpack-boilerplate

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CHANGELOG.md 4.27 KB
一键复制 编辑 原始数据 按行查看 历史
Wing Chau 提交于 5年前 . Update CHANGELONG

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

2.0.2 - 2019-12-02

v2.0.2 is a minor hotfix release fixed the documentation error and build error on macOS Catalina(10.15+).

Added

  • Extended README section Getting started with npm start command description.
  • README section Known issue.

Changed

  • Minor version upgrades on package dependencies.
  • macOS build target to pkg from default dmg due to no 32-bit apps support from macOS Catalina that caused electron-builder fails to build dmg image on macOS prior to electron-builder@21.2.0.
    pkg build is unaffected and is used as a workaround for the current version prior to the major version upgrades on dependencies in next release.
    Related issue: electron-builder #3990

Fixed

  • Issue #2 - incorrect command npm run install to npm install in README.

2.0.1 - 2018-02-05

v2.0.1 is a minor hotfix release patched the NODE_ENV not set on Windows issue.

Added

  • Package cross-env as devDependencies.
  • README section "Author".

Fixed

  • NPM scripts won't set environment variables on Windows issue.

2.0.0 - 2018-02-04

v2.0.0 is a major release that most part of the boilerplate has been rewritten.

Added

  • ESLint for code checking on Javascript files.
  • Airbnb's extensible .eslintrc package & its' peer dependencies.
  • .eslintrc that extends Airbnb's config and has customised rules configured.
    • Rule no-default-export is set for JavaScript files to align with TypeScript.
  • ESLint plugin eslint-import-resolver-webpack for ESLint to resolve path aliases set in Webpack config.
  • Webpack plugin copy-pkg-json-webpack-plugin to generate a package.json file and pack into Webpack's bundled package for production.
  • Build commands build:mac & build:win to package & build the installer of your Electron app for macOS & Windows using electron-builder.
  • README section "Building the installer for your Electron app" & sub-section "Extra options".

Changed

  • Refactored Webpack config file to have mainConfig & rendererConfig cleaned up, and set mode by environment variable.
  • .gitignore to ignore folder out/ which will be auto-generated during the build process.
  • README section "How does it work?" is now renamed to "Getting started" & completed the documentation of this section.
  • README section "Folder structure" to reflect the changes in v2.0.0.

Fixed

  • CSS files fail to inject into views issue by setting Webpack to use style-loader alongside with css-loader to bundle the files in Webpack config file.
  • baseUrl in tsconfig.json points to root directory incorrectly issue. Corrected to current directory so VSCode can resolves the path aliases correctly.

Removed

  • Redux & React-Redux related settings, including packages listed on devDependencies, path aliases & folders listed in folder structure.
    • Since Electron's built-in IPC & basic React states should be enough to get the works done, and most Electron apps which have their application logic runs on Electron's main process rather then renderer process actually don't need React-Redux, redux & react-redux are no longer included in this boilerplate.
    • Redux & React-Redux can still be used on this boilerplate by installing the package yourself. For details, please refer to the corresponding library's documents, there's no different than working on any other project which isn't based on this boilerplate.
  • Separated Webpack config files for development & production mode.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/nur/electron-react-typescript-webpack-boilerplate.git
git@gitee.com:nur/electron-react-typescript-webpack-boilerplate.git
nur
electron-react-typescript-webpack-boilerplate
electron-react-typescript-webpack-boilerplate
master

搜索帮助