mobx-scripts
Configuration and scripts for Create React Mobx App.
Last updated a year ago by hqro .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mobx-scripts 
SYNC missed versions from official npm registry.

mobx-scripts

create-react-app with HMR, Mobx, SCSS modules and paths aliases without ejecting ! The project also come with react-router-v4, eslint and a standard default template.

How to use

npx create-react-app demo --scripts-version mobx-scripts
cd demo
yarn start

Hot Modules Reload (HMR)

More informations: here !

Aliases

No need to provide primary folder full path, you can use aliases !

import App from 'containers/App'
import { Flex } from 'components'
import browserHistory from '@/browserHistory'
alias path
@ ./src
components ./src/components
pages ./src/pages
containers ./src/containers
actions ./src/actions
... ./src/...

Works only with templates default folders

SCSS Modules

// Component.js
import styles from './Component.scss'

return (
  <div className={styles.container}>
    ...
  </div>
)
/* Component.scss */
.container {
  width: 100%;
}

Generate scoped CSS by adding unique hash after the className. For example the class container become something like container_6YtR12e. This avoid conflicts between components and encourage more readable code.

Current Tags

  • 1.2.4                                ...           latest (a year ago)

9 Versions

  • 1.2.4                                ...           a year ago
  • 1.2.3                                ...           a year ago
  • 1.2.2                                ...           a year ago
  • 1.2.1                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 9
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |