自定义模块与组件的基础工程,来自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
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);
});
});
placeholder
yarn
yarn start
- run
yarn run chrome-test
to see test - open http://localhost:8000/examples/ to see demo