ocasta-react-scripts
Custom Ocasta configuration and scripts for Create React App.
Last updated a month ago by mmenard .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ocasta-react-scripts 
SYNC missed versions from official npm registry.

ocasta-react-scripts

This package includes custom scripts and configuration used by Create React App.

Our changes:

  • allow absolute path imports by providing an alias to /src as AppSrc

  • also expose AppSrc alias to eslint and jest

  • eslint in webpack takes any custom config: put your custom .eslintrc. in the root folder of your starter app. In order for it to see AppSrc alias, you may need to use .eslintrc.js instead so you can import paths from it, without this eslint thinks they are unresolved imports:

    const path = require('path');

    'settings': { 'import/resolver': { alias: { map: [ ['AppSrc', path.resolve(__dirname, './src')], ] }, 'webpack': { 'config': './node_modules/ocasta-react-scripts/config/webpack.config.js' } } },

  • remove facebook's custom formatting of the webpack console output and put back the default more verbose one. The reason for that is Facebook only showed linting errors for the last processed file so you were forced to fix files in a specific order with no clue how long it would take to get your code up to scratch. The default webpack output shows everything that is wrong with all the files so it is more helpful to the developer: you can evaluate workload and fix errrors in order of convenience.

  • change typescript definitions path to our module ocasta-react-scripts

  • tslint for typescript, taking a custom config like eslint

To make a starter app with create-react-app and this customised config, please run:

npx create-react-app test-app --scripts-version ocasta-react-scripts

Please refer to its documentation:

Current Tags

  • 1.0.1                                ...           latest (a month ago)

18 Versions

  • 1.0.1                                ...           a month ago
  • 0.2.15                                ...           3 months ago
  • 0.2.14                                ...           3 months ago
  • 0.2.13                                ...           4 months ago
  • 0.2.12                                ...           5 months ago
  • 0.2.11                                ...           5 months ago
  • 0.2.10                                ...           5 months ago
  • 0.2.9                                ...           5 months ago
  • 0.2.8                                ...           5 months ago
  • 0.2.7                                ...           5 months ago
  • 0.2.6                                ...           5 months ago
  • 0.2.5                                ...           5 months ago
  • 0.2.4                                ...           5 months ago
  • 0.2.3                                ...           5 months ago
  • 0.2.2                                ...           5 months ago
  • 0.2.1                                ...           5 months ago
  • 0.2.0                                ...           5 months ago
  • 0.1.0                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 19
Last Day 0
Last Week 19
Last Month 34
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |