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
- Host: GitHub
- URL: https://github.com/lanif-ui/module-boot
- Owner: LANIF-UI
- Created: 2017-12-24T08:01:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-23T07:44:55.000Z (over 8 years ago)
- Last Synced: 2025-02-27T00:18:35.723Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://lanif-ui.github.io/module-boot/
- Size: 85.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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