@36node/template-react
A react boilerplate for web
Last updated 2 years ago by zzswang .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @36node/template-react 
SYNC missed versions from official npm registry.

@36node/template-react

version downloads

Usage

  1. yarn install
  2. dev: yarn start
  3. build: yarn build

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

circle-ci

需要在 circle-ci 配置的环境变量有

DOCKER_USER: docker hub 用户名 DOCKER_PASS: docker hub 密码 DOCKER_REGISTRY: docker hub 地址

Mock Server

Tpl-react has integrated json-server into webpack-dev-server for testing your app, you can generate mock data and config mock server through mock.js under root path.

To disable mock, set REACT_AAP_DISABLE_MOCK=true in .env file

const faker = require("faker");
module.exports = {
  /**
   * Generate mock data
   */
  mockFn: () => {
    const data = { pets: [] };
    const tags = ["CAT", "DOG", "RABBIT"];

    for (let i = 0; i < 100; i++) {
      data.pets.push({
        id: i,
        name: faker.name.lastName(),
        tag: tags[faker.random.number(2)],
      });
    }

    return data;
  },
  /**
   * Config mock server
   */
  serverOpts: () => ({
    delay: 2000, // delay to responses (ms) [number]
  }),
};

Author

tpl-react © 36node, Released under the MIT License.
Authored and maintained by 36node with help from contributors (list).

github.com/zzswang · GitHub @36node

Current Tags

  • 0.8.31                                ...           latest (2 years ago)

39 Versions

  • 0.8.31                                ...           2 years ago
  • 0.8.30                                ...           2 years ago
  • 0.8.29                                ...           2 years ago
  • 0.8.28                                ...           2 years ago
  • 0.8.27                                ...           2 years ago
  • 0.8.26                                ...           2 years ago
  • 0.8.25                                ...           2 years ago
  • 0.8.24                                ...           2 years ago
  • 0.8.23                                ...           2 years ago
  • 0.8.22                                ...           2 years ago
  • 0.8.20                                ...           2 years ago
  • 0.8.19                                ...           2 years ago
  • 0.8.18                                ...           2 years ago
  • 0.8.17                                ...           2 years ago
  • 0.8.16                                ...           2 years ago
  • 0.8.15                                ...           2 years ago
  • 0.8.13                                ...           2 years ago
  • 0.8.11                                ...           2 years ago
  • 0.8.9                                ...           2 years ago
  • 0.8.8                                ...           2 years ago
  • 0.8.7                                ...           2 years ago
  • 0.8.6                                ...           2 years ago
  • 0.8.5                                ...           2 years ago
  • 0.8.4                                ...           2 years ago
  • 0.8.3                                ...           2 years ago
  • 0.8.2                                ...           2 years ago
  • 0.8.1                                ...           2 years ago
  • 0.8.0                                ...           2 years ago
  • 0.7.0                                ...           2 years ago
  • 0.6.0                                ...           2 years ago
  • 0.5.2                                ...           2 years ago
  • 0.5.1                                ...           2 years ago
  • 0.5.0                                ...           2 years ago
  • 0.4.3                                ...           2 years ago
  • 0.4.2                                ...           2 years ago
  • 0.4.1                                ...           2 years ago
  • 0.4.0                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
Downloads
Today 0
This Week 39
This Month 40
Last Day 0
Last Week 1
Last Month 111
Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |