Merge pull request #3 from microsoft/ci/add_typecheck_step

add typecheck step to build
This commit is contained in:
Chris Trevino 2021-09-07 13:09:55 -07:00 коммит произвёл GitHub
Родитель 8ccf2c5b45 687ec595ca
Коммит 92f855e6ee
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
7 изменённых файлов: 55 добавлений и 21 удалений

27
.pnp.cjs сгенерированный
Просмотреть файл

@ -41,7 +41,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@essex-js-toolkit/hooks", "virtual:e2c17f6bddafc602f4cab9cd5ef0295cf05535d35559c37d85c801f1caf17fe4d835c0b7de830ebcb2af1fb4746041bd0b4f7331250e6f9b8aacde0a6f349060#npm:3.0.0"],
["@essex-js-toolkit/thematic-lineup", "virtual:e2c17f6bddafc602f4cab9cd5ef0295cf05535d35559c37d85c801f1caf17fe4d835c0b7de830ebcb2af1fb4746041bd0b4f7331250e6f9b8aacde0a6f349060#npm:1.1.5"],
["@essex-js-toolkit/themed-components", "virtual:e2c17f6bddafc602f4cab9cd5ef0295cf05535d35559c37d85c801f1caf17fe4d835c0b7de830ebcb2af1fb4746041bd0b4f7331250e6f9b8aacde0a6f349060#npm:1.2.0"],
["@essex-js-toolkit/toolbox", "npm:2.0.0"],
["@essex-js-toolkit/toolbox", "npm:2.0.1"],
["@essex/eslint-config", "virtual:e2c17f6bddafc602f4cab9cd5ef0295cf05535d35559c37d85c801f1caf17fe4d835c0b7de830ebcb2af1fb4746041bd0b4f7331250e6f9b8aacde0a6f349060#npm:15.0.4"],
["@essex/prettier-config", "npm:10.0.2"],
["@essex/scripts", "virtual:e2c17f6bddafc602f4cab9cd5ef0295cf05535d35559c37d85c801f1caf17fe4d835c0b7de830ebcb2af1fb4746041bd0b4f7331250e6f9b8aacde0a6f349060#npm:15.2.0"],
@ -121,7 +121,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["recoil", "virtual:e2c17f6bddafc602f4cab9cd5ef0295cf05535d35559c37d85c801f1caf17fe4d835c0b7de830ebcb2af1fb4746041bd0b4f7331250e6f9b8aacde0a6f349060#npm:0.0.13"],
["regenerator-runtime", "npm:0.13.8"],
["styled-components", "virtual:e2c17f6bddafc602f4cab9cd5ef0295cf05535d35559c37d85c801f1caf17fe4d835c0b7de830ebcb2af1fb4746041bd0b4f7331250e6f9b8aacde0a6f349060#npm:5.3.0"],
["tslib", "npm:2.2.0"],
["tslib", "npm:2.3.1"],
["typescript", "patch:typescript@npm%3A4.1.5#~builtin<compat/typescript>::version=4.1.5&hash=32657b"],
["url-loader", "virtual:e2c17f6bddafc602f4cab9cd5ef0295cf05535d35559c37d85c801f1caf17fe4d835c0b7de830ebcb2af1fb4746041bd0b4f7331250e6f9b8aacde0a6f349060#npm:4.1.1"],
["webpack", "virtual:771f1ff2b300e58e077c8f8f5cd504ce0bc60fb42e731f718b4e9a6caa3f5ea11e6eb5683ab989bf8c5d2b7c073d453212b4e4e905b9728fb07954b2df7d55a3#npm:5.37.1"],
@ -3262,7 +3262,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["lineupjs", "virtual:e2c17f6bddafc602f4cab9cd5ef0295cf05535d35559c37d85c801f1caf17fe4d835c0b7de830ebcb2af1fb4746041bd0b4f7331250e6f9b8aacde0a6f349060#npm:3.3.1"],
["react", "npm:17.0.2"],
["react-dom", "virtual:e2c17f6bddafc602f4cab9cd5ef0295cf05535d35559c37d85c801f1caf17fe4d835c0b7de830ebcb2af1fb4746041bd0b4f7331250e6f9b8aacde0a6f349060#npm:17.0.2"],
["tslib", "npm:2.2.0"]
["tslib", "npm:2.3.1"]
],
"packagePeers": [
"@thematic/color",
@ -3383,6 +3383,14 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
],
"linkType": "HARD",
}],
["npm:2.0.1", {
"packageLocation": "./.yarn/cache/@essex-js-toolkit-toolbox-npm-2.0.1-6c9ee39507-b229029ccd.zip/node_modules/@essex-js-toolkit/toolbox/",
"packageDependencies": [
["@essex-js-toolkit/toolbox", "npm:2.0.1"],
["core-js", "npm:3.15.1"]
],
"linkType": "HARD",
}],
["virtual:2af2556170e388b83f86354a403694f8c4d3e57a11dc5f6a8dc692e6801ad2cb457e2b7521d5a7d62ae8662cedeba7e870994d11ddb78479c91ace0cf7b16448#npm:1.1.4", {
"packageLocation": "./.yarn/__virtual__/@essex-js-toolkit-toolbox-virtual-b90d1a1b9d/0/cache/@essex-js-toolkit-toolbox-npm-1.1.4-66a760e95a-3675886360.zip/node_modules/@essex-js-toolkit/toolbox/",
"packageDependencies": [
@ -14321,7 +14329,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["@essex-js-toolkit/hooks", "virtual:e2c17f6bddafc602f4cab9cd5ef0295cf05535d35559c37d85c801f1caf17fe4d835c0b7de830ebcb2af1fb4746041bd0b4f7331250e6f9b8aacde0a6f349060#npm:3.0.0"],
["@essex-js-toolkit/thematic-lineup", "virtual:e2c17f6bddafc602f4cab9cd5ef0295cf05535d35559c37d85c801f1caf17fe4d835c0b7de830ebcb2af1fb4746041bd0b4f7331250e6f9b8aacde0a6f349060#npm:1.1.5"],
["@essex-js-toolkit/themed-components", "virtual:e2c17f6bddafc602f4cab9cd5ef0295cf05535d35559c37d85c801f1caf17fe4d835c0b7de830ebcb2af1fb4746041bd0b4f7331250e6f9b8aacde0a6f349060#npm:1.2.0"],
["@essex-js-toolkit/toolbox", "npm:2.0.0"],
["@essex-js-toolkit/toolbox", "npm:2.0.1"],
["@essex/eslint-config", "virtual:e2c17f6bddafc602f4cab9cd5ef0295cf05535d35559c37d85c801f1caf17fe4d835c0b7de830ebcb2af1fb4746041bd0b4f7331250e6f9b8aacde0a6f349060#npm:15.0.4"],
["@essex/prettier-config", "npm:10.0.2"],
["@essex/scripts", "virtual:e2c17f6bddafc602f4cab9cd5ef0295cf05535d35559c37d85c801f1caf17fe4d835c0b7de830ebcb2af1fb4746041bd0b4f7331250e6f9b8aacde0a6f349060#npm:15.2.0"],
@ -14401,7 +14409,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["recoil", "virtual:e2c17f6bddafc602f4cab9cd5ef0295cf05535d35559c37d85c801f1caf17fe4d835c0b7de830ebcb2af1fb4746041bd0b4f7331250e6f9b8aacde0a6f349060#npm:0.0.13"],
["regenerator-runtime", "npm:0.13.8"],
["styled-components", "virtual:e2c17f6bddafc602f4cab9cd5ef0295cf05535d35559c37d85c801f1caf17fe4d835c0b7de830ebcb2af1fb4746041bd0b4f7331250e6f9b8aacde0a6f349060#npm:5.3.0"],
["tslib", "npm:2.2.0"],
["tslib", "npm:2.3.1"],
["typescript", "patch:typescript@npm%3A4.1.5#~builtin<compat/typescript>::version=4.1.5&hash=32657b"],
["url-loader", "virtual:e2c17f6bddafc602f4cab9cd5ef0295cf05535d35559c37d85c801f1caf17fe4d835c0b7de830ebcb2af1fb4746041bd0b4f7331250e6f9b8aacde0a6f349060#npm:4.1.1"],
["webpack", "virtual:771f1ff2b300e58e077c8f8f5cd504ce0bc60fb42e731f718b4e9a6caa3f5ea11e6eb5683ab989bf8c5d2b7c073d453212b4e4e905b9728fb07954b2df7d55a3#npm:5.37.1"],
@ -17233,7 +17241,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["lineupengine", "npm:1.1.2"],
["popper.js", "npm:1.16.1"],
["reflect-metadata", "npm:0.1.13"],
["tslib", "npm:2.2.0"]
["tslib", "npm:2.3.1"]
],
"packagePeers": [
"@types/tslib",
@ -23693,6 +23701,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
["tslib", "npm:2.2.0"]
],
"linkType": "HARD",
}],
["npm:2.3.1", {
"packageLocation": "./.yarn/cache/tslib-npm-2.3.1-0e21e18015-de17a98d46.zip/node_modules/tslib/",
"packageDependencies": [
["tslib", "npm:2.3.1"]
],
"linkType": "HARD",
}]
]],
["tsutils", [

Двоичные данные
.yarn/cache/@essex-js-toolkit-toolbox-npm-2.0.1-6c9ee39507-b229029ccd.zip поставляемый Normal file

Двоичный файл не отображается.

Двоичные данные
.yarn/cache/tslib-npm-2.3.1-0e21e18015-de17a98d46.zip поставляемый Normal file

Двоичный файл не отображается.

Просмотреть файл

@ -9,7 +9,7 @@
"@essex-js-toolkit/hooks": "3.0.0",
"@essex-js-toolkit/thematic-lineup": "^1.1.5",
"@essex-js-toolkit/themed-components": "^1.2.0",
"@essex-js-toolkit/toolbox": "2.0.0",
"@essex-js-toolkit/toolbox": "2.0.1",
"@fluentui/font-icons-mdl2": "^8.1.0",
"@fluentui/react": "^8.14.5",
"@graspologic/graph": "0.7.0-13",
@ -59,7 +59,7 @@
"react-router-dom": "^5.2.0",
"recoil": "^0.0.13",
"regenerator-runtime": "^0.13.8",
"tslib": "^2.2.0"
"tslib": "^2.3.1"
},
"devDependencies": {
"@babel/runtime": "^7.14.0",
@ -93,7 +93,7 @@
"prettier": "^2.3.1",
"raw-loader": "^4.0.2",
"styled-components": "^5.3.0",
"typescript": "^4.2.4",
"typescript": "^4.4.2",
"url-loader": "^4.1.1",
"webpack": "^5.36.2",
"worker-loader": "^3.0.8"
@ -101,13 +101,15 @@
"scripts": {
"clean": "essex clean build",
"start": "essex serve",
"typecheck": "tsc -b .",
"bundle": "essex bundle --webpack",
"assets": "ncp public build",
"ci": "run-s clean lint bundle assets",
"ci": "run-s clean lint typecheck bundle assets git_is_clean",
"lint": "essex lint --strict",
"lint:fix": "essex lint --strict --fix",
"lint:fix": "yarn lint --fix",
"prettify": "essex prettify",
"deploy": "essex deploy --type azure-blob-storage --storageAccount $STORAGE_ACCOUNT --storageAccountKey $STORAGE_KEY --verbose"
"deploy": "essex deploy --type azure-blob-storage --storageAccount $STORAGE_ACCOUNT --storageAccountKey $STORAGE_KEY --verbose",
"git_is_clean": "essex git-is-clean"
},
"browserslist": {
"production": [

Просмотреть файл

@ -5,7 +5,7 @@
import { ColumnStats } from '../types'
import { TableCollection } from './TableCollection'
import { one } from './table'
import { histogram } from '@essex-js-toolkit/toolbox'
import { histogram, Histogram } from '@essex-js-toolkit/toolbox'
// eslint-disable-next-line
import { op, table } from 'arquero'
import { precisionFixed } from 'd3-format'
@ -49,20 +49,20 @@ export function getColumnStats(table: table, name?: string): ColumnStats {
}
// compute a suggested precision based on 100 divisions of the data range
export function getPrecision(domain = [0, 1], values?: number[]) {
export function getPrecision(domain = [0, 1], values?: number[]): number {
const spread = domain[1] - domain[0]
const whole = checkWhole(values)
return whole ? 0 : precisionFixed(spread / 100)
}
function checkWhole(numbers?: number[]) {
function checkWhole(numbers?: number[]): boolean {
if (!numbers) {
return false
}
return numbers.every(n => Number.isInteger(n))
}
export function getColumnHistogram(table: table, name?: string) {
export function getColumnHistogram(table: table, name?: string): Histogram {
if (!table || table.numRows() === 0 || !name) {
return []
}
@ -83,7 +83,7 @@ export function getColumnHistogram(table: table, name?: string) {
* @param table
* @param column
*/
export function binTableColumn(table: table, column: string) {
export function binTableColumn(table: table, column: string): any[] {
const quantileOps = new Array(100).fill(1).reduce((acc, cur, idx) => {
acc[idx] = op.quantile(column, idx / 100)
return acc

Просмотреть файл

@ -12,6 +12,7 @@
"forceConsistentCasingInFileNames": true,
"allowSyntheticDefaultImports": true,
"noImplicitAny": false,
"noEmit": true,
"jsx": "react",
"skipLibCheck": true,
"lib": ["esnext", "dom"],

Просмотреть файл

@ -1871,6 +1871,15 @@ __metadata:
languageName: node
linkType: hard
"@essex-js-toolkit/toolbox@npm:2.0.1":
version: 2.0.1
resolution: "@essex-js-toolkit/toolbox@npm:2.0.1"
dependencies:
core-js: ^3.14.0
checksum: b229029ccd0f8aeed874d6f2c1d441303fc0ab30f24b83cbf8b2f9720ad63170eb7c7e198d4d07300741762b384fdba25d6749c54ecb7486886bdd5dda7f058f
languageName: node
linkType: hard
"@essex-js-toolkit/toolbox@npm:^1.1.3, @essex-js-toolkit/toolbox@npm:^1.1.4":
version: 1.1.4
resolution: "@essex-js-toolkit/toolbox@npm:1.1.4"
@ -10384,7 +10393,7 @@ fsevents@^1.2.7:
"@essex-js-toolkit/hooks": 3.0.0
"@essex-js-toolkit/thematic-lineup": ^1.1.5
"@essex-js-toolkit/themed-components": ^1.2.0
"@essex-js-toolkit/toolbox": 2.0.0
"@essex-js-toolkit/toolbox": 2.0.1
"@essex/eslint-config": ^15.0.4
"@essex/prettier-config": ^10.0.2
"@essex/scripts": ^15.2.0
@ -10464,8 +10473,8 @@ fsevents@^1.2.7:
recoil: ^0.0.13
regenerator-runtime: ^0.13.8
styled-components: ^5.3.0
tslib: ^2.2.0
typescript: ^4.2.4
tslib: ^2.3.1
typescript: ^4.4.2
url-loader: ^4.1.1
webpack: ^5.36.2
worker-loader: ^3.0.8
@ -18478,7 +18487,7 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard
"tslib@npm:*, tslib@npm:2.2.0, tslib@npm:^2.0.0, tslib@npm:^2.0.3, tslib@npm:^2.1.0, tslib@npm:^2.2.0":
"tslib@npm:*, tslib@npm:2.2.0, tslib@npm:^2.0.0, tslib@npm:^2.0.3, tslib@npm:^2.1.0":
version: 2.2.0
resolution: "tslib@npm:2.2.0"
checksum: a48c9639f7496fa701ea8ffe0561070fcb44c104a59632f7f845c0af00825c99b6373575ec59b2b5cdbfd7505875086dbe5dc83312304d8979f22ce571218ca3
@ -18492,6 +18501,13 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard
"tslib@npm:^2.3.1":
version: 2.3.1
resolution: "tslib@npm:2.3.1"
checksum: de17a98d4614481f7fcb5cd53ffc1aaf8654313be0291e1bfaee4b4bb31a20494b7d218ff2e15017883e8ea9626599b3b0e0229c18383ba9dce89da2adf15cb9
languageName: node
linkType: hard
"tsutils@npm:^3.17.1":
version: 3.21.0
resolution: "tsutils@npm:3.21.0"