build(react-scripts): move from react-scripts-ts to react-scripts
the latter now supports typescript natively.
This commit is contained in:
parent
5356b58d83
commit
8d00ba9372
|
@ -21,7 +21,7 @@ from scraper.management.commands._util import require_lock, InvalidResponseExcep
|
||||||
|
|
||||||
# TODO: use the /api/v1/server/followers and /api/v1/server/following endpoints in peertube instances
|
# TODO: use the /api/v1/server/followers and /api/v1/server/following endpoints in peertube instances
|
||||||
|
|
||||||
SEED = 'p.a3.pm'
|
SEED = 'mastodon.social'
|
||||||
TIMEOUT = 20 # seconds
|
TIMEOUT = 20 # seconds
|
||||||
NUM_THREADS = 16 # roughly 40MB each
|
NUM_THREADS = 16 # roughly 40MB each
|
||||||
PERSONAL_INSTANCE_THRESHOLD = 10 # instances with < this many users won't be crawled
|
PERSONAL_INSTANCE_THRESHOLD = 10 # instances with < this many users won't be crawled
|
||||||
|
|
|
@ -3,13 +3,13 @@
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "NODE_ENV=development react-scripts-ts start",
|
"start": "NODE_ENV=development react-scripts start",
|
||||||
"build": "react-scripts-ts build",
|
"build": "react-scripts build",
|
||||||
"lint": "tslint -p tsconfig.json -c tslint.json \"src/**/*.{ts,tsx}\"",
|
"lint": "tslint -p tsconfig.json -c tslint.json \"src/**/*.{ts,tsx}\"",
|
||||||
"lint:fix": "yarn lint --fix",
|
"lint:fix": "yarn lint --fix",
|
||||||
"pretty": "prettier --write \"src/**/*.{ts,tsx}\"",
|
"pretty": "prettier --write \"src/**/*.{ts,tsx}\"",
|
||||||
"test": "yarn lint && react-scripts-ts test --env=jsdom",
|
"test": "yarn lint && react-scripts test",
|
||||||
"eject": "react-scripts-ts eject"
|
"eject": "react-scripts eject"
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
"react-dom": "^16.4.2",
|
"react-dom": "^16.4.2",
|
||||||
"react-redux": "^7.0.2",
|
"react-redux": "^7.0.2",
|
||||||
"react-router-dom": "^5.0.0",
|
"react-router-dom": "^5.0.0",
|
||||||
"react-scripts-ts": "3.1.0",
|
"react-scripts": "^2.1.8",
|
||||||
"react-sigma": "^1.2.30",
|
"react-sigma": "^1.2.30",
|
||||||
"react-virtualized": "^9.20.1",
|
"react-virtualized": "^9.20.1",
|
||||||
"redux": "^4.0.0",
|
"redux": "^4.0.0",
|
||||||
|
@ -53,16 +53,23 @@
|
||||||
"@types/jest": "^24.0.11",
|
"@types/jest": "^24.0.11",
|
||||||
"@types/lodash": "^4.14.116",
|
"@types/lodash": "^4.14.116",
|
||||||
"@types/node": "^11.13.4",
|
"@types/node": "^11.13.4",
|
||||||
"@types/react": "^16.4.12",
|
"@types/react": "^16.8.13",
|
||||||
"@types/react-dom": "^16.0.7",
|
"@types/react-dom": "^16.8.4",
|
||||||
"@types/react-redux": "^7.0.6",
|
"@types/react-redux": "^7.0.6",
|
||||||
"@types/react-router-dom": "^4.3.2",
|
"@types/react-router-dom": "^4.3.2",
|
||||||
"@types/react-virtualized": "^9.18.7",
|
"@types/react-virtualized": "^9.18.7",
|
||||||
"@types/sanitize-html": "^1.18.0",
|
"@types/sanitize-html": "^1.18.3",
|
||||||
"@types/styled-components": "4.1.8",
|
"@types/styled-components": "4.1.8",
|
||||||
"husky": "^1.3.1",
|
"husky": "^1.3.1",
|
||||||
"lint-staged": "^8.1.5",
|
"lint-staged": "^8.1.5",
|
||||||
|
"tslint": "^5.16.0",
|
||||||
"tslint-eslint-rules": "^5.4.0",
|
"tslint-eslint-rules": "^5.4.0",
|
||||||
"typescript": "^3.0.1"
|
"typescript": "^3.0.1"
|
||||||
}
|
},
|
||||||
|
"browserslist": [
|
||||||
|
">0.2%",
|
||||||
|
"not dead",
|
||||||
|
"not ie <= 11",
|
||||||
|
"not op_mini all"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { Sigma, SigmaEnableWebGL, Filter, ForceAtlas2 } from 'react-sigma';
|
import { Sigma, Filter, ForceAtlas2 } from 'react-sigma';
|
||||||
|
|
||||||
import { selectAndLoadInstance } from '../redux/actions';
|
import { selectAndLoadInstance } from '../redux/actions';
|
||||||
import { ErrorState } from './ErrorState';
|
import { ErrorState } from './ErrorState';
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import { orderBy } from "lodash";
|
import { orderBy } from "lodash";
|
||||||
import * as moment from "moment";
|
import moment from "moment";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { Dispatch } from "redux";
|
import { Dispatch } from "redux";
|
||||||
import * as sanitize from "sanitize-html";
|
import sanitize from "sanitize-html";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
AnchorButton,
|
AnchorButton,
|
||||||
|
|
1
frontend/src/react-app-env.d.ts
vendored
Normal file
1
frontend/src/react-app-env.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/// <reference types="react-scripts" />
|
|
@ -44,7 +44,7 @@ const data = (state: IDataState = initialDataState, action: IAction) => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const initialCurrentInstanceState = {
|
const initialCurrentInstanceState: ICurrentInstanceState = {
|
||||||
currentInstanceDetails: null,
|
currentInstanceDetails: null,
|
||||||
currentInstanceName: null,
|
currentInstanceName: null,
|
||||||
error: false,
|
error: false,
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"allowSyntheticDefaultImports": false,
|
"allowSyntheticDefaultImports": true,
|
||||||
"baseUrl": ".",
|
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
"jsx": "react",
|
"jsx": "preserve",
|
||||||
"lib": ["es6", "dom"],
|
"lib": [
|
||||||
|
"esnext",
|
||||||
|
"dom",
|
||||||
|
],
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
|
@ -17,10 +19,19 @@
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"strictNullChecks": true,
|
"strictNullChecks": true,
|
||||||
"suppressImplicitAnyIndexErrors": true,
|
"suppressImplicitAnyIndexErrors": true,
|
||||||
"target": "es5"
|
"target": "es5",
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"strict": true,
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"noEmit": true
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules",
|
"node_modules",
|
||||||
"build"
|
"build"
|
||||||
|
],
|
||||||
|
"include": [
|
||||||
|
"src"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
7241
frontend/yarn.lock
7241
frontend/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue