https://github.com/idorobots/typescript-react-webpack-karma-electron-seed
A seed project using TypeScript 2.0 along with React, Webpack, Karma and Electron.
https://github.com/idorobots/typescript-react-webpack-karma-electron-seed
electron karma react seed starter-project webpack
Last synced: 2 months ago
JSON representation
A seed project using TypeScript 2.0 along with React, Webpack, Karma and Electron.
- Host: GitHub
- URL: https://github.com/idorobots/typescript-react-webpack-karma-electron-seed
- Owner: Idorobots
- Created: 2016-10-13T16:53:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-01T01:00:16.000Z (over 9 years ago)
- Last Synced: 2025-04-07T00:36:36.369Z (about 1 year ago)
- Topics: electron, karma, react, seed, starter-project, webpack
- Language: JavaScript
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TypeScript 2.0 + React + Webpack + Karma + Electron
This is a seed project that does the following:
- Lints:
+ the code using **TS lint**,
+ styles using **stylelint**.
- Tests the code using **Karma** and **Jasmine**:
+ on **PhantomJS**, **Chrome**, **Firefox** and **Electron** (`npm run test`),
+ only on **PhantomJS** (`npm run test:ci`, suitable for CI),
+ on all browsers with live-reload (`npm run test:watch`).
- Generates coverage report using **Istanbul** & **istanbul-remap**.
- Builds TypeScript sources with **Webpack** generating:
+ a minified, distributable **ES5** file with **React** et. all in a separate file,
+ complementary **type declarations**,
+ matching **sourcemaps**.
- Bundles assets, styles & HTML.
- Generates documentation using **Typedoc**.
- Packages produced files into:
+ distributable Electron app (`npm run package-app`),
+ package along with type declarations (`npm pack`).
## Building:
```
npm install
npm run build
npm run build:watch
npm run package-app
```
## Testing:
```
npm test
npm run test:ci
npm run test:watch
```
## Running:
```
npm start
```