-
No babel!
-
Ultra performance
-
Webpack 2 (simple one-file config, separate vendor bundle, dashboard)
-
Setup for
ts-loader
andawesome-typescript-loader
for comparison (checknpm run dev
ornpm run dev:awesome
)
- project optimized to use yarn
// Clone repo
git clone https://github.com/piotrwitek/react-redux-typescript-webpack-starter
// Install dependencies
npm install
// Run development server with react hot-reload
npm run dev (ts-loader)
npm run dev
- start dev-server with hot-reload (ts-loader)
npm run dev:dashboard
- start dev-server with webpack-dashboard
npm run dev:awesome
- start dev-server with awesome-typescript-loader
npm run tsc
- entire project type-check
npm run tsc:watch
- fast incremental type-checking in watch mode
npm run clean
- clean dist
npm run build
- build dist bundle
npm run reinstall
- reinstall all dependencies (useful when switching branch) (note: use reinstall:win
on Windows)
npm run lint
- run linter (tslint)
npm run test
- run tests with jest runner
npm run test:update
- update jest snapshots
npm run precommit
- pre commit git hook - linter
npm run prepush
- pre push git hook - linter, tests and check types
npm run deploy
- commit and push all changes found in /dist
folder to "gh-pages" branch
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.