Skip to content

Commit

Permalink
feat: setting up travis ci && update graphin icon font
Browse files Browse the repository at this point in the history
  • Loading branch information
zxc0328 committed Nov 20, 2019
1 parent 4acbd01 commit 8c9aa2d
Show file tree
Hide file tree
Showing 34 changed files with 4,086 additions and 1,971 deletions.
7 changes: 7 additions & 0 deletions .travisci.yml
@@ -0,0 +1,7 @@
language: node_js
node_js:
- 10
before_script:
- npm install
- npm run bootstrap
script: npm run test
3 changes: 2 additions & 1 deletion packages/graphin-components/.fatherrc.js
@@ -1,7 +1,8 @@
export default {
esm: {
type: 'rollup',
file: 'index',
},
lessInRollupMode: {},
injectCSS: true,
extractCSS: true,
};
4 changes: 2 additions & 2 deletions packages/graphin-components/package.json
@@ -1,8 +1,8 @@
{
"name": "@antv/graphin-components",
"version": "0.1.1",
"version": "1.0.0-beta7",
"description": "Components for graphin",
"main": "./dist/index.esm",
"main": "./dist/index",
"types": "./dist/src/index.d",
"scripts": {
"start": "father build --watch",
Expand Down
2 changes: 1 addition & 1 deletion packages/graphin-studio/package.json
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@antv/graphin": "^1.0.0-beta.6",
"@antv/graphin-components": "^0.1.1",
"@antv/graphin-components": "^1.0.0-beta.6",
"@types/classnames": "^2.2.9",
"antd": "^3.23.5",
"chinese-random-name": "^1.0.0",
Expand Down
6 changes: 4 additions & 2 deletions packages/graphin-studio/src/Graph.tsx
Expand Up @@ -2,6 +2,10 @@ import React, { useRef } from 'react';
import Graphin from '@antv/graphin';
import { Toolbar, ContextMenu } from '@antv/graphin-components';
import { GraphProps } from './types';

import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

/** custom */
import renderToolbar from './Custom/renderToolbar';
import renderContextMenu from './Custom/renderContextMenu';
Expand All @@ -14,8 +18,6 @@ import useGraphEvents from './Events/useGraphEvents';
/** components */
import NodeEdgeCount from './Core/NodeEdgeCount';

import './fonts/iconfont.css';

const Graphene = (props: GraphProps) => {
const graphRef = useRef(null) as any; // eslint-disable-line
const { dispatch, data, layout, toolbar, store } = props;
Expand Down

0 comments on commit 8c9aa2d

Please sign in to comment.