Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankFang committed Mar 22, 2019
1 parent 5430c46 commit 4aa27ea
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
13 changes: 12 additions & 1 deletion .circleci/config.yml
Expand Up @@ -32,12 +32,20 @@ jobs:
root: .
paths:
- dist
publish:
<<: *defaults
steps:
- attach_workspace:
at: .
- run: yarn publish

test:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: .
- run: ls -la
- run: yarn ci
- store_test_results:
path: test-results
Expand All @@ -52,4 +60,7 @@ workflows:
- test
- test:
requires:
- prepare
- prepare
- publish:
requires:
- build
2 changes: 1 addition & 1 deletion lib/icon/importIcons.js
@@ -1,5 +1,5 @@
let importAll = (requireContext) => requireContext.keys().forEach(requireContext)
try {
importAll(require.context('./icons/', true, /\.svg$/))
importAll(require.context('../icons/', true, /\.svg$/))
} catch (error) {
}
15 changes: 1 addition & 14 deletions lib/index.tsx
@@ -1,16 +1,3 @@
import ReactDOM from 'react-dom';
import React from 'react';
import Icon from './icon/icon';
export {default as Icon} from './icon/icon';

const fn: React.MouseEventHandler = (e) => {
console.log(e.target);
};

ReactDOM.render(<div>
<Icon name="qq"
onClick={fn}
onMouseEnter={() => console.log('enter')}
onMouseLeave={() => console.log('leave')}
onTouchStart={() => console.log('touch')}
/>
</div>, document.querySelector('#root'));
5 changes: 3 additions & 2 deletions package.json
@@ -1,9 +1,10 @@
{
"name": "fui",
"version": "1.0.0",
"name": "fui888",
"version": "0.0.1",
"description": "",
"main": "dist/lib/index",
"types": "dist/lib/index",
"files": ["/dist"],
"scripts": {
"test": "cross-env NODE_ENV=test jest --config=jest.config.js --runInBand",
"start": "cross-env NODE_ENV=development webpack-dev-server --config webpack.config.dev.js",
Expand Down

0 comments on commit 4aa27ea

Please sign in to comment.