@baristalabs/react-scripts-ts-ce
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-ce 
SYNC missed versions from official npm registry.

react-scripts-ts-ce

Create React App Scripts for TypeScript and React powered Chrome Extensions

Createa a chrome extension using create-react-app with:

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

start the application with

$ yarn start

Load the extension in chrome with:

  1. Open chrome://extensions
  2. Check Developer Mode
  3. Click on Load Unpacked Extension
  4. Select the build folder.

This package includes scripts and configuration used by Create React App.
Please refer to its documentation:

Additional Resources ---(https://github.com/facebookincubator/create-react-app/blob/master/README.md#getting-started) – How to create a new app.

  • User Guide – How to develop apps bootstrapped with Create React App.

Enhancements:

  • Typescript Support via Awesome-Typescript-Loader & tslint support.
  • Additional loaders: scss-loader, worker-loader, raw-loader
  • Webpack 3.x support.
  • Includes default code-split entry points for runtime and vendor.

Loader support in Typescript:

update tsconfig.json and add loaders via:

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

See: https://github.com/Microsoft/TypeScript/issues/10988 Incorporates suggestions from https://developer.epages.com/blog/tech-stories/typescript-codesplitting-treeshaking/ for code splitting and tree shaking.

Current Tags

  • 2.9.3                                ...           latest (2 years ago)

13 Versions

  • 2.9.3                                ...           2 years ago
  • 2.9.2                                ...           2 years ago
  • 2.9.1                                ...           2 years ago
  • 2.9.0                                ...           2 years ago
  • 0.0.9                                ...           2 years ago
  • 0.0.8                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 14
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |