An open API service indexing awesome lists of open source software.

https://github.com/lanif-ui/module-boot

使用rc-tools,自定义模块与组件的基础工程,生成的gh-pages
https://github.com/lanif-ui/module-boot

Last synced: about 1 year ago
JSON representation

使用rc-tools,自定义模块与组件的基础工程,生成的gh-pages

Awesome Lists containing this project

README

          

# module-boot
自定义模块与组件的基础工程,来自[generator-rc](https://github.com/react-component/generator-rc)

## 使用

```
$ git clone https://github.com/LANIF-UI/module-boot.git
$ cd module-boot
$ yarn
$ yarn start
```

### 文件结构

```
- examples
- index.html
- index.js
- src
- Component.js
- index.js
- index.js
- tests
- index.js
- package.json
```

#### package.json

#### tests/index.js

```js
import expect from 'expect.js';
import * as React from 'react';
import Component from 'rc-test';

describe('it', function(){
it('works', function(){
const component = ();
expect(component).to.be(component);
});
});
```

#### index.html

```
placeholder
```

### 启动

```
yarn
yarn start
```

* run `yarn run chrome-test` to see test
* open [http://localhost:8000/examples/](http://localhost:8000/examples/) to see demo