Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ module.exports = {
'import/resolver': {
typescript: {
alwaysTryTypes: true,
project: ['./packages/ava/tsconfig.json']
project: ['./tsconfig.json']
},
},
},
Expand Down
51 changes: 13 additions & 38 deletions .fatherrc.ts
Original file line number Diff line number Diff line change
@@ -1,41 +1,16 @@
import path from 'path';
import { defineConfig } from 'father';

export default (type, name, extendConfig = {}) => {
const commonConfig = {
esm: {
output: 'esm',
},
cjs: {
output: 'lib',
},
umd: {
name,
output: 'dist',
},
...extendConfig,
};
if (type === 'ts') {
return defineConfig({
umd: {
name,
output: 'dist',
},
...extendConfig,
});
export default defineConfig({
umd: {
name: 'AVA',
output: 'dist',
},
alias: {
'@ava': path.resolve(__dirname, 'src'),
'@ava/advisor-deprecated': path.resolve(__dirname, 'src/advisor-deprecated'),
'@advisor': path.resolve(__dirname, 'src/advisor'),
'@advisor-deprecated': path.resolve(__dirname, 'src/advisor-deprecated'),
'@ava/insight': path.resolve(__dirname, 'src/insight'),
}
if (type === 'react') {
return defineConfig({
...commonConfig,
umd: {
name,
output: 'dist',
externals: {
antd: 'antd',
react: 'react',
'react-dom': 'ReactDom',
},
},
});
}
return defineConfig(commonConfig);
};
});
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ packages/*/**/stats.html

# lock
package-lock.json
pnpm-lock.yaml

# test
packages/torch/renderer/index.html
Expand Down
14 changes: 0 additions & 14 deletions .markdownlint.json

This file was deleted.

20 changes: 0 additions & 20 deletions .releaserc.js

This file was deleted.

File renamed without changes.
File renamed without changes.
8 changes: 6 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const baseConfig = require('./jest.config');

module.exports = {
roots: ['<rootDir>/src', '<rootDir>/__tests__'],
testRegex: '(/__tests__/.*.(test|spec)).(js?|jsx?|tsx?|ts?)$',
collectCoverage: false,
coveragePathIgnorePatterns: ['(tests/.*.mock).(jsx?|tsx?)$'],
verbose: false,
globals: {
'ts-jest': {
diagnostics: false,
Expand All @@ -17,4 +17,8 @@ module.exports = {
},
],
},
moduleNameMapper: {
'^@antv/ava': ['<rootDir>/src/index.ts'],
'^@ava/(.*)$': '<rootDir>/src/$1',
},
};
13 changes: 0 additions & 13 deletions lerna.json

This file was deleted.

128 changes: 69 additions & 59 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,69 +1,70 @@
{
"name": "ava",
"private": true,
"workspaces": [
"packages/*"
"name": "@antv/ava",
"version": "4.0.0-alpha.0",
"description": "A framework for AI driven Visual Analytics.",
"sideEffects": false,
"keywords": [
"antv",
"ava",
"ai",
"visual-analytics",
"visualization",
"augmented-analytics",
"insight"
],
"main": "lib/index.js",
"types": "lib/index.d.ts",
"unpkg": "dist/ava.min.js",
"module": "esm/index.js",
"files": [
"esm",
"dist",
"lib"
],
"repository": {
"type": "git",
"url": "https://github.com/antvis/AVA"
},
"scripts": {
"boot": "lerna bootstrap --force-local",
"lint": "eslint --ext .js,.jsx,.ts,.tsx \"./\"",
"lint-fix": "npm run lint -- --fix",
"clean": "rimraf lib esm dist",
"build:umd": "father build",
"build:esm": "rimraf esm && tsc --module esnext --target es6 --outDir ./esm",
"build:cjs": "rimraf lib && tsc --module commonjs --target es6 --outDir ./lib",
"build": "run-p build:*",
"test": "jest",
"lint-staged": "lint-staged",
"prettier": "prettier -c \"**/*\"",
"prettier:ava": "cd ./packages/ava && npm run prettier",
"prettier:ava-react": "cd ./packages/ava-react && npm run prettier",
"prettier-fix": "npm run prettier -- --write",
"format": "npm run prettier-fix && npm run lint-fix",
"format:ava": "cd ./packages/ava && npm run format",
"format:ava-react": "cd ./packages/ava-react && npm run format",
"test": "cd ./packages/ava && npm run test",
"coverage": "jest --coverage",
"coverage:ava": "cd ./packages/ava && npm run coverage",
"coverage:ava-react": "cd ./packages/ava-react && npm run coverage",
"build": "cd ./packages/ava && npm run build",
"clean": "git clean -dfx",
"setup:playground": "cd playground && npm install",
"start:playground": "cd playground && npm run dev",
"setup:site": "cd site && npm install",
"start:site": "cd site && npm start",
"build:site": "cd site && npm run build",
"prepare": "husky install",
"ci": "run-s format lint-staged build",
"release": "lerna exec --no-private --concurrency 1 -- npx --no-install semantic-release",
"release-manual": "npm run ci && lerna publish",
"prerelease-manual": "npm run ci && lerna publish prerelease",
"prerelease-manual-beta": "npm run ci && lerna publish prerelease --preid beta",
"one-stop-setup": "npm install && npm run build && npm run setup:playground && npm run setup:site"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
"coverage": "jest --coverage"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"*.{ts,tsx}": [
"eslint --fix",
"prettier --write"
],
"packages/*.{js,jsx,ts,tsx}": [
"jest --bail --findRelatedTests"
]
},
"author": {
"name": "AntV",
"url": "https://antv.vision/"
"dependencies": {
"@antv/color-schema": "^0.2.3",
"@antv/smart-color": "^0.2.1",
"@antv/algorithm": "^0.1.26",
"@antv/gpt-vis": "^0.5.9",
"bayesian-changepoint": "^1.0.1",
"csstype": "^3.1.2",
"heap-js": "^2.1.6",
"lodash": "^4.17.21",
"regression": "^2.0.1",
"tapable": "^2.2.1",
"tslib": "^2.3.1",
"moment": "^2.29.4",
"axios": "^1.12.2",
"openai": "^6.2.0"
},
"devDependencies": {
"@antv/data-samples": "^1.0.1",
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"@stdlib/types": "^0.0.12",
"@testing-library/jest-dom": "^4.2.4",
"@types/d3-array": "^3.0.1",
"@types/d3-dispatch": "3.0.2",
"@types/jest": "^30.0.0",
"@types/lodash": "^4.14.180",
"@types/lodash": "^4.14.171",
"@types/numeral": "^2.0.2",
"@typescript-eslint/eslint-plugin": "^4.29.2",
"@typescript-eslint/parser": "^4.29.2",
"eslint": "^7.32.0",
Expand All @@ -73,18 +74,27 @@
"eslint-plugin-import": "^2.24.1",
"eslint-plugin-react": "^7.24.0",
"husky": "^7.0.1",
"father": "^4.1.0",
"jest": "^30.0.0",
"jest-extended": "^0.11.5",
"lerna": "^3.15.0",
"lint-staged": "^11.0.0",
"lint-staged": "^11.0.1",
"npm-run-all": "^4.1.5",
"numeral": "^2.0.6",
"prettier": "^2.4.1",
"rimraf": "^3.0.2",
"semantic-release": "^19.0.2",
"semantic-release-monorepo": "^7.0.5",
"rimraf": "^6.1.0",
"ts-jest": "^29.4.5",
"ts-node": "^10.9.2",
"tslib": "^2.3.1",
"typescript": "^5.9.2"
"typescript": "^4.9.3"
},
"author": {
"name": "AntV",
"url": "https://antv.antgroup.com/"
},
"homepage": "https://ava.antv.antgroup.com",
"repository": {
"type": "git",
"url": "https://github.com/antvis/AVA"
},
"license": "MIT",
"publishConfig": {
"access": "public"
}
}
16 changes: 0 additions & 16 deletions packages/ava/.fatherrc.ts

This file was deleted.

72 changes: 0 additions & 72 deletions packages/ava/README.md

This file was deleted.

Loading
Loading