Skip to content

Commit

Permalink
feat: init graphscope project
Browse files Browse the repository at this point in the history
  • Loading branch information
baizn committed Jan 20, 2021
1 parent 9ec21b3 commit d53e5e6
Show file tree
Hide file tree
Showing 14 changed files with 1,322 additions and 0 deletions.
57 changes: 57 additions & 0 deletions packages/graphin-graphscope/.eslintrc.js
@@ -0,0 +1,57 @@
// module.exports = {
// parser: '@typescript-eslint/parser', // Specifies the ESLint parser
// extends: [

// 'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react
// 'plugin:@typescript-eslint/recommended', // Uses the recommended rules from @typescript-eslint/eslint-plugin
// 'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
// ],
// parserOptions: {
// ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
// sourceType: 'module', // Allows for the use of imports
// ecmaFeatures: {
// jsx: true, // Allows for the parsing of JSX
// },
// },
// rules: {
// "@typescript-eslint/no-explicit-any":"warn",
// "react/prop-types":0,
// "@typescript-eslint/explicit-function-return-type":"warn"
// // Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
// // e.g. "@typescript-eslint/explicit-function-return-type": "off",
// },
// settings: {
// react: {
// version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use
// },
// },
// };

module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
extends: [
'airbnb',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/react',
'prettier/@typescript-eslint',
],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
ecmaFeatures: {
jsx: true, // Allows for the parsing of JSX
},
},
rules: {
'import/no-unresolved': 0,
'react/prop-types': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 2,
'react/display-name': 'off',
'react/jsx-filename-extension': [1, { extensions: ['.jsx', '.tsx'] }],
'react/jsx-props-no-spreading': 0,
'operator-assignment': 0,
},
};
23 changes: 23 additions & 0 deletions packages/graphin-graphscope/.gitignore
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
7 changes: 7 additions & 0 deletions packages/graphin-graphscope/.prettierrc.js
@@ -0,0 +1,7 @@
module.exports = {
semi: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 120,
tabWidth: 2,
};
19 changes: 19 additions & 0 deletions packages/graphin-graphscope/README.md
@@ -0,0 +1,19 @@
## Graphin GraphScope

Graphin Studio is the graph analysis workbench built with [@antv/graphin](https://github.com/antvis/graphin/tree/master/packages/graphin) and [@antv/graphin-components](https://github.com/antvis/graphin/tree/master/packages/graphin-components). It served as the main playground and DEMO for Graphin.

### Run Graphin Studio

```bash
npm install // install repo deps

npm run bootstrap // install package deps

npm run start // start graphin and graphin-components

npm run studio // start Graphin Studio, after npm run start is built
```

### More Info

Checkout [build from scratch doc](./build-from-scratch.md) if you want to build your own Graphin Studio.

0 comments on commit d53e5e6

Please sign in to comment.