2.1.0 • Published 8 years ago

cus-react-kit v2.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

This is tool kit for starting a new ReactJS peoject quickly. All you need todo is the following:

1. sudo npm install cus-react-kit -g;
2. react-kit [ProjectName]

It will take about 10 mins to download dependencies such as babel@6.5.0 , react-redux and so on;

If you wanna to run npm install & npm start by yourself, you can use:

react-kit [ProjectName] --pure

After project complete, you can use following commands

npm start // use for dev, it will create a server and run your project
npm run deploy  // package your project to /dist for deploying.

changelog: @since 2016.7.4 1. Add api module, 2. add getting the current environment.

How to use Api module? 1. Configure all the ajax request in api/index.js; 2. Configure all the ajax request url in api/ApiList.js; 3. Then you can use import { getProductDetail } from 'api'; in redux actions; 4. After all the above, you can dispatch your action in your view.

How to use environment configuration? 1. You can find the configuration and functions in *src/config.js 2. Also you can use the functions given by Config such as getEnv(), isMock() and so on;

Things to be done:

1. config different environment in project easily. 2. thinking ... 3. please give some advices

Then the terminal will show you the dev url like this: http://[YourIP]:3000/

Just try it.

If you have any problems, please concat me with wechat: Creemli. Or creemli@sina.com;

2.1.0

8 years ago

1.4.0

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago