@jvhellemondt/react-scripts-plus
React-scripts with Jest extended and component alias
Last updated 2 months ago by jvhellemondt .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @jvhellemondt/react-scripts-plus 
SYNC missed versions from official npm registry.

Jest extended

Following files are enabled for jest testing:

/private/jest/setupTests.js
/private/jest/fileMock.js
/private/jest/componentsMock.js
/private/jest/selectorsMock.js
/private/jest/actionsMock.js

Components alias

Dynamically export components -> the components alias is activated. import { xxx } from 'components'. Make sure to create a index.js with the following code:

const req = require.context('.', true, /\.\/[^/]+\/[^/]+\/index\.js$/)

req.keys().forEach((key) => {
  const componentName = key.replace(/^.+\/([^/]+)\/index\.js/, '$1')
  module.exports[componentName] = req(key).default
})

// https://github.com/diegohaz/arc/wiki/Atomic-Design#do-not-worry

react-scripts

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

Current Tags

  • 1.0.8                                ...           latest (2 months ago)

9 Versions

  • 1.0.8                                ...           2 months ago
  • 1.0.7                                ...           4 months ago
  • 1.0.6                                ...           4 months ago
  • 1.0.5                                ...           4 months ago
  • 1.0.4                                ...           4 months ago
  • 1.0.3                                ...           4 months ago
  • 1.0.2                                ...           4 months ago
  • 1.0.1                                ...           4 months ago
  • 1.0.0                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 9
This Month 9
Last Day 0
Last Week 0
Last Month 14
Dependencies (70)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |