/module-boot

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

Primary LanguageJavaScript

module-boot

自定义模块与组件的基础工程,来自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

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

describe('it', function(){
    it('works', function(){
        const component = (<Component/><a></a></Component>);
        expect(component).to.be(component);
    });
});

index.html

placeholder

启动

yarn
yarn start