@baristalabs/react-scripts-ts
Configuration and scripts for Create React App.
Last updated 2 years ago by baristalabs .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @baristalabs/react-scripts-ts 
SYNC missed versions from official npm registry.

react-scripts-ts

This package forks create-react-app-typescript and adds additional loaders, plugins and newer webpack usage as described below.

Getting Started

$ create-react-app my-ts-app --scripts-version=@baristalabs/react-scripts-ts

Additional Resources

Enhancements over create-react-app-typescript:

  • Better Typescript Support via Awesome-Typescript-Loader & tslint support.
    • Note: some of the benefits of awesome-typescript-loader have been superceeded - both babel and fork checking is now in ts-loader, so... will re-evaluate later.
    • fork-ts-checker-webpack-plugin doesn't seem to be picking up configuration and is looking at all files, not just /src/**.*
  • Polyfills via core.js
  • Additional loaders:
    • scss-loader (*.scss and inline)
    • worker-loader (*.worker.js and inline)
    • raw-loader (.tsc .tsxc and inline)
  • Webpack 3.x support.
  • Produces runtime/vendor/main files as seperate chunks
  • Incorporates suggestions for code splitting and tree shaking.

Loader support in Typescript:

update tsconfig.json and add loaders via:

"compilerOptions" {
    "paths": {
        "loader!*" : ["*"]
    }
}

See: https://github.com/Microsoft/TypeScript/issues/10988

Current Tags

  • 2.11.8                                ...           latest (2 years ago)

22 Versions

  • 2.11.8                                ...           2 years ago
  • 2.11.7                                ...           2 years ago
  • 2.11.6                                ...           2 years ago
  • 2.11.5                                ...           2 years ago
  • 2.11.4                                ...           2 years ago
  • 2.11.3                                ...           2 years ago
  • 2.11.2                                ...           2 years ago
  • 2.11.1                                ...           2 years ago
  • 2.11.0                                ...           2 years ago
  • 2.10.6                                ...           2 years ago
  • 2.10.5                                ...           2 years ago
  • 2.10.4                                ...           2 years ago
  • 2.10.3                                ...           2 years ago
  • 2.10.2                                ...           2 years ago
  • 2.10.1                                ...           2 years ago
  • 2.10.0                                ...           2 years ago
  • 2.9.5                                ...           2 years ago
  • 2.9.4                                ...           2 years ago
  • 2.9.3                                ...           2 years ago
  • 2.9.2                                ...           2 years ago
  • 2.9.1                                ...           2 years ago
  • 2.9.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 22
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |